Back

Explore Courses Blog Tutorials Interview Questions

Explore Tech Questions and Answers

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

0 votes
2 views
by (1.5k points)
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

Browse Categories

...