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 / Tools / April 2004

Tip: Looking for answers? Try searching our database.

loadjava Oracle, loading jars problem

Thread view: 
Cindy Lee - 26 Apr 2004 23:15 GMT
When trying to load a .jar file with the command

loadjava -v -u username/password -r .jar

I get a bunch of errors like

resolving: class net/sf/hibernate/AssertionFailure

errors   : class net/sf/hibernate/AssertionFailure

   ORA-29534: referenced object
AUTHOR.net/sf/hibernate/exception/NestableRuntimeException could not be
resolved

The class NestableRuntimeException is in the jar file.

I can load a simple jar that was compiled with the oracle native jvm
($ORACLE_HOME/jdk/bin/javac), but when I'm trying to import jars I
downloaded from the internet, I get unresolved errors.

Questions:

1.      Do I really have to import everything in source code so the oracle
JVM compiles it itself?

2.      If I CAN import jars, do they have to be compiled on the same exact
version (e.g. if oracle runs 1.4.2_02, I cannot use any jar compiled on
1.4.2_03?
Olaf Heimburger - 27 Apr 2004 19:40 GMT
Cindy,

some things to consider:
- the java compiler in $ORACLE_HOME/jdk/bin is NOT the Oracle native
 compiler but the one provided by Sun.
- Oracle up to 9.0.1.x implements JDK 1.2
- Oracle 9.2.x implements JDK 1.3
- Compile the classes/libraries you want to use with the appropriate JDK
 version to avoid unreferenced classes available in later JDK versions.

HTH,
--olaf

> When trying to load a .jar file with the command
>
[quoted text clipped - 24 lines]
> version (e.g. if oracle runs 1.4.2_02, I cannot use any jar compiled on
> 1.4.2_03?


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.