Mailing Lists: Apple Mailing Lists

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

Eclipse - Cocoa/Java Hint



Hi,

I wanted to use Eclipse to write Cocoa-Java programs, and discovered its really quite simple to develop Cocoa-Java programs in Eclipse.

In /System/Library/Java/com/apple/.... directory tree are all the Java "stubs" for Cocoa-Java bindings.

I simply did a jar cvf Cocoa.jar /System/Library/Java/com
and added Cocoa.jar as an external JAR into Eclipse (3.0M9 but I doubt it matters).

I could then do refactoring, organizing imports, code completion, all the other perks of Eclipse.

The eclipse "build" will find all the Java errors, but as of now I still need to make a XCode project to create an actual application.
I vaguely remember some people were working on a Ant task to create Java apps, not sure about Cocoa-Java apps though.


Anyway, thought this may be of some use to people even as is, using Eclipse as an smart editor and building with XCode.

Anybody know of information regarding Cocoa-Java Ant build tasks (besides calling an xcode project build from command line)?


Steve Franks
adenzo software - http://www.adenzo.com/
_______________________________________________
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.




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.