<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What is the script for NPPExec, to compile and run java application on Notepad++ 7.6.3]]></title><description><![CDATA[<p dir="auto">What is the script for NPPExec to compile and run a Java application in notepad++ 7.6.3. I have this in the “commands” of NPPExec…<br />
cd ${CURRENT_DIRECTORY}<br />
javac ${FILE_NAME}<br />
java ${NAME_PART}<br />
and I applied Ctrl-X to compile and run but when I press Ctrl-X this is what I get…<br />
NPPEXEC: “Compile_Run_Java”<br />
CD: ${CURRENT_DIRECTORY}<br />
Current directory: C:\Program files\Notepad++<br />
javac ${FILE_NAME}<br />
Process started (PID=4688)&gt;&gt;&gt;<br />
javac: invalid flag: ${FILE_NAME}<br />
Usage: javac&lt;options&gt;&lt;sourcefiles&gt;<br />
use --help for a list of possible options<br />
&lt;&lt;&lt;Process finished(PID=4688).(Exit code 2)<br />
java ${NAME_PART}<br />
Process started(PID=8172)&gt;&gt;&gt;<br />
Error: could not find or load main class ${NAME_PART}<br />
caused by: java.lang.ClassNotFoundException: ${NAME_PART}<br />
&lt;&lt;&lt;Process finished(PID=8172). (Exit code 1)<br />
What do I do, remember this is Notepad++ 7.6.3 maybe the script is different for this version or is there another way to compile and run java?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17193/what-is-the-script-for-nppexec-to-compile-and-run-java-application-on-notepad-7-6-3</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 03:21:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17193.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Feb 2019 00:05:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What is the script for NPPExec, to compile and run java application on Notepad++ 7.6.3 on Wed, 27 Feb 2019 06:16:17 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Mr.Peter Jones. I tried the parentheses instead of the curly braces and it compiled and run a small java application. God bless you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40366</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40366</guid><dc:creator><![CDATA[Abdelrahiman Soliman]]></dc:creator><pubDate>Wed, 27 Feb 2019 06:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to What is the script for NPPExec, to compile and run java application on Notepad++ 7.6.3 on Wed, 27 Feb 2019 00:48:27 GMT]]></title><description><![CDATA[<p dir="auto">NppExec uses parenthesis, not curly-braces, for it’s variables, so instead of using</p>
<pre><code>cd ${CURRENT_DIRECTORY}
javac ${FILE_NAME}
java ${NAME_PART}
</code></pre>
<p dir="auto">change that to</p>
<pre><code>cd $(CURRENT_DIRECTORY)
javac $(FILE_NAME)
java $(NAME_PART)
</code></pre>
<p dir="auto">That should work for you.</p>
<p dir="auto">if you will ever have the possibility of spaces in your filenames, use</p>
<pre><code>cd "$(CURRENT_DIRECTORY)"
javac "$(FILE_NAME)"
java "$(NAME_PART)"
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/40360</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40360</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 27 Feb 2019 00:48:27 GMT</pubDate></item></channel></rss>