The Little Guy Posted September 3, 2008 Share Posted September 3, 2008 Does anyone know how to run/compile Java Programs through Notepad++? I downloaded and installed Java SDK... Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/ Share on other sites More sharing options...
Daniel0 Posted September 4, 2008 Share Posted September 4, 2008 CLI: javac something.java java something javac.exe is in the JDK which is probably what you mean when you say SDK. Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/#findComment-633335 Share on other sites More sharing options...
The Little Guy Posted September 4, 2008 Author Share Posted September 4, 2008 javac.exe is in the JDK which is probably what you mean when you say SDK. Yeah... Well I tried those commands... I don't think they worked... Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/#findComment-633342 Share on other sites More sharing options...
steelmanronald06 Posted September 4, 2008 Share Posted September 4, 2008 Did you set up java correctly? I'd recommend Eclipse, also. Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/#findComment-633603 Share on other sites More sharing options...
steelmanronald06 Posted September 4, 2008 Share Posted September 4, 2008 This is from my old java class: * See PDF Attachment* [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/#findComment-633604 Share on other sites More sharing options...
The Little Guy Posted September 4, 2008 Author Share Posted September 4, 2008 Did you set up java correctly? I'd recommend Eclipse, also. I think I set it up right, I used crimson editor, and it compiled it, and ran it. I would like to use Notepad++ since it is my fav editor at the moment, and Eclipse is just too big. Its only for one class. Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/#findComment-633921 Share on other sites More sharing options...
The Little Guy Posted September 4, 2008 Author Share Posted September 4, 2008 I GOT IT! You have to go to "Execute" (F6) Not "Run" (F5). Replace %JAVA_HOME% with Java's home directory Save this command: cmd /c cd "$(CURRENT_DIRECTORY)" && "%JAVA_HOME%\bin\javac" "$(FULL_CURRENT_PATH)" and run it. To run java, do this (didn't test this one yet): cmd /k cd "$(CURRENT_DIRECTORY)" && "%JAVA_HOME%\bin\java" "$(NAME_PART)" && exit Link to comment https://forums.phpfreaks.com/topic/122639-solved-java-amp-notepad/#findComment-633946 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.