• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Cocoa speech in java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa speech in java


  • Subject: Cocoa speech in java
  • From: Niomi Feehan <email@hidden>
  • Date: Tue, 9 Nov 2004 21:18:28 +0000 (GMT)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Cocoa speech in java
      • From: Moray Taylor <email@hidden>
  • Prev by Date: Re: New Spotlight Info
  • Next by Date: Cocoa speech in java
  • Previous by thread: Re: NSPopupButton with disabled items
  • Next by thread: Re: Cocoa speech in java
  • Index(es):
    • Date
    • Thread