AppleEvents in a Java tool
AppleEvents in a Java tool
- Subject: AppleEvents in a Java tool
- From: David Alter <email@hidden>
- Date: Wed, 4 Feb 2004 14:39:29 -0800
I have a need for a background java tool to support AppleEvents. I was
able to make a simple test and compile it at the at the command line. I
can run the compiled .class file if I give it a classpath when I run
it. Example
% java -classpath /System/Library/Java:. MyAETest
Now I took the same test and put it in a ProjectBuilder project. I used
the Java Tool template to create the project. In the target settings I
changed the following
1. PURE_JAVA set this to NO
2. Added a class path of /System/Library/Java
I can not get the jar file to successfully run. As soon as it hits the
first cocoa command it gets ...
java.lang.NoClassDefFoundError:
com/apple/cocoa/application/NSApplication
at MyAETest.main(MyAETest.java:22)
Does any one have any ideas?
thanks
-dave
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.