thanks
Jyo
thanks
Jyo
Jyoti Vaskar wrote:But now again finding one problem while running javac.exe file.
Ulf Dittmer wrote:
What problem is that?
thanks
Jyo
Ulf Dittmer wrote:How are you running it? It sounds as if you're double-clicking it, which is the wrong way to use it. You'd use it from the command line by typing something like "javac MyJavaClass.java".
thanks
Jyo
the javac.exe file is when run blinks & get disappeard
Jesper Young wrote:If you are running it in a command prompt window like you described, then what do you mean exactly with
the javac.exe file is when run blinks & get disappeard
thanks
Jyo
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Jyoti Vaskar wrote:
Ulf Dittmer wrote:How are you running it? It sounds as if you're double-clicking it, which is the wrong way to use it. You'd use it from the command line by typing something like "javac MyJavaClass.java".
I have typed the command as C:\Program Files\Java\jdk1.6.0_14\bin\javac.exe in commandline.
thanks
Jyo
your path is not correct.'javac' is not recognized as an internal or external command,
operable program or batch file.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
fred rosenberger wrote:as Ulf said, click "start", then "run". type "cmd" into the box, and hit "OK". This will give you a command window (sometimes called a DOS box by us old farts). this is how you used to interact with a computer.
if your path is set up correctly, you should be able to type "javac -version", and it should print something like "javac 1.6.0_11"
if it printsyour path is not correct.'javac' is not recognized as an internal or external command,
operable program or batch file.
Assuming that works, your next step is to compile your program. Assuming you have a java file names "MyClass.java", you would type
javac MyClass.java
Note: Case is very important here. Even though Windows is not case sensitive, the java compiler is. It will see a difference between "myclass.java" and "MyClass.java". What you type has to match your file name EXACTLY.
this should create a file called "MyClass.class".
If you get that far, come back and we'll try the next step.
thanks
Jyo
Jyoti Vaskar wrote:But want to know why we cant open the javac.exe file from the location where the file is stored???
i.e. in C:\Program Files\Java\jdk1.6.0_14\bin ???
or from run in start menu by giving the direct command C:\Program Files\Java\jdk1.6.0_14\bin\javac.exe???
Please explain if anyone have any idea.
Joanne
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
thanks
Jyo