+ 7
Can we use notepad++ to work on java ?
9 Answers
+ 23
I had been using Notepadâ The one that comes with Windows for a long time for writing Java programs andthen running it through command line, though i hadNotepad++ installed on my system. But then it just flashed to me that âWhy canât i try Notepad++ for compiling and interpreting the Java programsâ. I searched in the FAQs under âRunning External Toolsâ and found useful information which has helped me to compile and run the Java programs right from the âNotepad++â application itself. Hereâs how it can be done:
Running External Tools in Notepad++:
External tools can be executed by passing the current edited document as argument. For doing this the âenvironment variableâ is used
The usage of Environment Variable:
$(ENVIRONMENT_VARIABLE)
Ex: Lets say we are editing âNotHelloWorld.javaâ
The 5 environment Variable that can be used are:
FULL_CURRENT_PATH:Â C:Documents and SettingsAdministratorMy DocumentsJavaPNotHelloWorld.java
CURRENT_DIRECTORY:Â C:Documents and SettingsAdministratorMy DocumentsJavaP
FILE_NAME:Â NotH
+ 11
for the beginners, it's very useful thing, to write in editor, and compile from console. This approach will allow you to understand that Java is a compiled language; if the jdk is installed right; also, what is a jvm from the great IDEs such Eclipse, NetBeans, Intellij and so on...
+ 9
You can also use NetBeans, it's a free IDE written in Java:
https://netbeans.org/downloads/
+ 1
sure. but you'll compile and run java programms via console(javac, java tools)
+ 1
yes we can use notepad++.in fact it makes lot more easier than the notepad but save the file with .Java extension
+ 1
yes you can but its unusual...you can use intellij instead
0
Yes but you have to compile the code manually.
I recommend Eclipse.
0
Yes Yes YES!!!