• 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
AppleEvents in a Java tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: [List Mom] Re: Cocoa/Windows parallel dvlpmt
  • Next by Date: Unwanted retain
  • Previous by thread: Re: descender for glyph
  • Next by thread: Unwanted retain
  • Index(es):
    • Date
    • Thread