I want to call NSAppleScript from a Java+Swing application.
I get a NoClassDefFoundError err.
A simple command line program compiled with javac works fine, as does a
Cocoa+Java application.
Here is part of the stack crawl:
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NoClassDefFoundError:
com/apple/cocoa/foundation/NSAppleScript
java.lang.NoClassDefFoundError: com/apple/cocoa/foundation/NSAppleScript
at iTunesScript.doScript(iTunesScript.java:42)
at iTunesScript.PlayTuneByID(iTunesScript.java:35)
at
MusicByAdjectivesDemo.CheckPlaySelected(MusicByAdjectivesDemo.java:280)
at MusicByAdjectivesDemo.valueChanged(MusicByAdjectivesDemo.java:73)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
Thanks,
Andy
_______________________________________________
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