Re: Cocoa speech in java
Re: Cocoa speech in java
- Subject: Re: Cocoa speech in java
- From: Moray Taylor <email@hidden>
- Date: Tue, 9 Nov 2004 21:34:42 +0000
Make sure you run it with the classpath set correctly, like so...
java -classpath /System/Library/Java:. Speech
Cheers
Moray
I am new to cocoa and java on the mac (10.3.1) and am
trying to incorporate cocoa speech in a java
application, I am building the applicationn in the
XCode environment. I am using the following code...
import javax.swing.*;
import com.apple.cocoa.application.*;
import com.apple.cocoa.foundation.*;
public class Speech extends JFrame {
NSSpeechSynthesizer synth;
public Speech() {
super("");
synth = new NSSpeechSynthesizer();
synth.startSpeakingString("hello world");
setSize(310, 150);
setVisible(true);
}
public static void main(String args[]) {
new Speech();
}
}
... I am getting the following run time error...
Uncaught exception in main method:
java.lang.NoClassDefFoundError:
com/apple/cocoa/application/NSSpeechSynthesizer...
Any help would be very much appreciated
=====
Naomi Feehan
69 Grace Dieu Heights
Logloss
Waterford
086 3974190
___________________________________________________________ALL-NEW
Yahoo! Messenger - all new features - even more fun!
http://uk.messenger.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden