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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: loadjava error

RE: loadjava error

From: Vivian Li <vli_at_ppoone.com>
Date: Tue, 5 Sep 2006 15:59:06 -0500
Message-ID: <7CFD053DDD9A7C4D81615E33EED7ACD98E90F2@pp1msrv1.pp1.com>


I got the java class complied in 1.3 version. My Oracle is in 9.2.0.

$ javac -source 1.3 -target 1.3 Hello.java

However, I still got this error when I tried to load into Oracle:

$ loadjava -user userID/password -oci8 -resolve Hello.class errors : class Hello

    ORA-29545: badly formed class:

The following operations failed

    class Hello: resolution
exiting : Failures occurred during processing

$ more Hello.java
 public class Hello
 { public static String world ()
   { return "Hello world.";
   }
 }

Any ideas?

Thanks,
Vivian

-----Original Message-----
From: Giovanni Cuccu [mailto:giovanni.cuccu_at_gmail.com] Sent: 2006 09 05 10:11
To: Vivian Li
Cc: oracle-l_at_freelists.org
Subject: Re: loadjava error

only a guess:
you are loading a java class compiled with a more recent java version. Oracle 9 supports java 1.3
Oracle 10 supports java 1.4
what is the output of the os command
java -version
Giovanni

On 9/5/06, Vivian Li <vli_at_ppoone.com> wrote:
>
>
>
>
> Hi,
>
> I have a very simple java program that I would like to load into Oracle.
>
> $ more Hello.java
> public class Hello
> { public static String world ()
> { return "Hello world.";
> }
> }
>
> The above java code complies successfully by itself. But, when I do
> loadjava, I get below errors:
> $ loadjava -user userID/password -oci8 -resolve Hello.class
> errors : class Hello
> ORA-29545: badly formed class:
>
> The following operations failed
> class Hello: resolution
> exiting : Failures occurred during processing
>
> Any ideas why this is happening?
>
> Thanks,
> Vivian

-- 
--------------------------------------------------------------------
Another free oracle resource profiler
http://sourceforge.net/projects/oraresprof/
Now version 0.9
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Sep 05 2006 - 15:59:06 CDT

Original text of this message

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