Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows command script failing to recognize CD parameter for Java program
    text
    copied!<p>I'm trying to run a Java program from a script called converter.cmd but something is wrong. </p> <pre><code> P:\LatitudeConsulting\LatConConverter-1.8.2&gt;dir Volume in drive P has no label. Volume Serial Number is 1074-4BBE Directory of P:\LatitudeConsulting\LatConConverter-1.8.2 08/25/2011 10:32 AM &lt;DIR&gt; . 08/25/2011 10:32 AM &lt;DIR&gt; .. 05/11/2011 09:29 PM 2,349 convert.xsd 02/19/2008 09:28 PM 100 Converter.cmd 05/11/2011 09:29 PM 104,697 Converter.jar 05/11/2011 09:29 PM 74,082 Converter.jar.old 05/19/2011 01:02 PM 1,432 Converter.properties 05/19/2011 04:37 PM 1,432 Converter.properties.modifiedJJA.txt 08/24/2011 04:54 PM 292 FieldList.txt 08/25/2011 10:31 AM &lt;DIR&gt; jre.1.6.0 05/11/2011 09:30 PM 1,747 MimeTypes.properties </code></pre> <p>Here is the content of converter.cmd:</p> <blockquote> <p>cd %~dp0% <br /> jre.1.6.0\bin\java -Xmx1024m -cp Converter.jar com.latcon.ExportConvert.Converter %1 %2</p> </blockquote> <p>Here is what I get when I type converter at the above command prompt:</p> <pre><code> P:\LatitudeConsulting\LatConConverter-1.8.2&gt;converter P:\LatitudeConsulting\LatConConverter-1.8.2&gt;cd P:\LatitudeConsulting\LatConConverter-1.8.2\ P:\LatitudeConsulting\LatConConverter-1.8.2&gt;jre.1.6.0\bin\java -Xmx1024m -cp Converter.jar com.latcon.ExportConvert.Conv erter 'jre.1.6.0\bin\java' is not recognized as an internal or external command, operable program or batch file. P:\LatitudeConsulting\LatConConverter-1.8.2&gt; </code></pre> <p>EDIT---------</p> <pre><code> P:\&gt;dir p:\LatitudeConsulting\LatConConverter-1.8.2\jre.1.6.0\bin\java.* Volume in drive P has no label. Volume Serial Number is 1074-4BBE Directory of p:\LatitudeConsulting\LatConConverter-1.8.2\jre.1.6.0\bin 05/11/2011 09:29 PM 126,976 java.dll 1 File(s) 126,976 bytes 0 Dir(s) 16,691,785,728 bytes free P:\&gt; </code></pre> <p>Looks like no java.exe exists - only java.dll </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload