Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In general, the compiler expects the source files and outputs the class files according to the package structure.</p> <p>If you don't give any <code>-sourcepath</code> (or <code>-classpath</code> if no sourcepath is given) options, the source files are searched relative to the current directory. If a source path is given, the source files are searched relative to this path (in addition to any file directly specified on the command line).</p> <p>Similarly, if you don't specify any <code>-d</code> options, the class files will be put into directories according to the package structure, relative to the current directory. If you give an <code>-d</code> option, the class files will be put relative to the directory given by the option. Non-existing directories will be created here.</p> <p>Thus, if you want to create the output in the same directory tree as your source files are, the usual way to go would be to change into the root of this tree (<code>C:\</code> in your case), and from there call javac:</p> <pre><code>javac -classpath ... -sourcepath . APPC_LU62\Runtime\*.java </code></pre> <p>(or list only the java files you actually want to compile). Alternatively, you could add the <code>-d C:\</code> and <code>-sourcepath C:\</code> options, and then call the command from whereever you want:</p> <pre><code>javac -classpath ... -sourcepath C:\ -d C:\ C:\APPC_LU62\Runtime\*.java </code></pre> <p>The same is valid later for executing the classes with the <code>java</code> command: This also expects the classes in directories according to the package structure, with the root being a directory or jar file mentioned in the class path. Thus you will have to add <code>C:\</code> to the <code>-classpath</code> for your <code>java</code> call.</p> <p>(By the way, I would not use the root of some drive as the root of the package hierarchy - better move everything one directory down.)</p>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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