Computing.Net > Forums > Programming > Urgent!!!can't compile *.java file(rev.)

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Urgent!!!can't compile *.java file(rev.)

Reply to Message Icon

Original Message
Name: Reeve
Date: November 20, 2001 at 00:09:16 Pacific
Subject: Urgent!!!can't compile *.java file(rev.)
Comment:

I've recently installed a java decompiler in my computer and try to see what it is. I don't know if it has changed the file type of the files.After I've uninstalled the decompiler, all the *.java files cannot be compiled in the "JAV RUNNTIME SYSTEM"i.e."the dos prompt". I've tried to write a new class and save it as *.java and try to compile it, a message "Bad command or file name" appears!
I've also uninstalled the java sdk and reinstall it, then try to compile the *.java file again, still unsuccessful.How can I solve the problem? I've to hand in my homework this Friday!Please help me!Thanks.


Report Offensive Message For Removal


Response Number 1
Name: Alintan
Date: November 20, 2001 at 08:08:00 Pacific
Reply: (edit)

Are you There?



Report Offensive Follow Up For Removal

Response Number 2
Name: NG
Date: November 23, 2001 at 14:28:42 Pacific
Reply: (edit)

Do you have the JDK program directory configured under your paths? If you don't know what this means try this:

1. In the command prompt type "edit autoexec.bat" (minus the quotes).
2. Look for a line beginning with "PATH" and containing the string "c:\jdk1.3.1\bin" or something of that nature, depending on your JDK version and installation directory.
3. If you didn't find this, add a line that says "PATH=%PATH%;c:\jdk1.3.1\bin", this will add the JDK programs directory to a list of directories that DOS checks every time it goes to run a program.
4. Save autoexec.bat and reboot. Try it again.

If you did see this command in autoexec.bat post again and I'll think of something else.

-NG


Report Offensive Follow Up For Removal

Response Number 3
Name: Santhu
Date: December 21, 2001 at 11:30:47 Pacific
Reply: (edit)

CHeck for path and class path.


Report Offensive Follow Up For Removal

Response Number 4
Name: Sthawy Sthowp
Date: February 14, 2002 at 15:10:07 Pacific
Reply: (edit)

What if i have win xp?


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software