Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <code>CLASSPATH</code> you set in your environment affects only standalone Java applications, i.e. ones you run from a command prompt or an icon. As you've noticed, Eclipse ignores this. It sets up its own per-project classpaths.</p> <p><code>javac</code> and <code>java</code>, if called from the command prompt, should/may honor this path, but it's no longer considered great practice to do this. It's turned out that every app needs its own set of stuff, so a global CLASSPATH isn't really doing any of them any good. Modern practice is to simply specify the classpath with the <code>-cp</code> option on the command line for <code>javac</code> or <code>java</code>.</p> <p>A standalone Web Application server will also set up its own classpath. From the command line or GUI, WebAppServers are usually started by a script (<code>.BAT</code> or <code>.sh</code>) that sets up a classpath using <code>-cp</code>. Tomcat has a directory called <code>common</code> or <code>common/lib</code> where it expects to see libraries that should be available the the server and all programs running under it. But you will generally not need/want to mess with this, as it's customaries for applications to provide their own library collectons in <code>WEB-INF/lib</code>.</p> <p>So for a Web app, you'd put your varous jars into the <code>lib</code> directory, under <code>WEB-INF</code>, assuming Eclipse pre-builds such a directory structure for you.</p> <p>All the libs you need also need to be made known to Eclipse. In the Project Explorer, I select the whole slew of them at once, right-click and select <code>Build Path | add to build path</code>. That's easier than messing with Eclipse's project build path manually.</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