please help

i got some problem on running the program under dos. i crate a program, then type in

javac Myapplication.java

it come out with the "Bad command or file name"

note that i got setj.bat file(i'm using winme)

before this i can compile the program(a few weeks ago), but now cannot, what's going on, please help me ...

[347 byte] By [kinki_ngmya] at [2007-9-27 7:34:01]
# 1

i got some problem on running the program under dos. i crate a program, then type in

javac Myapplication.java

it come out with the "Bad command or file name"

note that i got setj.bat file(i'm using winme)

before this i can compile the program(a few weeks ago), but now cannot, what's going on, please help me ...

you need to set the path

I assume you have installed your JDK in c:

try to write this on dos prompt

path=c:\jdk\bin;%PATH%;

hope this helps

bhart_ina at 2007-7-8 11:31:55 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
You need to set java_home\bin in your path.Or type, C:\Jdk1.3\bin\javac Myapplication.javaHere c:\jdk1.3 is your jdk installed dir.
sudha_mpa at 2007-7-8 11:31:56 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
thanks all your help.
kinki_ngmya at 2007-7-8 11:31:56 > top of Java-index,Archived Forums,New To Java Technology Archive...