Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Still Nothing's Working

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I think something REALLY is wrong with my Java compiler. Everyone says that I just run the program, put in "Javac [filename].java" and it compiles. But it never does. It just says "Bad Command or File Name" everytime I put that in. I'm going to try to reinstall it when I have time. If it still doesn't work after that, any idea what I should do?
 
need to know: what IS your java compiler? [sig]<p>Lupine<br><a href=mailto:RobertCorrina@patownsend.com>RobertCorrina@patownsend.com</a><br><a href= > </a><br> [/sig]
 
I downloaded this:

Java 2 SDK, v 1.3.0 Software for Windows 95 / 98 / 2000 / NT 4.0 (Intel Platform)
 
first of all type &quot;javac&quot; and &quot;java&quot; on the command prompt this should show various options available with the above commands.
If not then your java package is not installed correctly reinstall or set your path in &quot;Autoexec.bat&quot; file properly.
if yes make sure you are not including any package name in your *.java source file
good luck
hersh
 
I had the same problem, but the solution was simple. You must be sure to have the CLASSPATH and the PATH in your autoexec.bat (like hersh says). Something like

PATH C:\jdk1.2.2\bin

SET CLASSPATH=.;C:\jdk1.2.2\lib\tools.jar
 
Hi, I'm back after a long time. Got a bit busy with other things. Now I'm back with trying to learn Java.

First, where do I put those PATH and CLASSPATH lines in the BAT file?
Second, I ran the AUTOEXEC.BAT from the MS-DOS Prompt and it's just an anti-virus thing. Are you sure it will work if I do this?
 
If you go in the faq section under this java(sun) forum you will find a document how to get the jdk working.

good luck
ackka
ackka@mad.scientist.com
duke_wave.gif
Java is the Future
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top