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

[529 byte] By [Luis_Moreiraa] at [2007-11-26 20:52:15]
# 1

> 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.

CeciNEstPasUnProgrammeura at 2007-7-10 2:17:35 > top of Java-index,Java Essentials,New To Java...
# 2

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 :)

Luis_Moreiraa at 2007-7-10 2:17:35 > top of Java-index,Java Essentials,New To Java...
# 3
Show us the value of your CLASSPATH variable.I think you haven't included the jdk or jre in your CLASSPATH.Show us your Exception....Maybe we can figure out the problem.....
n3bul4a at 2007-7-10 2:17:35 > top of Java-index,Java Essentials,New To Java...