Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18273

Re: placement of other jars not in original in JDK download

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: placement of other jars not in original in JDK download
Date Tue, 21 Aug 2012 13:50:35 -0700 (PDT)
Organization http://groups.google.com
Lines 32
Message-ID <b71a4d13-ccc1-4af4-b6f2-5c84ea637d66@googlegroups.com> (permalink)
References <14fdabc2-3e23-40c9-b01a-fedfdc9a668c@googlegroups.com> <k10ouh$fs9$1@dont-email.me>
NNTP-Posting-Host 69.28.149.29
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1345582235 31797 127.0.0.1 (21 Aug 2012 20:50:35 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 21 Aug 2012 20:50:35 +0000 (UTC)
In-Reply-To <k10ouh$fs9$1@dont-email.me>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
Xref csiph.com comp.lang.java.programmer:18273

Show key headers only | View raw


Jeff Higgins wrote:
> bH wrote:
> > If I download poi-3.8 binary and I want to access
> > some of the jar files that are in the download,
> > as in this set of opening lines of a program that
> > uses some of it:
> 
> > import org.apache.poi.poifs.filesystem.*;
> > import org.apache.poi.hwpf.*;
> > import org.apache.poi.hwpf.extractor.*;
> > import java.io.*;
> 
> > Where do I place the poi-3.8
> > items(jars) that are in apache poi download?
> 
> On the classpath.
> <http://docs.oracle.com/javase/tutorial/essential/environment/paths.html>

Except don't use the CLASSPATH environment variable.

Use the "-cp" or equivalent "-classpath" option to the Java tools.
<http://docs.oracle.com/javase/7/docs/index.html>
<http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/java.html#options>

<http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/classpath.html>
"path option is preferred because you can set it individually for each application 
without affecting other applications and without other applications modifying its value."

In short, OP, read the documentation.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

placement of other jars not in original in JDK  download bH <bherbst65@hotmail.com> - 2012-08-21 12:31 -0700
  Re: placement of other jars not in original in JDK  download Jeff Higgins <jeff@invalid.invalid> - 2012-08-21 15:52 -0400
    Re: placement of other jars not in original in JDK  download Lew <lewbloch@gmail.com> - 2012-08-21 13:50 -0700
      Re: placement of other jars not in original in JDK  download Jeff Higgins <jeff@invalid.invalid> - 2012-08-21 17:13 -0400
        Re: placement of other jars not in original in JDK  download Lew <noone@lewscanon.com> - 2012-08-22 06:25 -0700
  Re: placement of other jars not in original in JDK  download Roedy Green <see_website@mindprod.com.invalid> - 2012-08-21 14:11 -0700
    Re: placement of other jars not in original in JDK  download Arne Vajhøj <arne@vajhoej.dk> - 2012-08-21 19:00 -0400
      Re: placement of other jars not in original in JDK  download "John B. Matthews" <nospam@nospam.invalid> - 2012-08-21 21:41 -0400
        Re: placement of other jars not in original in JDK  download Bob H <bherbst65@hotmail.com> - 2012-08-22 13:10 -0700
          Re: placement of other jars not in original in JDK  download Lew <lewbloch@gmail.com> - 2012-08-22 13:32 -0700
          Re: placement of other jars not in original in JDK  download "John B. Matthews" <nospam@nospam.invalid> - 2012-08-23 12:45 -0400
          Re: placement of other jars not in original in JDK  download Arne Vajhøj <arne@vajhoej.dk> - 2012-08-27 21:50 -0400
            Re: placement of other jars not in original in JDK  download Bob H <bherbst65@hotmail.com> - 2012-08-30 17:28 -0700
              Re: placement of other jars not in original in JDK  download Lew <lewbloch@gmail.com> - 2012-08-31 15:23 -0700
        Re: placement of other jars not in original in JDK  download Arne Vajhøj <arne@vajhoej.dk> - 2012-08-27 21:49 -0400
    Re: placement of other jars not in original in JDK  download Gunter Herrmann <notformail0106@earthlink.net> - 2012-08-23 13:52 -0400
  Re: placement of other jars not in original in JDK  download Bob H <bherbst65@hotmail.com> - 2012-08-22 16:49 -0700
    Re: placement of other jars not in original in JDK  download Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-08-23 02:39 +0200
      Re: placement of other jars not in original in JDK  download Jeff Higgins <jeff@invalid.invalid> - 2012-08-22 20:49 -0400
        Re: placement of other jars not in original in JDK  download Bob H <bherbst65@hotmail.com> - 2012-08-22 19:54 -0700
    Re: placement of other jars not in original in JDK  download Arne Vajhøj <arne@vajhoej.dk> - 2012-08-27 21:46 -0400

csiph-web