Hi
I'm trying to compile all my java files without the need to compile
separately.
I have basically only two directories to worry about:
o the working directory from where I will run the application
o another directory within it which has some files
Both directories have classes which refer to classes in the other.
Unfortunately, I am getting a problem on different systems:
java.lang.NoClassDefFoundError: theSoCalledNonExistentClass
I am using the following compile statement which is run from the working
directory (.):
% javac -classpath .;TheOtherDirectory MainClass.java (or *.java)
What is wrong with this?
Many thanks
VI
Martin Winkelbauer - 21 Apr 2004 08:43 GMT
> Hi
>
[quoted text clipped - 22 lines]
>
> VI
If a package statement is in the .java files then the classpath must refer
the root of that not the directory the .java is in.
hth
Martin
Roedy Green - 22 Apr 2004 05:48 GMT
>javac -classpath .;TheOtherDirectory MainClass.java (or *.java)
>
>What is wrong with this?
see http://mindprod.com/jgloss/classpath.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.