Skip to main content



      Home
Home » Newcomers » Newcomers » Strange swing thing in eclipse
Strange swing thing in eclipse [message #48204] Wed, 06 April 2005 13:33 Go to next message
Eclipse UserFriend
Originally posted by: nobody.tellus.orb

Hi,
I'm pretty new to how java works behind the scenes, so I
wonder one thing regarding swing.

Everywhere they say GCJ does not support swing, only SWT
for the time being. Ok, fine. Now I have put together a
java swing app in eclipse and it compiles and works fine.
Why?

Somewhere in eclipse swing must exist, either as a wrapper
around SWT or as a binary. How come I can't make a binary
out of my app with GCJ and have it run?

Where can I get hold of eclipse's wrapper or binary for
swing?


Thanks,
Daniel
Re: Strange swing thing in eclipse [message #48234 is a reply to message #48204] Wed, 06 April 2005 15:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: myersj.gmail.com

Daniel,

Eclipse does not include Swing, or any other classes from the Java class
library. It uses your Java runtime's class library to compile against.
If you're able to compile against the Swing classes, they must be
included in your runtime. In the Java perspective, go to Navigate->Open
Type. Enter a Swing class (i.e. JButton) into the first text field. In
the Qualifier list at the bottom of the dialog, it'll tell you the
source jar where it's finding the class.

Hope this helps,
- Jeff

DeMarcus wrote:
>
> Hi,
> I'm pretty new to how java works behind the scenes, so I
> wonder one thing regarding swing.
>
> Everywhere they say GCJ does not support swing, only SWT
> for the time being. Ok, fine. Now I have put together a
> java swing app in eclipse and it compiles and works fine.
> Why?
>
> Somewhere in eclipse swing must exist, either as a wrapper
> around SWT or as a binary. How come I can't make a binary
> out of my app with GCJ and have it run?
>
> Where can I get hold of eclipse's wrapper or binary for
> swing?
>
>
> Thanks,
> Daniel
>
Re: Strange swing thing in eclipse [message #48382 is a reply to message #48234] Wed, 06 April 2005 17:26 Go to previous message
Eclipse UserFriend
Originally posted by: nobody.tellus.orb

Ok, cool.
Thanks.



Jeff Myers wrote:

> Daniel,
>
> Eclipse does not include Swing, or any other classes from the Java class
> library. It uses your Java runtime's class library to compile against.
> If you're able to compile against the Swing classes, they must be
> included in your runtime. In the Java perspective, go to Navigate->Open
> Type. Enter a Swing class (i.e. JButton) into the first text field. In
> the Qualifier list at the bottom of the dialog, it'll tell you the
> source jar where it's finding the class.
>
> Hope this helps,
> - Jeff
>
> DeMarcus wrote:
>
>>
>> Hi,
>> I'm pretty new to how java works behind the scenes, so I
>> wonder one thing regarding swing.
>>
>> Everywhere they say GCJ does not support swing, only SWT
>> for the time being. Ok, fine. Now I have put together a
>> java swing app in eclipse and it compiles and works fine.
>> Why?
>>
>> Somewhere in eclipse swing must exist, either as a wrapper
>> around SWT or as a binary. How come I can't make a binary
>> out of my app with GCJ and have it run?
>>
>> Where can I get hold of eclipse's wrapper or binary for
>> swing?
>>
>>
>> Thanks,
>> Daniel
>>
Previous Topic:Eclipse won't open on Fedora Core 3
Next Topic:where can i get the source code for eclipse 3.0?
Goto Forum:
  


Current Time: Tue Apr 29 05:06:09 EDT 2025

Powered by FUDForum. Page generated in 0.03875 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top