Mailing Lists: Apple Mailing Lists

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

Re: Using eclipse on Jaguar - where is swing or awt?



Hi,

I recently wanted to switch to eclipse as my Java IDE but I can not build any swing or awt applications since those packages and probably some others too can't be found if I want to import them. I also noticed that those packages are not listed in the eclipse-Java-browser. BTW: I'm running MacOS 10.2.2

Am I missing something? Do I have to set additional classpaths?

Yes, on MacOS X the rt.jar has been already splitted into a classes.jar and a ui.jar (for AT & Swing). Eclipse already supports to have JDK with more than one archive, however, this is not (yet) enabled by default.

Here is what you have to do:

- for new projects you can change the default behaviour in Preferences/Java/New Project:
Set the "As JRE library use" popup to "JRE Container".
From then on every newly created Java project will include both archives.
(Starting with integration build I20021203 "JRE Container" will be the default on Mac OS X)

- for existing projects from the context menu select "Properties" and then select the
"Java Build Path" page and the "Libraries" tab. Remove the old JRE_LIB and press the
"Advanced..." button. Check the "Add Container" radio button and select "JRE System Library".

--andre
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >Using eclipse on Jaguar - where is swing or awt? (From: Walter Ritter <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.