Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling a netbeans program on the commandline
    primarykey
    data
    text
    <p>I wrote a program in Netbeans for my own use, but now someone else wants to use it remotely from the command line and give command line arguments. I changed the code up to accept commandline arguments but I can't seem to get the code to run correctly. If I type this (all the required command line args): </p> <pre><code> java -jar /home/Stephanie/NetBeansProjects/consistentBelow/dist/consistentBelow.jar -o /home/Stephanie/Data/out9.txt //where the output file should be -f /home/Stephanie/Data/ //what folder the files are located in -c /home/Stephanie/Data/48E_cov1.txt //file -l /home/Stephanie/Data/list.txt //file 48.doc //sample 48e.doc //sample </code></pre> <p>It runs just fine, but never produces the output file. I tried to recompile from the command line (thinking, perhaps it is running an older compiled version) but it isn't recognizing one of the packages I downloaded to make the command line arguments:</p> <pre><code>javac /home/Stephanie/NetBeansProjects/consistentBelow/src/consistentbelow/ConsistentBelow.java /home/Stephanie/NetBeansProjects/consistentBelow/src/consistentbelow/ConsistentBelow.java:9: package com.martiansoftware.jsap does not exist import com.martiansoftware.jsap.*; ^ </code></pre> <p>I tried to mess around with class path but I can't seem to get anywhere:</p> <pre><code>javac -jar /home/Stephanie/NetBeansProjects/consistentBelow/src/consistentbelow/ConsistentBelow.jar -classpath /home/Stephanie/Downloads/JSAP-2.1.jar Unable to access jarfile /home/Stephanie/NetBeansProjects/consistentBelow/src/consistentbelow/ConsistentBelow.jar </code></pre> <p>(Also, if I try to run the program in Netbeans, it seems like it is ok. It just grumps about not having the arguments, as I would expect)</p> <pre><code>Error: Parameter 'out' is required. Error: Parameter 'folder' is required. Error: Parameter 'coverage' is required. Error: Parameter 'list' is required. Error: Parameter 'samplefile' is required. Usage: java consistentbelow.ConsistentBelow (-o|--outputlocation) &lt;out&gt; (-f|--folder) &lt;folder&gt; (-c|--coverage) &lt;coverage&gt; (-l|--list) &lt;list&gt; samplefile1 samplefile2 ... samplefileN (-o|--outputlocation) &lt;out&gt; Where would you like the resulting file to be put? Full path and desired file name (-f|--folder) &lt;folder&gt; What folder will we find the sample files in? Full path (-c|--coverage) &lt;coverage&gt; Where is the coverage file? Full path (-l|--list) &lt;list&gt; Where is the interval list file? Full path samplefile1 samplefile2 ... samplefileN Please write the full file name for each sample we will look at Java Result: 1 </code></pre> <p>I can include code and output if it will really help to solve the problem but I didn't want to make the question huge if it is just a compile issue. Does anyone have any suggestions? </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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