Problem with ClassPath
Hi Guys,
I am having problems with the program I am writing. I have several classes in the same directory and I passed the parameters to the compiler for it to look for the classes on that directory using -cp, but it still can not find the classes.
this is my classpath D:\UNI\JAVA\wagecalculator_2\ .
I can not understand why is not working, as the previous version has a similar path and the parameters are identical and it works fine.
Any help would be apreciated.
Best regards
Luis
> I am having problems with the program I am writing. I
> have several classes in the same directory and I
> passed the parameters to the compiler for it to look
> for the classes on that directory using -cp, but it
> still can not find the classes.
> this is my classpath D:\UNI\JAVA\wagecalculator_2\
> .
Go to your directory. Type
javac -cp . *.java
> can not understand why is not working, as the
> previous version has a similar path and the
> parameters are identical and it works fine.
I can't tell you why it's not working because you didn't even show us the command you use to compile. Nor did we see your classpath variable. I'm not sure about what you posted, that could be anything, system classpath variable's value or command-line argument.
Hi CeciNestPasUnProgrammeur,
I am using an editor called TextPad, the command on the compiler is:
javac.exe -cp $FileDir $File all the files are on the directory D:\UNI\JAVA\wagecalculator_2\ ,
It seems all ok for me, so thats why I can not see what the problem is.
Best regards
Luis
P.S - I am not a programmer either :)