Skip to main content



      Home
Home » Newcomers » Newcomers » Problems starting java example
Problems starting java example [message #18113] Thu, 27 January 2005 04:54 Go to next message
Eclipse UserFriend
Originally posted by: crapulence.gmx.de

Hello,
i'm new to Eclipse so i installed the newest version and J2EE 1.4 on a
win2000 mashine. After a few attempts eclipsse started up and i bagan to
work with the totorials. After that i installed the examples. I tried to run
the "addressbook"-example, including the configuration described in the help
example guide.
I got the following error executing the example:

java.lang.UnsatisfiedLinkError: no swt-win32-3063 in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 0)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.graphics.Device.init(Device.java:564)
at org.eclipse.swt.widgets.Display.init(Display.java:1780)
at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
at org.eclipse.swt.widgets.Display.<init>(Display.java:355)
at org.eclipse.swt.widgets.Display.<init>(Display.java:351)
at
org.eclipse.swt.examples.addressbook.AddressBook.main(Addres sBook.java:54)
Exception in thread "main"

I configured the path as shown in the guide:
1.. Open the Java perspective.
2.. In the Packages view, select the main class that you want to run. For
example, the main class for the Address Book example is
org.eclipse.swt.examples.addressbook.AddressBook.
3.. Select Run > Run... from the main menu.
4.. In the Launch Configurations dialog that appears, select Java
Application and click on the New button.
5.. Fill in the Name, Project and Main class fields according to the
example that you wish to run.
6.. Select the Arguments tab. In the VM Arguments area specify the
location of the SWT library depending on your target platform as follows:
a..
win32: -Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32 _3.0.0\os
\win32\x86
What have i done wrong?
Thanks for your help!

Kindly regards,

a.k.
Re: Problems starting java example [message #18144 is a reply to message #18113] Thu, 27 January 2005 06:25 Go to previous message
Eclipse UserFriend
Originally posted by: crapulence.gmx.de

Hi,

I found the error:

I put the path into the wrong dialog box. Fixed it by inserting

" -Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32 _3.0.0\os\win32
\x86 "

into "VM Arguments"

thanks

"a.korsus" <crapulence@gmx.de> schrieb im Newsbeitrag
news:ctadnt$7kb$1@www.eclipse.org...
> Hello,
> i'm new to Eclipse so i installed the newest version and J2EE 1.4 on a
> win2000 mashine. After a few attempts eclipsse started up and i bagan to
> work with the totorials. After that i installed the examples. I tried to
run
> the "addressbook"-example, including the configuration described in the
help
> example guide.
> I got the following error executing the example:
>
> java.lang.UnsatisfiedLinkError: no swt-win32-3063 in java.library.path
>
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 0)
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
> at org.eclipse.swt.graphics.Device.init(Device.java:564)
> at org.eclipse.swt.widgets.Display.init(Display.java:1780)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:355)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:351)
> at
> org.eclipse.swt.examples.addressbook.AddressBook.main(Addres sBook.java:54)
> Exception in thread "main"
>
> I configured the path as shown in the guide:
> 1.. Open the Java perspective.
> 2.. In the Packages view, select the main class that you want to run.
For
> example, the main class for the Address Book example is
> org.eclipse.swt.examples.addressbook.AddressBook.
> 3.. Select Run > Run... from the main menu.
> 4.. In the Launch Configurations dialog that appears, select Java
> Application and click on the New button.
> 5.. Fill in the Name, Project and Main class fields according to the
> example that you wish to run.
> 6.. Select the Arguments tab. In the VM Arguments area specify the
> location of the SWT library depending on your target platform as follows:
> a..
>
win32: -Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32 _3.0.0\os
> \win32\x86
> What have i done wrong?
> Thanks for your help!
>
> Kindly regards,
>
> a.k.
>
>
Previous Topic:How to use overview ruler in a view but not editor
Next Topic:Execute command line
Goto Forum:
  


Current Time: Sat May 10 01:11:15 EDT 2025

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

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

Back to the top