thanks for the answer, Craig
CodeWarrior generates manifest file for me
actually I think I know what is the problem
it looks like that sound system calls like
synthesizer = MidiSystem.getSynthesizer();
instruments = synthesizer.getAvailableInstruments();
midiChannels = synthesizer.getChannels();
should be called from the event thread
(java.awt.EventQueue.invokeLater or
javax.swing.SwingUtilities.invokeLater)
thanks
before I called them from the static initializer so it was a problem
On Dec 28, 2004, at 2:43 AM, Craig Mattocks wrote:
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
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