Re: Java application not working with space in the path



In article <gmul9u$tr5$1@xxxxxxxxxxxxxxxxx>, Lew <noone@xxxxxxxxxxxxx>
wrote:

luca.crespo@xxxxxxxxx wrote:
Obvious question: is the jar file in that directory
Not-so obvious: does its Manifest file specify a Main-Class
is the specified class name correct

Obvious: the jar is there
Not-so: can you specify what you mean? I have no idea what a Manifest
file or class name are, sorry...

This is something you really must know before writing JARs intended
to run with the "-jar" option.

<http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html>
<http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html>

Excellent reading. When tracking problems in the manifest, I've found it
useful to be able to examine the manifest _in_situ_:

<http://sites.google.com/site/drjohnbmatthews/manifesto>

to which I've added these informative references.

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
.



Relevant Pages

  • Re: Question about ant and running java programs
    ... You must specify a manifest when you create the JAR file. ... The Ant task provides a way to specify manifest entries. ... Anyone trying to execute "ant dist" using that build file would run ...
    (comp.lang.java.help)
  • Re: cross-jars resource bundles
    ... Java's -cp option is ignored when running from a JAR, ... specify a Class-Path in the manifest: ... I don't want to specify app.jar inside i18n.jar. ... used by several other packages I am not even aware of (and all will be ...
    (comp.lang.java.programmer)
  • Re: How to specify the main() class in "jar -cfe ..." ?
    ... What do I have to specify for in the command above? ... jar -cfe myjar.jar MyTestclass123 *.class ... way to construct a JAR file with a manifest: ... This small project, which allows one to examine the manifest in place, ...
    (comp.lang.java.help)
  • Re: Java application not working with space in the path
    ... does its Manifest file specify a Main-Class ... is the specified class name correct ... Obvious: the jar is there ...
    (comp.lang.java.programmer)
  • Re: Java application not working with space in the path
    ... Obvious: the jar is there ... Not-so: can you specify what you mean? ... I have no idea what a Manifest ...
    (comp.lang.java.programmer)