[java] Compiling.

Started by
1 comment, last by Antony Paul 21 years, 7 months ago
Hi, I''m having some problems compiling a java file. It''s neccessary for me to compile this file via a .jar file. In my note it says to type javac - classpath file1.jar file2.java This is for UNIX btw but I''m doing this from the command prompt in XP. Anyway this doesnt work so I''m wondering how I do this. I''ve also tried to compile it using JCreator LE but again it is dependant on the .jar file and I cant work out how to compile the .java file throught the .jar file. Thanks in advance -- Ant
Advertisement
what exactly is the problem you are getting? it could be that you have failed to include the current directory in the class path and so has problems looking up the other classes in the .java.

try javac -classpath .;file1.jar file2.java.

I had some problem similiar to this with this in Linux to start with but this seemed to fix my problem.
Got it working now thanks.

This topic is closed to new replies.

Advertisement