

I've recently run into this situation in Windows 7 64-bit. I could just used CMD but i'd rather it be more integrated into notepad++ĮDIT: I'm using the latest version of Java, notepad++ and have Windows 7ĮDIT 2: the code: //A Very Simple Example

I would like a easy way to compile and run Java code from within Notepad++ I figured setting up Notepad++ to compile and run the code would be easy and fun, but its seems all documentation on the internet is outdated as nothing works. class file, however the command failed in running the program cd “$(CURRENT_DIRECTORY)”Įrrors from the console in Notepad++ are: : firstĬaused by: : firstĪt $1.run(Unknown Source)Īt (Native Method)Īt (Unknown Source)Īt (Unknown Source)Īt $AppClassLoader.loadClass(Unknown Source)Ĭould not find the main class: first. Using a plugin called npp and called through F6 and run with this code (given in the comments) succeeds in compiling the Java program into the correct. Java is properly setup and I can call the Java program to do its thing through CMD. To run the resulted byte code, however this has absolutely no success at all anymore. This is the code to run Javac to compile the code: javac “$(FILE_NAME)” I guess notepad++ has changed or the Java development Kit has been massively modified because all examples I have used result in errors, even though there is little room for error. I've been trying to set up Notepad++ as a little Java environment, mainly for learning Java as I was having some difficulty getting a simple program to work with NetBeans, unfortunately all the advice on setting up Notepad++ to call the Java code is not working.
