RE: loadjava error

  • From: "Vivian Li" <vli@xxxxxxxxxx>
  • To: "Giovanni Cuccu" <giovanni.cuccu@xxxxxxxxx>
  • Date: Tue, 5 Sep 2006 10:16:33 -0500

You are probably right.  I am using the java version, 1.5



-----Original Message-----
From: Giovanni Cuccu [mailto:giovanni.cuccu@xxxxxxxxx]
Sent: 2006 09 05 10:11
To: Vivian Li
Cc: oracle-l@xxxxxxxxxxxxx
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@xxxxxxxxxx> 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
--
//www.freelists.org/webpage/oracle-l


Other related posts: