Advertisement
Shailrshah

[JAVA] How to program using only cmd and notepad

Sep 8th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ##The Java SE Development Kit(JDK): http://bit.ly/JavaSeDownloads##
  2.  
  3. 1. Select Start.
  4.  
  5. 2. Click on Run.
  6.  
  7. 3. Type 'cmd' and press enter.
  8.  
  9. 4. Navigate to the JDK's bin folder by the cd command (cd C:\Program Files\Java\jdk1.7.0_25\bin).
  10.  
  11. 5. Type 'notepad newProgram.java', where 'newProgram' is the class name in which main() is going to be.
  12.  
  13. 6. Start coding.
  14.  
  15. 7. Save the file by pressing Ctrl+S.
  16.  
  17. 8. Go back to command prompt, and type 'javac newProgram.java' for compiling your code.
  18.  
  19. 9. If the compilation is not successful, go back to your code and figure out what's wrong.
  20.  
  21. 10. Type 'java newProgram' to run your code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement