LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2005, 12:38 PM   #1
max2004
Member
 
Registered: Feb 2005
Posts: 57

Rep: Reputation: 15
Eclipse startup


Hey everyone!

I just "installed" (= unzipped) Eclipse (eclipse-SDK-3.1M5a-linux-gtk-x86_64). When I tried to start it a messagebox opens saying An error has occurred. See the log file "/home/max/programme/eclipse/configuration/1109871086493.log".
In this file it says:
Quote:
!SESSION 2005-03-03 17:27:56.614 -----------------------------------------------
eclipse.buildId=I20050219-1500
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 2005-03-03 17:27:56.615
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: /home/max/programme/eclipse/plugins/org.eclipse.swt.gtk64_3.1.0/os/linux/x86_64/libswt-pi-gtk-3123.so: /home/max/programme/eclipse/plugins/org.eclipse.swt.gtk64_3.1.0/os/linux/x86_64/libswt-pi-gtk-3123.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:123)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:121)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:307)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:156)
at org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:127)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:78)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
The file (libswt-pi-gtk-3123.so) that can't be opened does exist and rights are -rwxr-xr-x .

How can I get Eclipse to work?

Thanks, max.

---
My System:
Fedora Core 3, 64 bit version
Athlon 64
 
Old 03-03-2005, 02:28 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
run ldconfig in the directory it's complaining about. Is $JAVA_HOMEset correctly?

nz
 
Old 03-05-2005, 04:52 AM   #3
max2004
Member
 
Registered: Feb 2005
Posts: 57

Original Poster
Rep: Reputation: 15
Hey,

I ran ldconfig (as a root) in the
Code:
/home/max/programme/eclipse/plugins/org.eclipse.swt.gtk64_3.1.0/os/linux/x86_64/
directory, but the error stays the same
When I tried echo $JAVA_HOME , nothing returned. So I tried to set this variable with set JAVA_HOME = /usr/bin/java , but afterwards echo still didn't return anything.

Max
 
Old 03-05-2005, 09:46 AM   #4
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
It should be something like 'set JAVA_HOME=/usr/lib/j2re-1.x.x(or wherever your j2 runtime or sdk is installed)' . Then run 'export JAVA_HOME'. When you get it set correctly you will need to edit your personal or systemwide bash profile to get the above environment variable to stick across relogins. There is a test for a correct install using 'javac' from the command line. Search /usr/share/doc/j* it's in a README or INSTALL file.

nz
 
Old 03-05-2005, 10:46 AM   #5
wipe
Member
 
Registered: Jun 2004
Location: High Green
Distribution: Fedora Core 4
Posts: 180

Rep: Reputation: 30
Quote:
Originally posted by max2004
The file (libswt-pi-gtk-3123.so) that can't be opened does exist and rights are -rwxr-xr-x .
A side note: the permissions of the whole directory tree have to be set correctly (read & execute), not just the permissions of the file to be read. I believe Java is set up correctly since the log file states the version (1.4.2_06).

-- Simon

Last edited by wipe; 03-05-2005 at 10:49 AM.
 
Old 03-06-2005, 06:24 AM   #6
max2004
Member
 
Registered: Feb 2005
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
A side note: the permissions of the whole directory tree have to be set correctly (read & execute), not just the permissions of the file to be read. I believe Java is set up correctly since the log file states the version (1.4.2_06).
Thanks for that hint, I checked the directory permissions and they are all read & execute. And you're right: Java is set up correctly, since I can compile and run a Java "Hello World" program from the commandline.

Quote:
It should be something like 'set JAVA_HOME=/usr/lib/j2re-1.x.x(or wherever your j2 runtime or sdk is installed)' .
Mhh.. thats maybe a little embarrassing, but I'm having difficulties figuring out to what exactly I should set the JAVA_HOME?
According to YUM the following is installed: jre.x86_64, jdk.i586 and j2re.i586. As you told me I read /usr/share/doc/j2re-1.4.2/README, but it's all about redistributing the Java RE.
The whereis java command returned: java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz

Sorry to bother you again...
max
 
Old 03-15-2005, 02:42 PM   #7
elayton
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
I had the same error and it was resolved when I installed the 64-bit version of the JDK.
 
Old 03-15-2005, 06:06 PM   #8
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Congratulations. If you just need a java development environment, remember you can get the very good (IMHO) netbeans ide with the latest java development kit from Sun.

nz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i startup eclipse (as root), but it goes down.. it driver me crazy , help me please!! dreams Linux - Software 2 10-20-2005 04:22 AM
Eclipse startup problems Hockeyfan Linux - Software 0 07-15-2005 10:09 PM
Eclipse startup problem Jan_W Linux - Newbie 7 04-13-2005 01:09 PM
eclipse startup issue ferreter Slackware 0 04-28-2004 09:10 PM
Eclipse Startup Problems dabump Linux - Software 3 11-13-2003 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration