Strange swing thing in eclipse [message #48204] |
Wed, 06 April 2005 13:33  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03875 seconds