Mailing Lists: Apple Mailing Lists

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

java -jar versus java -cp



Hi,
I have some java application that uses sound API

java -Xms64M -jar soundcapture.jar
launches application well
and it behaves well
2click on the jar file:
launches application well
and it behaves well

BUT THE FOLLOWING COMMAND LINE

java -Xms64M -cp soundcapture.jar org.concord.multimedia.sound.capture.test.JavaSoundWithDataProducer
launches application well
but it behaves wrong!! (it doesn't load right instrument. I can make it work but I'd like to know what's going on there)
I tried the same line without -X option and it still doesn't work as I expected


if I use class folder instead of jar file everything fine:
java -Xms64M -cp classes org.concord.multimedia.sound.capture.test.JavaSoundWithDataProducer


where classes is a folder where I put all classes from jar file

last time I tested that application (about 3 months ago) everything was fine

last time I updated Java was Java142Update2.pkg (09/23/04)
my application was created after that so it worked fine in 10.3.6

so maybe it's 1.3.7 problem

thanks for any suggestions


Notes:

on Jaguar 10.2.8 (Java 1.4.1) everything is fine

on windows
Java 1.5 everything is fine:

Java 1.4.2_05
java -Xms64M -cp
and
java -Xms64M -jar
launches well but don't behave well

java -cp
java -jar
launch and behave well

thanks







Dmitry Markman

_______________________________________________
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.