Q&A for How to Compile and Run Java Program by Notepad

Return to Full Article

Search
Add New Question
  • Question
    Do I need to install the JDK?
    JumpingDragon
    Community Answer
    Yes, you will need the JDK for any sort of programming, modding, or compiling software.
  • Question
    What are the basics of Java programming?
    Community Answer
    It would be helpful to learn basic data structures like integers, doubles, and strings, and how to manipulate them with math and functions.
  • Question
    How can I run the code if I don't have the plugin installed or can't install it?
    RainbowMineBear 09
    Community Answer
    You can't.
  • Question
    How can I run and compile in notepad not in notepad+++?
    Community Answer
    It's the same exact process. Simply click "File" then "Save As" and name it as .java.
  • Question
    Is Notepad++ like Eclipse?
    Community Answer
    Notepad++ is a text editor, with some added functionality (text coloring, smart indentation etc.). Eclipse is an IDE, a software designed specifically to aid your programming. It has a lot of features (debugger, syntax check, smart hints, auto-completion etc.) that both speed up the process of writing code and make it more efficient. For a beginner Notepad++ is all they need. However as they progress, an IDE will make their coding more productive with its extra features.
  • Question
    What are the required apps for java programming?
    Community Answer
    You need JDK (aka Java Development Kit), and a text editor like notepad. You can use an IDE (like Visual Studio Code, Atom, Eclipse etc) for more comfortable writing.
  • Question
    Can I run java code from a command prompt?
    Community Answer
    Yes, you can. Start command prompt, type javac YourAppName.java to compile it. Then it generates the .class file. To run the app, type java YourAppName.
  • Question
    How can I compile and run in Notepad instead of Notepad++?
    Daniel
    Community Answer
    You can't compile and run anything in Notepad. It's just a basic text editor without any plugins, contrary to Notepad++ which is a feature-rich text editor that offers plugins which enable you to do operations like this. However, you can still compile and run Java programs without Notepad++ with the Command Prompt using "javac foo.java" and "java foo".
  • Question
    Can you save the program in bin and run it using command prompt?
    Community Answer
    No. Actually, in order to run these types of programs, you must use other file extensions and not bin.
Ask a Question

      Return to Full Article