Compiling java -
Posted: Tue Nov 18, 2008 10:05 am
I have a small java project that imports some classes from a jar file.
import X.Y.Z.*;
Both the java source file (UserInfo.jar) and the jar file (customer.jar) are located in the same directory.
This compiles fine with the sandard javac command:
javac -d . -classpath customer.jar UserInfo.java
However this fails in textpad:
C:\Bruno\Dev\java\UserInfo.java:13: package X.Y.Z does not exist
import X.Y.Z.*;
Any suggestion ?
Many thanks !
I checked the PATH env setting, the current directory is apparently included:
.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1.....
etc
import X.Y.Z.*;
Both the java source file (UserInfo.jar) and the jar file (customer.jar) are located in the same directory.
This compiles fine with the sandard javac command:
javac -d . -classpath customer.jar UserInfo.java
However this fails in textpad:
C:\Bruno\Dev\java\UserInfo.java:13: package X.Y.Z does not exist
import X.Y.Z.*;
Any suggestion ?
Many thanks !
I checked the PATH env setting, the current directory is apparently included:
.;C:\PROGRA~1\IBM\SQLLIB\java\db2java.zip;C:\PROGRA~1.....