Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (1.5k points)
recategorized by
Can I run a Java program in Notepad without having an IDE?

1 Answer

0 votes
by (1.4k points)

You cannot run a Java program in Notepad, but you can run it using your command prompt by following the mentioned steps: 

Step 1: 

Search what is the location of the program where it is saved 

Step 2: 

Let’s say your program is saved with name demo then type the following command in the cmd prompt 

  • cd\   

  • cd demo 

NoteNow you are inside your folder where you have saved your program, simply execute the following command and your program will start executing 

Java Example.jav

Related questions

31k questions

32.9k answers

507 comments

693 users

...