- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
You need to compile the .java file you have, and run the .class file that is produced.
Open up command prompt, go to your working directory. If your file was called Hello.java: In command prompt type "javac Hello.java". Now, in the working directory, you will see a new file, Hello.class. Run that file by "java Hello.class". Hope this helps!
Thanks for using FixYa
download java compiler from http://www.oracle.com/technetwork/java/javase/downloads/index.html
Go where you install your java, default Path is "C:\Program Files\Java" in Java Folder open folder jdk then open bin copy its directory located at the address bar then
Right Click My Comuter > left click Properties > Advance > Environment Variables > on System Variables find Path then click it then click Edit insert a semicolon " ; " on the end of the textbox (if already have don't add semicolon) then paste the directory you copy...
you can now create your Java Code....
to Compile and Run it... open command promt ( to open click start > run > type cmd ) go to directory where you save your java code.. (ex. if your Directory is "D:\Java Folder" then type "cd.." press Enter repeat "cd.." until "C:\>" is remaining then type "D:" press enter then type "cd Java Folder" then press Enter type "javac (name of your javacode).java " Press Enter (if there is an error correct your java code) if no type "java (name of your javacode)" there you can run your Java Code
Hello there :
first you are going to want to ensure that your your current version of java is installed correctly and is not corrupted and if it needs to be reinstalled
download the latest java version and reinstall this . www.java.com
this should be able to take care of the problem that you are having ok?
best regards michael
Your PC - not the calculator - printed this message. It means that the PC tried to execute the Java compiler, but couldn't find the program. Either the Java compiler is not installed, or the PATH environment variable is not set correctly.
To install the Java compiler follow the instructions for installing J2SE at java.sun.com
To fix the PATH environment variable:
right-click on My Computer,
select Advanced System settings,
select environment variables,
edit or create a new variable called PATH in the system or user settings with the path of the javac.exe program. This is often found in c:Program FilesJavain (it's in a java...bin directory somewhere)
hi, It is not necessary to install java in order to use java. Just download java highest version, copy and paste the java software in the system drive(eg C:,D:,....), Then set path the java file. Example, if you have the java file in your C drive, do the following steps
1. Goto start->Run-> type command. Command prompt(black screen) will open. 2. if it shows as C:> follow the steps, else Goto step 6. 3. set path="c:\Java file name" 4. type javac 5.after typing if u find compiler then Java is installed in your system. 6. Example... if it shows as F:> and if u have saved your file in C:, do the following. 7. cd.. 8. cd.. 9. cd C 10 .then it appears as C:>, follow from the step 3.