A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
Error Adding a manifest to a jar
Barry Brashear
Ranch Hand
Joined: Jun 05, 2001
Posts: 303
posted
May 28, 2004 08:46:00
0
I really not sure if this question belongs in this forum but thought it probably would. I have the following line in a bat file :
%JAVA_HOME%\bin\jar umvf manifest.txt vjmonitor.jar
When I run the bat file I get the following exception :
java.io.IOException
: invalid header field
The manifest file contains :
Main-Class: Monitor
Class-Path: . classes12.zip
Does anyone know what causes this?
Thanks,
Barry
Stefan Wagner
Ranch Hand
Joined: Jun 02, 2003
Posts: 1923
I like...
posted
May 28, 2004 10:52:00
0
I guess the dot in the CP is wrong.
If you include your jar, it's in the classpath, so why include it from itself?
http://home.arcor.de/hirnstrom/bewerbung
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Error Adding a manifest to a jar
Similar Threads
error in running server- problem with jar file
Jar file problem
how to take the jxam exam
How to create executable jar file?
Classpath - help!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter