Re: loadjava error

  • From: "Jared Still" <jkstill@xxxxxxxxx>
  • To: vli@xxxxxxxxxx
  • Date: Tue, 5 Sep 2006 15:47:21 -0700

Here's what I would do:

point my browser at otn.oracle.com, go to the Java development section,
look for simple examples and try them.

If successful, modify my code to correct whatever problem appears
by examining the example code that worked.

That's what I would do.

I find that general approach works well for all manner of things.

Jared


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




-- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist

Other related posts: