Link to home
Start Free TrialLog in
Avatar of atsu
atsu

asked on

Cannot compile java application in Windows XP

I have windowsXP, In PATH I included the path where I have javac. But I cannot compile my java application (jdk1.2.2). e.g. <javac Test.java>. This riased a windowsXP dialog box that cannot run javac.

May someone can help me?


Thanks in advance
Avatar of s_lavie
s_lavie

Does it work with a full path of javac? i.e.
c:\MyJavacDir\javac Test.java
Avatar of atsu

ASKER

No. In DOS with full path also doesn't work. Some times java classname also doesn't work. i.e.

C:\java\java test

But with some applications works. I downloaded also JRE free addition for java.
I am also trying but if anyother idea. please.

THANKS
i would suggest to download a java IDE.  I use JCreator (it's free).  Then you won't have to compile in dos and it's a pretty good editor too!  I have xp as well and have no problems.
ASKER CERTIFIED SOLUTION
Avatar of umargul
umargul

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
Hell Umargul,

I did the same as you wrote, but still javac not working ans some time java also. I am using JDK1.2.2.

If you have any other idea?

I shall write you later what I wrote in PATH.

Hello Umargul,

I did the same as you wrote, but still javac not working ans some time java also. I am using JDK1.2.2.

If you have any other idea?

I shall write you later what I wrote in PATH.

hello Bhatti
 Then the other thing you can do is to download the jre for Windows XP from the java.sun.com site. Then try the C:\java commad.
Avatar of atsu

ASKER

I downloaded the jre for WindowsXP, but that action did not solve the problem.

I can run the classes with java command as "java Test" but

javac Test.java is not working.
Dear atsu
then the only problem you can have is that ur class path is wrong. so see it again.
This question appears to have been abandoned. A Moderator will be asked to
close this question after seven days, with the following recommended
disposition:

Points to umargul

If you have any comment or objection to the recommendation, please leave it here.

Please do NOT accept this comment as an answer. Thank You!

guidway :0)
EE Cleanup Volunteer
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange