Re: Newbie: -classpath option of java does not load the content of the jar file



On Jun 27, 11:59 am, Guy <guyhare...@xxxxxxxxx> wrote:
Yes everything is located in the same directory:

j.class
j.java
ojdbc14.jar
META-INF
oracle

Your web site has been blocked by our MIS departement. Dont know why.

If everything is in the same directory, then you need to specify the
path of the directory when you are specifying the classpath.
Otherwise, I think, java will look on your platform path or
classpath. Since it would appear that you have everything in the same
space, why not just say -cp ./ and be done with it?

.



Relevant Pages

  • Re: Adding UNC paths to CLASSPATH
    ... >:The problem I've got is that I can't properly set the CLASSPATH required ... expecting that the jar file will already contain a manifest ... If this is all that's needed, then make sure your manifest contains one, ... Or specify them in a subdirectory and specify that in the ...
    (comp.lang.java.help)
  • Re: Setting up a classpath only for junit test.
    ... I have set a classpath element entry (in .classpath file for my ... resource is found correctly. ... would specify the location of resource-name2, ...
    (comp.lang.java.programmer)
  • Re: ZipException when running jar file from command file
    ... > But I need to specify VM arguments, and I can't specify VM arguments in ... > the manifest file (unless somebody can tell me how, ... If I run it by double-clicking MyJar.cmd from Windows Explorer, ... > CLASSPATH wasn't set. ...
    (comp.lang.java.programmer)
  • Re: Automated tool for exe jar
    ... >> Setup your CLASSPATH and also ensure Java's BIN directory is in PATH, ... The newer JDKs can get that from their installation. ... Maybe you mean to specify the path variable in the manifest file? ...
    (comp.lang.java.programmer)
  • Re: NoClassDefFoundError Files.Symantec.Norton with xjc tool
    ... probably your CLASSPATH. ... You'll need to specify how your program ...
    (comp.lang.java.programmer)