Skip to main content
Steps to run JAVA code using command prompt:

  1. pc
  2. right click
  3. properties
  4. advance system settings
  5. environment variable
  6. system variable
  7. path
  8. C:\Program Files\Java\jdk1.8.0_144\bin
  9. click three times 'ok'.
  10. go to command promt (start+r+cmd)
  11. type javac -version
  12. start notepad hello.java
  13. yes
  14. type code
  15. javac hello.java
  16. java hello 
  17. done😊
/////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
a.java

class a
{
public static void main(String a[])
{
System.out.println("hello world");
}
}
///////////////////////////////////////////
compile it using javac a.java
run it using java a
then you will get output.





(my intension is to use windows like fedora.....)

                                                      






                                                          Thank you so much............

Comments