LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-12-2014, 06:36 AM   #1
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Rep: Reputation: 7
Slackware 14.1 64 - Eclipse 4.3 64 refuses to start


Hello,

i have installed the eclipse package from slackbuilds.org - http://slackbuilds.org/repository/14...pment/eclipse/ . i have java installed. Other applications requiring java (such as openoffice/libreoffice) are working. Here are some details.
When i start Eclipse from KDE i get the error:
Code:
The Eclipse executable launcher was unable to locate its 
companion shared library.
When i start it from the command line, i get:
Code:
bash-4.2$ eclipse
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416: cannot open shared object file: No such file or directory
installed java version:
Code:
bash-4.2$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Eclipse executable:
Code:
bash-4.2$ which eclipse
/usr/bin/eclipse
eclipse.ini file is located under /opt/eclipse/eclipse.ini. Its contents is as follows:
Code:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m
$JAVA_HOME
Code:
bash-4.2$ echo $JAVA_HOME
/usr/lib64/java
I think it used to work before. Last thing i was struggling to get running was calibre.

Any idea what could have broken the Eclipse installation?

Thank you!

Last edited by glupa4e; 04-12-2014 at 07:35 AM. Reason: add JAVA_HOME path
 
Old 04-12-2014, 06:40 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
After you installed JDK did you reboot. you will need to so all the libraries get loaded correct.
if so wonder why that plugin is not there.

I figure you already did this right.
Quote:
Upgrading: if you find an error during Eclipse initialization, check
this two files:

/opt/eclipse/configuration/config.ini
/opt/eclipse/eclipse.ini

If you haven't done modifications in those files, overwrite them with
config.ini.new and eclipse.ini.new.

Last edited by Drakeo; 04-12-2014 at 06:53 AM.
 
Old 04-12-2014, 07:04 AM   #3
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
I had forgotten to install jdk

Hello,

as it seems i had forgotten to install jdk but i thought Eclipse could run only with jre. Anyway i did the following- i installed the openjdk slackbuild that is available from Alien Bob - http://www.slackware.com/~alien/slac...dk/pkg64/14.1/

After that installation i rebooted. I am still getting the same errors when trying to start eclipse from command line or KDE. Here are some details again:

/opt/eclipse/configuration/config.ini
Code:
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Wed Jun 05 22:18:38 EDT 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.0.v20130529-1710.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.I20130605-2000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
org.eclipse.swt.internal.gtk.useCairo=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
osgi.bundles.defaultStartLevel=4
/opt/eclipse/eclipse.ini
Code:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m
i do not know if i need to make any changes in those two files. Further details:
Code:
bash-4.2$ which java
/usr/lib64/java/bin/java
Code:
bash-4.2$ echo $JAVA_HOME
/usr/lib64/java
Code:
bash-4.2$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.6) (Slackware)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

Last edited by glupa4e; 04-12-2014 at 07:09 AM. Reason: typo
 
Old 04-12-2014, 07:12 AM   #4
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
A file is missing - org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416

I noticed that some file is missing - there is no file

Code:
org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
under
Code:
/opt/eclipse/plugins
but that file is configured in /opt/eclipse/eclipse.ini

Any idea how to fix that?
 
Old 04-12-2014, 07:33 AM   #5
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
Sart Eclipse as root

Trying to start Eclipse as a root user gives some more information:

Code:
# eclipse 
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416: cannot open shared object file: No such file or directory
No protocol specified
Eclipse: Cannot open display: 
Eclipse:
The Eclipse executable launcher was unable to locate its 
companion shared library.
But howcome could this file be missing?
 
Old 04-12-2014, 07:59 AM   #6
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
Log contents

Hello,

i figured out that there is something wrong in the eclipse.ini file:
it was configured:
Code:
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
but i did not have such file. i had the following instead:
Code:
/opt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
So i replaced the originally configured file with the one i had. Now my /opt/eclipse/eclipse.ini looks as this:
Code:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m
i rebooted the machine after i had made the changes. Now when i try to start eclipse, it gives an error that i should look in the log. Here is the log:

Code:
/home/user/.eclipse/org.eclipse.platform_4.3.0_1473617060_linux_gtk_x86_64/configuration
!SESSION Sat Apr 12 13:52:20 CEST 2014 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2014-04-12 13:52:20.226
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:633)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Last edited by glupa4e; 04-12-2014 at 08:00 AM. Reason: typo
 
Old 04-12-2014, 09:18 AM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
I just built that with openjdk from Alien Bob's repo and it runs fine. used slackbuild to do it.
Quote:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m

Last edited by Drakeo; 04-12-2014 at 09:20 AM.
 
Old 04-12-2014, 03:08 PM   #8
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by Drakeo View Post
I just built that with openjdk from Alien Bob's repo and it runs fine. used slackbuild to do it.
Hello Drakeo,
as far as i can understand from your post, you have installed openjdk from Alien Bob's repository and then you have installed Eclipse package from slackbuilds.org? Is that right?

Thanks!
 
Old 04-13-2014, 12:58 AM   #9
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
Eclipse 4.3 64 reinstalled - same problem

Hello,
here is what i did. I removed Eclipse and installed it again. I already had installed openjdk from Alien Bob's repository. I am using the eclipse.ini file that Drakeo has provided. i just replaced my old one with the one he had provided. Now i am getting this error when starting eclipse:
Code:
!SESSION Sun Apr 13 06:54:35 CEST 2014 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2014-04-13 06:54:35.156
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:633)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
 
Old 04-13-2014, 01:13 AM   #10
glupa4e
Member
 
Registered: Jan 2011
Posts: 329

Original Poster
Rep: Reputation: 7
Solution found

Hello,
i searched a little bit in Internet. I found this post useful. i just had to replace the proper files in /opt/eclipse/configuration/config.ini. i just set it to match the files that i have under the plugins directory.
original config.ini:
Code:
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Wed Jun 05 22:18:38 EDT 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.0.v20130529-1710.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.I20130605-2000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
org.eclipse.swt.internal.gtk.useCairo=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
osgi.bundles.defaultStartLevel=4
modified config.ini
Code:
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Wed Jun 05 22:18:38 EDT 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.I20130605-2000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
org.eclipse.swt.internal.gtk.useCairo=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
osgi.bundles.defaultStartLevel=4
the only row i had to update was:
Code:
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
this is version specific.
thank you, marking this thread as solved.
 
  


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
ibus refuses to start on Slackware 14 (stable) lensilvan Slackware 14 11-08-2013 05:53 AM
Eclipse problem in Slackware - cannot start ZebraIzToronto Slackware 3 12-21-2010 09:04 PM
samba refuses to start on startup, but will start manually pepsimachine15 Linux - Software 8 04-20-2009 12:03 PM
Cannot start Eclipse C++ on Slackware 12 SJD Slackware 1 08-10-2007 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 AM.

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
Open Source Consulting | Domain Registration