<?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[does not open folders! How to open a file without specifying the entire path?]]></title><description><![CDATA[<h2>CD: C:\Users\User\Documents\Javaua<br />
Current directory: C:\Users\User\Documents\Javaua<br />
java -classpath C:\Users\User\Documents\Javaua\bin <em><strong>com.javaua.task.task02.task0202.Solution</strong></em><br />
Process started (PID=2392) &gt;&gt;&gt;<br />
Alina<br />
&lt;&lt;&lt; Process finished (PID=2392). (Exit code 0)<br />
================ READY ================</h2>
<p dir="auto">CD: C:\Users\User\Documents\Javaua<br />
Current directory: C:\Users\User\Documents\Javaua<br />
java -classpath C:\Users\User\Documents\Javaua\bin com/<em><strong>.Solution<br />
Process started (PID=7120) &gt;&gt;&gt;<br />
Error: Could not find or load main class com.</strong></em>.Solution<br />
&lt;&lt;&lt; Process finished (PID=7120). (Exit code 1)<br />
================ READY ================</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22102/does-not-open-folders-how-to-open-a-file-without-specifying-the-entire-path</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 14:23:59 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22102.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Nov 2021 16:45:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to does not open folders! How to open a file without specifying the entire path? on Mon, 08 Nov 2021 18:11:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykola-biloshytskyi" aria-label="Profile: mykola-biloshytskyi">@<bdi>mykola-biloshytskyi</bdi></a> ,</p>
<p dir="auto">So you completely ignored everything I told you – you did not use the template I gave you, you did not use the formatting buttons, you did not response to all three questions.</p>
<p dir="auto">However, it doesn’t matter.  The command-line data that you showed proves that the problem is <em>not</em> with Notepad++ or with the plugin NppExec.  The problem is with the syntax you are using on the command line – because you are getting the same error there that you did in NppExec.  Your question is thus a Java question, <em>not</em> a Notepad++ or NppExec question.</p>
<p dir="auto"><strong>You are going to have to find a Java forum and ask your question there.</strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/71165</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71165</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 08 Nov 2021 18:11:51 GMT</pubDate></item><item><title><![CDATA[Reply to does not open folders! How to open a file without specifying the entire path? on Mon, 08 Nov 2021 18:04:49 GMT]]></title><description><![CDATA[<p dir="auto">C:\Users\User\Documents\Javaua&gt;java -classpath C:\Users\User\Documents\Javaua\bi<br />
n com.javaua.task.task02.task0202.Solution<br />
Alina</p>
<p dir="auto">C:\Users\User\Documents\Javaua&gt;java -classpath C:\Users\User\Documents\Javaua\bi<br />
n com/ ** / * . Solution<br />
Error: Could not find or load main class com.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71164</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71164</guid><dc:creator><![CDATA[Mykola Biloshytskyi]]></dc:creator><pubDate>Mon, 08 Nov 2021 18:04:49 GMT</pubDate></item><item><title><![CDATA[Reply to does not open folders! How to open a file without specifying the entire path? on Mon, 08 Nov 2021 17:43:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykola-biloshytskyi" aria-label="Profile: mykola-biloshytskyi">@<bdi>mykola-biloshytskyi</bdi></a> said in <a href="/post/71162">does not open folders! How to open a file without specifying the entire path?</a>:</p>
<blockquote>
<p dir="auto">com / ** / *. Solution</p>
</blockquote>
<p dir="auto">Easy enough: do exactly what I told you: paste in the text, then highlight it, then click on the big <code>&lt;/&gt;</code> button on the post editor.  This is detailed in the FAQ I linked you to.</p>
<pre><code class="language-txt">```
com / ** / *. Solution
```
</code></pre>
<p dir="auto">will be rendered as</p>
<pre><code>com / ** / *. Solution
</code></pre>
<p dir="auto">If you just pasted in the examples, selected them, and hit that button, it would have worked.</p>
<p dir="auto">I think you have a Java problem – ie, that you don’t know how to send the right command line arguments to the java executable; and I think you should contact a java forum for help with that.  If you disagree with me, then you need to show three things:</p>
<ol>
<li>A capture of the text from a working run from a standard command line window (cmd.exe or powershell)</li>
<li>A capture of the text of the NppExec script you are using</li>
<li>A capture of the output in the NppExec console when you run the script from #2.</li>
</ol>
<p dir="auto">You could use the following as a template:</p>
<pre><code class="language-txt">Here are the outputs you requested:
1. command line window
```
c:\&gt; java -classpath c:\...
```
2. NppExec script:
```
NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
javac "$(FILE_NAME)"
java -classpath "$(CURRENT_DIRECTORY)" "$(NAME_PART)"
```
3. NppEcec console output:
```
NPP_SAVE: C:\usr\local\scripts\comets.keepalive.pl
CD: C:\usr\local\scripts
Current directory: C:\usr\local\scripts
javac "file"
...
java -classpath "path" "file"
...
```
</code></pre>
<p dir="auto">(except you would put in your actual values, instead of my dummy values)</p>
<p dir="auto">This would render as<br />
Here are the outputs you requested:</p>
<ol>
<li>command line window</li>
</ol>
<pre><code>c:\&gt; java -classpath c:\...
</code></pre>
<ol start="2">
<li>NppExec script:</li>
</ol>
<pre><code>NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
javac "$(FILE_NAME)"
java -classpath "$(CURRENT_DIRECTORY)" "$(NAME_PART)"
</code></pre>
<ol start="3">
<li>NppEcec console output:</li>
</ol>
<pre><code>NPP_SAVE: C:\usr\local\scripts\comets.keepalive.pl
CD: C:\usr\local\scripts
Current directory: C:\usr\local\scripts
javac "file"
...
java -classpath "path" "file"
...
</code></pre>
<p dir="auto">Now, if you want help, use the template I just provided, and paste in your values.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71163</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71163</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 08 Nov 2021 17:43:13 GMT</pubDate></item><item><title><![CDATA[Reply to does not open folders! How to open a file without specifying the entire path? on Mon, 08 Nov 2021 17:21:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykola-biloshytskyi" aria-label="Profile: mykola-biloshytskyi">@<bdi>mykola-biloshytskyi</bdi></a> said in <a href="/post/71159">does not open folders! How to open a file without specifying the entire path?</a>:</p>
<blockquote>
<h2>CD: C:\Users\User\Documents\Javaua<br />
Current directory: C:\Users\User\Documents\Javaua<br />
java -classpath C:\Users\User\Documents\Javaua\bin <em><strong>com.javaua.task.task02.task0202.Solution</strong></em><br />
Process started (PID=2392) &gt;&gt;&gt;<br />
Alina<br />
&lt;&lt;&lt; Process finished (PID=2392). (Exit code 0)<br />
================ READY ================</h2>
<p dir="auto">CD: C:\Users\User\Documents\Javaua<br />
Current directory: C:\Users\User\Documents\Javaua<br />
java -classpath C:\Users\User\Documents\Javaua\bin com/.Solution<br />
Process started (PID=7120) &gt;&gt;&gt;<br />
Error: Could not find or load main class com/.Solution<br />
&lt;&lt;&lt; Process finished (PID=7120). (Exit code 1)<br />
================ READY ================</p>
</blockquote>
<p dir="auto">I don’t know how to write “com / ** / *. Solution” correctly</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71162</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71162</guid><dc:creator><![CDATA[Mykola Biloshytskyi]]></dc:creator><pubDate>Mon, 08 Nov 2021 17:21:03 GMT</pubDate></item><item><title><![CDATA[Reply to does not open folders! How to open a file without specifying the entire path? on Mon, 08 Nov 2021 16:59:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykola-biloshytskyi" aria-label="Profile: mykola-biloshytskyi">@<bdi>mykola-biloshytskyi</bdi></a></p>
<p dir="auto">PS: it would help if you followed the formatting recommendations in the <a href="https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts">FAQ: Formatting Forum Posts</a> to use the <code>&lt;/&gt;</code> button (which puts in ``` lines around your example text), so we now exactly what data you have, without italics, bold, etc getting in the way.  And also include the NppExec script along with its output (my original phrasing made it sound like I was requestion <em>just</em> the output of the script, as you kind of showed above)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71161</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71161</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 08 Nov 2021 16:59:08 GMT</pubDate></item><item><title><![CDATA[Reply to does not open folders! How to open a file without specifying the entire path? on Mon, 08 Nov 2021 16:59:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mykola-biloshytskyi" aria-label="Profile: mykola-biloshytskyi">@<bdi>mykola-biloshytskyi</bdi></a> ,</p>
<p dir="auto">You need to make sure that the commands that you tell the NppExec plugin to run match the same commands you would run at the command line (cmd.exe or powershell) to get the java working correctly.  If the syntax <code>java -classpath C:\Users\User\Documents\Javaua\bin com/.Solution</code> works on a normal command line, it should work on NppExec as well.</p>
<p dir="auto">If there is a mismatch, you will need to make them the same.  If you think they are the same, but they are behaving differently, please show exact comparisons of what is being run at your working command line and what is actually being run in your NppExec script, and we might be able to help you with the right syntax in NppExec…</p>
<p dir="auto">But if you’re asking a question about Java, “how do I run a specific java file from the command line without specifying the entire path”, we Notepad++ users are not expected to be Java experts, and you should find a Java forum for asking that question.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/71160</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/71160</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 08 Nov 2021 16:59:02 GMT</pubDate></item></channel></rss>