Can't access swt in eclipse [message #2173] |
Fri, 14 January 2005 09:55 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
Hi all
I'm using eclipse 3.0.1, SWT3.1M3 on an AMD64. I've used both SWT and
Eclipse on AMD64 successfully before. Eclipse tells me "The import
org.eclipse cannot be resolved". Eclipse is runnable and
RXTX.comm.jar(below) gives no problems.
Any ideas what I'm doing wrong? Below I have included any other relevant
details...
Thanks
Tshwala
$JAVAHOME/lib/ext contains
-rwxr-x--x 1 root development 58504 Jan 13 13:09 RXTXcomm.jar
-rwxr-x--x 1 root development 8900 Dec 1 11:03 dnsns.jar
-rwxr-x--x 1 root development 53261 Dec 1 11:03 ldapsec.jar
-rwxr-x--x 1 root development 769346 Dec 1 11:03 localedata.jar
-rwxr-x--x 1 root development 140 Jan 13 16:19 rxtxsrc.zip
-rwxr-x--x 1 root development 111430 Dec 1 11:03 sunjce_provider.jar
-rwxr-x--x 1 root development 2407046 Jan 13 17:02 swt-3.1M3-linux-gtk-amd64.
zip
-rwxr-x--x 1 root development 81694 Nov 5 16:37 swt-mozilla.jar
-rwxr-x--x 1 root development 99307 Nov 5 16:37 swt-mozillasrc.zip
-rwxr-x--x 1 root development 55617 Nov 5 16:37 swt-pi.jar
-rwxr-x--x 1 root development 157139 Nov 5 16:37 swt-pisrc.zip
-rwxr-x--x 1 root development 970528 Nov 5 16:37 swt.jar
-rwxr-x--x 1 root development 878479 Nov 5 16:37 swtsrc.zip
and
$JAVAHOME/jre/lib/amd64 contains
....
-rwxr-xr-x 1 wayne development 39124 Nov 5 16:37 libswt-atk-gtk-3111.so
-rwxr-xr-x 1 wayne development 9131 Nov 5 16:37 libswt-awt-gtk-3111.so
-rwxr-xr-x 1 wayne development 18104 Nov 5 16:37 libswt-gnome-gtk-3111.so
-rwxr-xr-x 1 wayne development 331537 Nov 5 16:37 libswt-gtk-3111.so
-rwxr-xr-x 1 wayne development 33853 Nov 5 16:37 libswt-kde-gtk-3111.so
-rwxr-xr-x 1 wayne development 473275 Nov 5 16:37 libswt-pi-gtk-3111.so
....
[wayne@Wuler] env |grep JAVA
JAVAHOME=/opt/blackdown-jdk-1.4.2.01/jre
JAVA_HOME=/opt/blackdown-jdk-1.4.2.01
JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
|
|
|
Re: Can't access swt in eclipse [message #2203 is a reply to message #2173] |
Fri, 14 January 2005 12:01 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
Hi, I'm a bit concerned that since I'm the only one thats written in this
list, is anyone out there? I'm not impatient but I'd like to know that
there is at least some readership for this list.
On Fri, 14 Jan 2005 11:55:58 +0200, Tshwala wrote:
> Hi all
>
> I'm using eclipse 3.0.1, SWT3.1M3 on an AMD64. I've used both SWT and
> Eclipse on AMD64 successfully before. Eclipse tells me "The import
> org.eclipse cannot be resolved". Eclipse is runnable and
> RXTX.comm.jar(below) gives no problems.
>
> Any ideas what I'm doing wrong? Below I have included any other relevant
> details...
>
> Thanks
> Tshwala
>
>
>
> $JAVAHOME/lib/ext contains
>
> -rwxr-x--x 1 root development 58504 Jan 13 13:09 RXTXcomm.jar
> -rwxr-x--x 1 root development 8900 Dec 1 11:03 dnsns.jar
> -rwxr-x--x 1 root development 53261 Dec 1 11:03 ldapsec.jar
> -rwxr-x--x 1 root development 769346 Dec 1 11:03 localedata.jar
> -rwxr-x--x 1 root development 140 Jan 13 16:19 rxtxsrc.zip
> -rwxr-x--x 1 root development 111430 Dec 1 11:03 sunjce_provider.jar
> -rwxr-x--x 1 root development 2407046 Jan 13 17:02 swt-3.1M3-linux-gtk-amd64.
> zip
> -rwxr-x--x 1 root development 81694 Nov 5 16:37 swt-mozilla.jar
> -rwxr-x--x 1 root development 99307 Nov 5 16:37 swt-mozillasrc.zip
> -rwxr-x--x 1 root development 55617 Nov 5 16:37 swt-pi.jar
> -rwxr-x--x 1 root development 157139 Nov 5 16:37 swt-pisrc.zip
> -rwxr-x--x 1 root development 970528 Nov 5 16:37 swt.jar
> -rwxr-x--x 1 root development 878479 Nov 5 16:37 swtsrc.zip
>
> and
> $JAVAHOME/jre/lib/amd64 contains
>
> ...
> -rwxr-xr-x 1 wayne development 39124 Nov 5 16:37 libswt-atk-gtk-3111.so
> -rwxr-xr-x 1 wayne development 9131 Nov 5 16:37 libswt-awt-gtk-3111.so
> -rwxr-xr-x 1 wayne development 18104 Nov 5 16:37 libswt-gnome-gtk-3111.so
> -rwxr-xr-x 1 wayne development 331537 Nov 5 16:37 libswt-gtk-3111.so
> -rwxr-xr-x 1 wayne development 33853 Nov 5 16:37 libswt-kde-gtk-3111.so
> -rwxr-xr-x 1 wayne development 473275 Nov 5 16:37 libswt-pi-gtk-3111.so
> ...
>
> [wayne@Wuler] env |grep JAVA
> JAVAHOME=/opt/blackdown-jdk-1.4.2.01/jre
> JAVA_HOME=/opt/blackdown-jdk-1.4.2.01
> JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
|
|
|
Re: Can't access swt in eclipse [message #2233 is a reply to message #2203] |
Fri, 14 January 2005 12:33 |
Eclipse User |
|
|
|
Originally posted by: davegabol.eircom.net
I think it's a new list. The Americans (largely) aren't online until around
the next hour or two. You may get more as more people discover the list.
Dave.
"Tshwala" <waynetg@telkomsa.net> wrote in message
news:pan.2005.01.14.12.00.59.175312@telkomsa.net...
> Hi, I'm a bit concerned that since I'm the only one thats written in this
> list, is anyone out there? I'm not impatient but I'd like to know that
> there is at least some readership for this list.
>
> On Fri, 14 Jan 2005 11:55:58 +0200, Tshwala wrote:
>
> > Hi all
> >
> > I'm using eclipse 3.0.1, SWT3.1M3 on an AMD64. I've used both SWT and
> > Eclipse on AMD64 successfully before. Eclipse tells me "The import
> > org.eclipse cannot be resolved". Eclipse is runnable and
> > RXTX.comm.jar(below) gives no problems.
> >
> > Any ideas what I'm doing wrong? Below I have included any other relevant
> > details...
> >
> > Thanks
> > Tshwala
> >
> >
> >
> > $JAVAHOME/lib/ext contains
> >
> > -rwxr-x--x 1 root development 58504 Jan 13 13:09 RXTXcomm.jar
> > -rwxr-x--x 1 root development 8900 Dec 1 11:03 dnsns.jar
> > -rwxr-x--x 1 root development 53261 Dec 1 11:03 ldapsec.jar
> > -rwxr-x--x 1 root development 769346 Dec 1 11:03 localedata.jar
> > -rwxr-x--x 1 root development 140 Jan 13 16:19 rxtxsrc.zip
> > -rwxr-x--x 1 root development 111430 Dec 1 11:03 sunjce_provider.jar
> > -rwxr-x--x 1 root development 2407046 Jan 13 17:02
swt-3.1M3-linux-gtk-amd64.
> > zip
> > -rwxr-x--x 1 root development 81694 Nov 5 16:37 swt-mozilla.jar
> > -rwxr-x--x 1 root development 99307 Nov 5 16:37 swt-mozillasrc.zip
> > -rwxr-x--x 1 root development 55617 Nov 5 16:37 swt-pi.jar
> > -rwxr-x--x 1 root development 157139 Nov 5 16:37 swt-pisrc.zip
> > -rwxr-x--x 1 root development 970528 Nov 5 16:37 swt.jar
> > -rwxr-x--x 1 root development 878479 Nov 5 16:37 swtsrc.zip
> >
> > and
> > $JAVAHOME/jre/lib/amd64 contains
> >
> > ...
> > -rwxr-xr-x 1 wayne development 39124 Nov 5 16:37
libswt-atk-gtk-3111.so
> > -rwxr-xr-x 1 wayne development 9131 Nov 5 16:37
libswt-awt-gtk-3111.so
> > -rwxr-xr-x 1 wayne development 18104 Nov 5 16:37
libswt-gnome-gtk-3111.so
> > -rwxr-xr-x 1 wayne development 331537 Nov 5 16:37 libswt-gtk-3111.so
> > -rwxr-xr-x 1 wayne development 33853 Nov 5 16:37
libswt-kde-gtk-3111.so
> > -rwxr-xr-x 1 wayne development 473275 Nov 5 16:37
libswt-pi-gtk-3111.so
> > ...
> >
> > [wayne@Wuler] env |grep JAVA
> > JAVAHOME=/opt/blackdown-jdk-1.4.2.01/jre
> > JAVA_HOME=/opt/blackdown-jdk-1.4.2.01
> > JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
>
|
|
|
Re: Can't access swt in eclipse [message #2262 is a reply to message #2233] |
Fri, 14 January 2005 12:42 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
On Fri, 14 Jan 2005 12:33:21 +0000, Dave Gabol wrote:
>
> I think it's a new list. The Americans (largely) aren't online until around
> the next hour or two. You may get more as more people discover the list.
>
> Dave.
Thanks, just checking :)
>
> "Tshwala" <waynetg@telkomsa.net> wrote in message
> news:pan.2005.01.14.12.00.59.175312@telkomsa.net...
>> Hi, I'm a bit concerned that since I'm the only one thats written in this
>> list, is anyone out there? I'm not impatient but I'd like to know that
>> there is at least some readership for this list.
>>
>> On Fri, 14 Jan 2005 11:55:58 +0200, Tshwala wrote:
>>
>> > Hi all
>> >
>> > I'm using eclipse 3.0.1, SWT3.1M3 on an AMD64. I've used both SWT and
>> > Eclipse on AMD64 successfully before. Eclipse tells me "The import
>> > org.eclipse cannot be resolved". Eclipse is runnable and
>> > RXTX.comm.jar(below) gives no problems.
>> >
>> > Any ideas what I'm doing wrong? Below I have included any other relevant
>> > details...
>> >
>> > Thanks
>> > Tshwala
>> >
>> >
>> >
>> > $JAVAHOME/lib/ext contains
>> >
>> > -rwxr-x--x 1 root development 58504 Jan 13 13:09 RXTXcomm.jar
>> > -rwxr-x--x 1 root development 8900 Dec 1 11:03 dnsns.jar
>> > -rwxr-x--x 1 root development 53261 Dec 1 11:03 ldapsec.jar
>> > -rwxr-x--x 1 root development 769346 Dec 1 11:03 localedata.jar
>> > -rwxr-x--x 1 root development 140 Jan 13 16:19 rxtxsrc.zip
>> > -rwxr-x--x 1 root development 111430 Dec 1 11:03 sunjce_provider.jar
>> > -rwxr-x--x 1 root development 2407046 Jan 13 17:02
> swt-3.1M3-linux-gtk-amd64.
>> > zip
>> > -rwxr-x--x 1 root development 81694 Nov 5 16:37 swt-mozilla.jar
>> > -rwxr-x--x 1 root development 99307 Nov 5 16:37 swt-mozillasrc.zip
>> > -rwxr-x--x 1 root development 55617 Nov 5 16:37 swt-pi.jar
>> > -rwxr-x--x 1 root development 157139 Nov 5 16:37 swt-pisrc.zip
>> > -rwxr-x--x 1 root development 970528 Nov 5 16:37 swt.jar
>> > -rwxr-x--x 1 root development 878479 Nov 5 16:37 swtsrc.zip
>> >
>> > and
>> > $JAVAHOME/jre/lib/amd64 contains
>> >
>> > ...
>> > -rwxr-xr-x 1 wayne development 39124 Nov 5 16:37
> libswt-atk-gtk-3111.so
>> > -rwxr-xr-x 1 wayne development 9131 Nov 5 16:37
> libswt-awt-gtk-3111.so
>> > -rwxr-xr-x 1 wayne development 18104 Nov 5 16:37
> libswt-gnome-gtk-3111.so
>> > -rwxr-xr-x 1 wayne development 331537 Nov 5 16:37 libswt-gtk-3111.so
>> > -rwxr-xr-x 1 wayne development 33853 Nov 5 16:37
> libswt-kde-gtk-3111.so
>> > -rwxr-xr-x 1 wayne development 473275 Nov 5 16:37
> libswt-pi-gtk-3111.so
>> > ...
>> >
>> > [wayne@Wuler] env |grep JAVA
>> > JAVAHOME=/opt/blackdown-jdk-1.4.2.01/jre
>> > JAVA_HOME=/opt/blackdown-jdk-1.4.2.01
>> > JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
>>
|
|
|
|
Re: Can't access swt in eclipse [message #2322 is a reply to message #2292] |
Fri, 14 January 2005 13:50 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
On Fri, 14 Jan 2005 08:18:26 -0500, WebMaster wrote:
> I created the group less than 24 hours ago... Give it time :)
Thanks dude, I just wanted to make sure that my post would get seen.
>
> If you think your question is specific to SWT, it might be better to
> post it in eclipse.platform.swt.
I'll give it a chance here first, I figure its an installation issue.
|
|
|
Re: Can't access swt in eclipse [message #4523 is a reply to message #2173] |
Tue, 18 January 2005 11:37 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
Just to get back on topic and add to my previous mail, I have just
compiled and run my program using the command line and it works perfectly.
However in Eclipse the same errors still occur.
The import org.eclipse cannot be resolved
So it seems to be an eclipse error, configuration or compatibility...
Any ideas?
|
|
|
Re: Can't access swt in eclipse [message #4797 is a reply to message #2173] |
Tue, 18 January 2005 14:56 |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
How are you trying to use SWT in eclipse?
Are you writing a plugin or a standalone project?
Did you import SWT, or are you writing a client that uses SWT?
FAQ http://www.eclipsefaq.org/chris/faq/html/faq104.html explains what the
classpath is for a plugin.
FAQ 105 explains how to add a library jar to a plugin's classpath.
Similar reasoning is valid for a regular project.
--
Chris Laffra, http://eclipsefaq.org
"Tshwala" <waynetg@telkomsa.net> wrote in message
news:pan.2005.01.14.09.55.50.460383@telkomsa.net...
> Hi all
>
> I'm using eclipse 3.0.1, SWT3.1M3 on an AMD64. I've used both SWT and
> Eclipse on AMD64 successfully before. Eclipse tells me "The import
> org.eclipse cannot be resolved". Eclipse is runnable and
> RXTX.comm.jar(below) gives no problems.
>
> Any ideas what I'm doing wrong? Below I have included any other relevant
> details...
>
> Thanks
> Tshwala
>
>
>
> $JAVAHOME/lib/ext contains
>
> -rwxr-x--x 1 root development 58504 Jan 13 13:09 RXTXcomm.jar
> -rwxr-x--x 1 root development 8900 Dec 1 11:03 dnsns.jar
> -rwxr-x--x 1 root development 53261 Dec 1 11:03 ldapsec.jar
> -rwxr-x--x 1 root development 769346 Dec 1 11:03 localedata.jar
> -rwxr-x--x 1 root development 140 Jan 13 16:19 rxtxsrc.zip
> -rwxr-x--x 1 root development 111430 Dec 1 11:03 sunjce_provider.jar
> -rwxr-x--x 1 root development 2407046 Jan 13 17:02
swt-3.1M3-linux-gtk-amd64.
> zip
> -rwxr-x--x 1 root development 81694 Nov 5 16:37 swt-mozilla.jar
> -rwxr-x--x 1 root development 99307 Nov 5 16:37 swt-mozillasrc.zip
> -rwxr-x--x 1 root development 55617 Nov 5 16:37 swt-pi.jar
> -rwxr-x--x 1 root development 157139 Nov 5 16:37 swt-pisrc.zip
> -rwxr-x--x 1 root development 970528 Nov 5 16:37 swt.jar
> -rwxr-x--x 1 root development 878479 Nov 5 16:37 swtsrc.zip
>
> and
> $JAVAHOME/jre/lib/amd64 contains
>
> ...
> -rwxr-xr-x 1 wayne development 39124 Nov 5 16:37
libswt-atk-gtk-3111.so
> -rwxr-xr-x 1 wayne development 9131 Nov 5 16:37
libswt-awt-gtk-3111.so
> -rwxr-xr-x 1 wayne development 18104 Nov 5 16:37
libswt-gnome-gtk-3111.so
> -rwxr-xr-x 1 wayne development 331537 Nov 5 16:37 libswt-gtk-3111.so
> -rwxr-xr-x 1 wayne development 33853 Nov 5 16:37
libswt-kde-gtk-3111.so
> -rwxr-xr-x 1 wayne development 473275 Nov 5 16:37 libswt-pi-gtk-3111.so
> ...
>
> [wayne@Wuler] env |grep JAVA
> JAVAHOME=/opt/blackdown-jdk-1.4.2.01/jre
> JAVA_HOME=/opt/blackdown-jdk-1.4.2.01
> JAVAC=/opt/blackdown-jdk-1.4.2.01/bin/javac
>
|
|
|
Re: Can't access swt in eclipse [message #6418 is a reply to message #4797] |
Tue, 18 January 2005 21:13 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
Hi
On Tue, 18 Jan 2005 09:56:54 -0500, Chris Laffra wrote:
> How are you trying to use SWT in eclipse?
> Are you writing a plugin or a standalone project?
I'm writing a stand alone project.
> Did you import SWT, or are you writing a client that uses SWT?
My client imports SWT. Successfully too, when compiled in the console.
I have unloaded all the jars into $JAVAHOME/lib/ext and all the
libswt* into $JAVAHOME/lib/amd64 and to my understanding I should not need
to add an extra classpaths to have access to SWT.
|
|
|
Re: Can't access swt in eclipse [message #6590 is a reply to message #6418] |
Wed, 19 January 2005 02:43 |
Eclipse User |
|
|
|
Originally posted by: Chris_Laffra.ca.ibm.com
Right mouse click on the project > Properties, and add the swt jar to the
libraries for the project.
Hope that works,
--
Chris Laffra, http://eclipsefaq.org
"Tshwala" <waynetg@telkomsa.net> wrote in message
news:pan.2005.01.18.21.13.35.21965@telkomsa.net...
> Hi
> On Tue, 18 Jan 2005 09:56:54 -0500, Chris Laffra wrote:
>
> > How are you trying to use SWT in eclipse?
> > Are you writing a plugin or a standalone project?
>
> I'm writing a stand alone project.
>
> > Did you import SWT, or are you writing a client that uses SWT?
>
> My client imports SWT. Successfully too, when compiled in the console.
> I have unloaded all the jars into $JAVAHOME/lib/ext and all the
> libswt* into $JAVAHOME/lib/amd64 and to my understanding I should not need
> to add an extra classpaths to have access to SWT.
>
>
>
|
|
|
Re: Can't access swt in eclipse [message #6607 is a reply to message #6590] |
Wed, 19 January 2005 05:53 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
On Tue, 18 Jan 2005 21:43:07 -0500, Chris Laffra wrote:
> Right mouse click on the project > Properties, and add the swt jar to the
> libraries for the project.
>
> Hope that works,
I went to add libraries and tried to add swt, nothing changed. So I added
and external jar and that worked :0 I don't understand though why it
wouldn't just get picked up as part of the jre.
Cheers
Wayne
|
|
|
Re: Can't access swt in eclipse [message #6625 is a reply to message #6607] |
Wed, 19 January 2005 05:56 |
Eclipse User |
|
|
|
Originally posted by: waynetg.telkomsa.net
> I went to add libraries and tried to add swt, nothing changed.
Oh, something did happen. There was console output.
Unhandled event loop exception
Reason:
java.lang.NullPointerException
|
|
|
Powered by
FUDForum. Page generated in 0.09757 seconds