Home » Infrastructure » Windows » Problem with SQLJ program compilation
Problem with SQLJ program compilation [message #101617] Sat, 08 January 2005 20:23 Go to next message
N Ganesh
Messages: 2
Registered: January 2005
Junior Member
Hai,
I have a file name SQLJHost.sqlj. When i compiled it with the sqlj translator i got the files:
- SQLJHost.java
- SQLJHost.class
- SQLJHost_SJProfile0.ser
- SQLJHost_SJProfileKeys.class

Now when i tried to execute the .class file by saying
java SQLJHost
it gave me an error message

Exception in thread "main" java.lang.NoClassDefFoundError: SQLJHost

What might me probable cause?I have already set the path and classpath to the correct locations.

Kindly help me out in this as soon as possible.

- Ganesh
Re: Problem with SQLJ program compilation [message #101659 is a reply to message #101617] Mon, 07 February 2005 05:09 Go to previous message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Hi,

Do you have a main method in your program (public static void main...)?

If so, put "." (the current directory) in your CLASSPATH or use the -cp option for java.exe.

Best regards.

Frank
Previous Topic: reports problme while printing through windows 2000 operating system
Next Topic: JDBC
Goto Forum:
  


Current Time: Mon Nov 25 06:52:04 CST 2024