Mailing Lists: Apple Mailing Lists

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

Problem linking with NSAppleScript from Java+Swing



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

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.