Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Loading a Jar file in Oracle with loadjava, problems

Loading a Jar file in Oracle with loadjava, problems

From: Cindy Lee <dangreece_at_hotmail.com>
Date: Mon, 26 Apr 2004 22:13:51 GMT
Message-ID: <e1fb0f30cadcfd02740d3e824e8bac52@news.meganetnews.com>


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?
Received on Mon Apr 26 2004 - 17:13:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US