Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2005

Tip: Looking for answers? Try searching our database.

SQLJ - problem with Oracle.close()

Thread view: 
rowla - 10 Mar 2004 19:13 GMT
when running a SQLJ file, everything goes correct, the program works
properly, but in the end I get:

java.lang.NoClassDefFoundError: sqlj.util.io.OracleOutputStreamWriter
at
sqlj.runtime.ref.ConnectionContextImpl.close(ConnectionContextImpl.java:569
)
at
sqlj.runtime.ref.ConnectionContextImpl.close(ConnectionContextImpl.java:511
)
at oracle.sqlj.runtime.Oracle.close(Oracle.java:478)

I guess adding one more path to my CLASSPATH should do the trick, but I
don't really know which one.
Somebody met a similar problem maybe?
I'm using Oracle JDeveloper and a few days ago the same program went OK...

--
best regards, jacek
shay - 11 Mar 2004 17:53 GMT
> I guess adding one more path to my CLASSPATH should do the trick, but I
> don't really know which one.

I'm assuming that the code compiles and runs ok from inside JDeveloper
- right?

I Don't know which specific jar you need to add but generally in
JDeveloper if you right-click on your project -> properties you can
see the liberaries it uses.
Open the SQLJ liberary that it uses and make sure that you use the
same JAR files in your classpath.

Also look at the command line that is used inside JDeveloper when you
hit the run button - it is in the log window.
Aldo Cappa - 31 May 2005 17:23 GMT
You have to add the "D:\jdev904\sqlj\lib\translator.jar"

By


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.