Home » Developer & Programmer » JDeveloper, Java & XML » unable to load javafile into oracle 8i using loadjava uitility in Hp unix
unable to load javafile into oracle 8i using loadjava uitility in Hp unix [message #366620] Thu, 02 March 2000 06:06 Go to next message
Gopal
Messages: 23
Registered: June 1999
Junior Member
when i try to a load a simple uncompiled file called Dba.java having the same public class name Dba using loadjava i get error message:

The file content is:

import java.util.*;
public class Dba
{
public static void printHello ()
{
String prtString="Hello World";
System.out.println(prtString);
}
}

i gave the following command in Hp unix:

The location of loadjava uitility is
/opt/oracle/product/8.1.5/bin

loadjava -u scott/tiger -resolve /opt/oracle/product/8.1.5/bin/Dba.java

error message:

internal error: unanticipated exception: java.lang.NoClassDefFoundError: oracle/aurora/sqljdecl/SqljDecl
java.lang.NoClassDefFoundError: oracle/aurora/sqljdecl/SqljDecl
at oracle.aurora.server.tools.SourceFileReader.getScanner(SourceFileReader.java:52)
at oracle.aurora.server.tools.SourceFileReader.getFirstName(SourceFileReader.java:61)
at oracle.aurora.server.tools.LoadJava.processLoadAndCreate(LoadJava.java:1094)
at oracle.aurora.server.tools.LoadJava.process(LoadJava.java:1021)
at oracle.aurora.server.tools.LoadJavaMain.run(LoadJavaMain.java:193)
at oracle.aurora.server.tools.LoadJavaMain.main(LoadJavaMain.java:49)
loadjava: 1 errors

can anyone tell me ,how to solve this problem ?

very urgent please.
Re: unable to load javafile into oracle 8i using loadjava uitility in Hp unix [message #366629 is a reply to message #366620] Thu, 23 March 2000 12:47 Go to previous messageGo to next message
NSA
Messages: 3
Registered: March 2000
Junior Member
Try this :
First check that the CLASSPATH is set properly.

then :

loadjava -thin -resolve -force -user whatever/whatever Dba.java

Good Luck..
Re: unable to load javafile into oracle 8i using loadjava uitility in Hp unix [message #366645 is a reply to message #366620] Fri, 26 May 2000 11:44 Go to previous messageGo to next message
Cristina Matei
Messages: 1
Registered: May 2000
Junior Member
I'm having the same problem with Oracle 8.1.5 on AIX 4.3.
I found a note on Metalink saying that you need to add $ORACLE_HOME/sqlj to your CLASSPATH env variable. My problem is I don't have the sqlj directory under ORACLE_HOME. Any idea how it gets created?
Thank you
unadble to find loadjava [message #366681 is a reply to message #366620] Tue, 26 September 2000 00:23 Go to previous message
Allama
Messages: 1
Registered: September 2000
Junior Member
Where do I fine loadjava file...IS loadjava an exe or bat file....

Please let me how I can find it
Previous Topic: where do you get OTT for java
Next Topic: PLQSL + html + write to file
Goto Forum:
  


Current Time: Wed Aug 04 23:51:01 CDT 2021