Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java -jar versus java -cp



On Mon, 27 Dec 2004 13:49:43 -0500 that wildman Dmitry Markman <email@hidden> wrote:

BUT THE FOLLOWING COMMAND LINE

java -Xms64M -cp soundcapture.jar
org.concord.multimedia.sound.capture.test.JavaSoundWithDataProducer
launches application well
but it behaves wrong!!

Hi Dmitry,

How meticulous are you being in constructing the jar's META-INF/MANIFEST.MF file? Does it look something like this:

Manifest-Version: 1.0
Created-By: 1.4.2 (Sun Microsystems Inc.)
Implementation-Vendor: "Scientific Software Solutions, Inc."
Class-Path: . lib/jaxp.jar lib/crimson.jar lib/jdom.jar
Main-Class: biz.scisoft.drugcalc.DrugCalc

Name: biz/scisoft/drugcalc/DrugCalc.class
Name: biz/scisoft/drugcalc/drugs/anesthesia/Anesthesia.class
Name: biz/scisoft/drugcalc/images/metal.jpg

with blank lines after the "Main-Class:" entry and at the end of the file, and proper EOL characters throughout?

- Craig
--------------------------------------------------------------------
"We all agree that your theory is crazy, but is it crazy enough?"
- Niels Bohr (1885-1962), Nobel physicist, founder of quantum theory
--------------------------------------------------------------------

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.