N
Nigel Wade
Martin said:Is this 'MercatoLibero.bat' the same as the .bat file you've shown us?
- if not, where does it run and what java command is it using?
- if it is the same, try running:
makedir ml
copy MercatoLibero.jar ml\MercatoLibero.jar
and then running MercatoLibero.jar
That won't help. It's not the location of a the jar which is the problem. The
location of a jar doesn't really matter. That's the sort of thing you have to
worry about with a class file in the filesystem, if it is misplaced wrt its
package.
What the JVM is complaining about is that it can't find the main class
ml.MercatoLibero *within* the jar (or any other place on the classpath).
Presumably there's supposed to be an ml directory in the jar and the class
MercatoLibero.class should be in that directory.
What is the output of:
jar -tf MercatoLibero.jar
Does it show a directory ml containing MercatoLibero.class?
Also, can you run
jar -xf MercatoLibero.jar META-INF/MANIFEST.MF
This will extract the jar manifest into the directory META-INF. Only run this
command in a directory where you have write permission, and it's ok to create
that directory. What are the contents of the MANIFEST.MF file?