<?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[Reading java package directory for java source using notepad/nppexec script?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Using nppexec I found a way to compile a java file and put it in a specific (package) directory using javac -d &lt;destination&gt;  options. For this I have now a plugin command option in Macro menu which I called “Java Compile”. The code:</p>
<p dir="auto">cd $(CURRENT_DIRECTORY)<br />
javac -d C:\Users\ruijtpie\Documents\Java\rocbook\bin  $(FILE_NAME)</p>
<p dir="auto">What I am still trying though is to run the compiled file with an other menu option “Java Run”. For that I need to be able to read the package name as a directory and put it in a code like:</p>
<p dir="auto">java &lt;dir&gt; &lt;filename&gt;</p>
<p dir="auto">I looked in much places to  find any tutorial on either npp scripting or nppexec scripting, but there is not much that could help me.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16009/reading-java-package-directory-for-java-source-using-notepad-nppexec-script</link><generator>RSS for Node</generator><lastBuildDate>Thu, 15 Oct 2026 10:54:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16009.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jul 2018 09:01:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Reading java package directory for java source using notepad/nppexec script? on Fri, 06 Jul 2018 14:53:21 GMT]]></title><description><![CDATA[<p dir="auto">…and also:</p>
<pre><code>manual
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/33368</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33368</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Fri, 06 Jul 2018 14:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to Reading java package directory for java source using notepad/nppexec script? on Fri, 06 Jul 2018 14:52:13 GMT]]></title><description><![CDATA[<p dir="auto">When there’s a feeling of not enough help on NppExec, type the following in NppExec’s Console:</p>
<pre><code>help all
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/33367</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33367</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Fri, 06 Jul 2018 14:52:13 GMT</pubDate></item><item><title><![CDATA[Reply to Reading java package directory for java source using notepad/nppexec script? on Fri, 06 Jul 2018 13:40:41 GMT]]></title><description><![CDATA[<p dir="auto">This is my NppExec java-run script:</p>
<pre><code>NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
"C:\Program Files (x86)\Java\jdk1.8.0_51\bin\java" -classpath "$(CURRENT_DIRECTORY)" $(NAME_PART)
</code></pre>
<p dir="auto">(I rarely code in java, but the couple times I have (while trying to do tutorials), that seemed to work for me)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/33366</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/33366</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 06 Jul 2018 13:40:41 GMT</pubDate></item></channel></rss>