Link to home
Start Free TrialLog in
Avatar of jl2001
jl2001

asked on

Java compilation problem

Hi, experts

I am using win2k advance server. I have set the classpath for java. But when I compile java file in some folders, there are many errors. I have to go to Control panel - system - advanced - environment variables, then click OK. It would be ok to compile the java files.

Could you please help me to fix it? thanks.
Avatar of maggari
maggari

Make sure that all the class files that you use in your java programs are in the classpath ( not just jdk jars). Also, one common mistake we do is, we forget to keep the current folder in classpath. Make sure classpath variable starts something like this:

Classpath=.;

ASKER CERTIFIED SOLUTION
Avatar of asharma2
asharma2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial