LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-24-2012, 12:13 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
slack64 - v13.37 , error opening eclipse? possible bug in $PATH for jre


hello everyone,
I am setting up a development environment in a slack64 box and added quite a few SBo packages (a list is appended).

I tried running eclipse but it wouldn't run giving an error
Quote:
JVM terminated. Exit code=2
searching for this error (and finding only threads about all other possible exit code numbers) seems to lead to the conclusion that the most usual problem is difference in architecture between eclipse and Java. As such I checked
Quote:
java -version
which would return 'no such file or directory even though the file was there in the filesystem.

indeed
Quote:
which java
revealed that the executable that is referred to is the 32-bit one:

Quote:
nass@starcode:~$ which java
/usr/lib/java/bin/java

nass@starcode:~$ file /usr/lib/java/bin/java
/usr/lib/java/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), not stripped

nass@starcode:~$
going one step further, the $PATH refers first the 32-bit /usr/lib and then the 64-bit /usr/lib64 one.

this is probably due to some of the SBo packages tampering with the the $PATH variable and adding the 32-bit paths as well (or at least prepending them to lib64 java)...
and the guilty script is /etc/profile.d/jdk.sh which prepends to $PATH the /usr/lib/java

since I have other slack64-v13.37 (non devel oriented) boxes without this problem, i assume it is a problem of the jdk package found in extra/. or is it..

should I change the /etc/profile.d/jdk.sh ? disable its execution or it will break other things?


Thank you for your help.

PS:the SBo packages I have installed are the following:

Quote:
nass@starcode:~$ ls -l /var/log/packages/ | grep SBo
-rw-r--r-- 1 root root 12324 May 9 19:06 GConf-2.32.4-x86_64-2_SBo
-rw-r--r-- 1 root root 5094 May 9 18:57 ORBit2-2.14.19-x86_64-1_SBo
-rw-r--r-- 1 root root 11459 May 10 11:46 avahi-0.6.30-x86_64-1_SBo
-rw-r--r-- 1 root root 1475 May 9 17:10 celt051-0.5.1.3-x86_64-1_SBo
-rw-r--r-- 1 root root 803 May 9 17:08 cutecom-0.22.0-x86_64-1_SBo
-rw-r--r-- 1 root root 2663 May 9 18:48 ddd-3.3.12-x86_64-1_SBo
-rw-r--r-- 1 root root 145887 Aug 24 18:47 eclipse-4.2-x86_64-1_SBo
-rw-r--r-- 1 root root 9216 May 10 21:01 fqterm-0.9.6.10-x86_64-1_SBo
-rw-r--r-- 1 root root 1723 Aug 24 15:04 freenx-0.7.3-x86_64-2_SBo
-rw-r--r-- 1 root root 1903 May 10 03:31 gconfmm-2.28.2-x86_64-1_SBo
-rw-r--r-- 1 root root 87009 May 10 03:29 glibmm-2.28.2-x86_64-1_SBo
-rw-r--r-- 1 root root 14188 May 10 01:07 gnome-keyring-2.32.1-x86_64-1_SBo
-rw-r--r-- 1 root root 8960 May 10 11:51 gnome-mime-data-2.18.0-x86_64-2_SBo
-rw-r--r-- 1 root root 8706 May 10 15:27 gnome-sharp-2.24.2-x86_64-1_SBo
-rw-r--r-- 1 root root 20413 May 10 12:00 gnome-vfs-2.24.4-x86_64-1_SBo
-rw-r--r-- 1 root root 20484 May 10 16:25 graphviz-2.28.0-x86_64-1_SBo
-rw-r--r-- 1 root root 11844 May 10 04:54 gtk-sharp-2.12.10-x86_64-1_SBo
-rw-r--r-- 1 root root 966 May 9 17:05 htop-1.0-x86_64-1_SBo
-rw-r--r-- 1 root root 7065 May 9 19:24 icu4c-4.6.1-x86_64-1_SBo
-rw-r--r-- 1 root root 3334 May 10 00:57 js185-1.0.0-x86_64-1_SBo
-rw-r--r-- 1 root root 23138 May 10 16:38 kdesvn-1.5.5-x86_64-1_SBo
-rw-r--r-- 1 root root 20896 May 10 11:50 libbonobo-2.32.1-x86_64-1_SBo
-rw-r--r-- 1 root root 15877 May 10 15:07 libbonoboui-2.24.5-x86_64-1_SBo
-rw-r--r-- 1 root root 3011 May 10 12:07 libcanberra-0.27-x86_64-1_SBo
-rw-r--r-- 1 root root 1122 May 10 03:32 libdaemon-0.14-x86_64-1_SBo
-rw-r--r-- 1 root root 1050 May 10 03:33 libgdiplus-2.10.9-x86_64-1_SBo
-rw-r--r-- 1 root root 14857 May 10 12:09 libgnome-2.32.1-x86_64-1_SBo
-rw-r--r-- 1 root root 8353 May 10 01:02 libgnome-keyring-2.32.0-x86_64-1_SBo
-rw-r--r-- 1 root root 14427 May 10 14:48 libgnomecanvas-2.30.3-x86_64-1_SBo
-rw-r--r-- 1 root root 21075 May 10 15:20 libgnomeui-2.24.5-x86_64-1_SBo
-rw-r--r-- 1 root root 2254 May 10 00:59 libproxy-0.4.7-x86_64-1_SBo
-rw-r--r-- 1 root root 4317 May 9 17:07 libsigc++-2.2.9-x86_64-1_SBo
-rw-r--r-- 1 root root 1061 May 9 17:08 libsigsegv-2.8-x86_64-1_SBo
-rw-r--r-- 1 root root 6120 May 10 01:10 libsoup-2.32.2-x86_64-2_SBo
-rw-r--r-- 1 root root 2541 May 10 01:01 libtasn1-2.9-x86_64-1_SBo
-rw-r--r-- 1 root root 68925 May 10 04:49 mono-2.10.9-x86_64-1_SBo
-rw-r--r-- 1 root root 9232 May 10 14:20 mono-addins-0.6.1-x86_64-1_SBo
-rw-r--r-- 1 root root 2205 May 10 15:36 mono-debugger-2.10-x86_64-1_SBo
-rw-r--r-- 1 root root 20433 May 10 15:46 monodevelop-2.8.6.5-x86_64-1_SBo
-rw-r--r-- 1 root root 1204 May 10 15:46 monodevelop-debugger-gdb-2.8.6.5-x86_64-1_SBo
-rw-r--r-- 1 root root 10007 May 9 17:36 ngspice-21-x86_64-1_SBo
-rw-r--r-- 1 root root 2529 May 10 00:50 nspr-4.8.9-x86_64-1_SBo
-rw-r--r-- 1 root root 5397 Aug 24 14:33 nx-3.5.0-x86_64-2_SBo
-rw-r--r-- 1 root root 3827 May 9 18:33 qemu-1.0.1-x86_64-1_SBo
-rw-r--r-- 1 root root 1926 May 10 20:53 qt-assistant-compat-4.6.3-x86_64-1_SBo
-rw-r--r-- 1 root root 35363 May 10 19:46 qt-creator-2.2.1-x86_64-2_SBo
-rw-r--r-- 1 root root 425506 May 10 20:09 qt-doc-4.7.0-x86_64-1_SBo
-rw-r--r-- 1 root root 34425 May 10 20:52 qt3-3.3.8b-x86_64-2_SBo
-rw-r--r-- 1 root root 901 May 10 20:56 qterminal-20111216_fe3055a-x86_64-1_SBo
-rw-r--r-- 1 root root 3099 May 10 20:55 qtermwidget-20111212_ccb7b88-x86_64-1_SBo
-rw-r--r-- 1 root root 3127 May 10 17:47 rapidsvn-0.12.0_1-x86_64-1_SBo
-rw-r--r-- 1 root root 18082 May 9 17:08 scons-2.1.0-x86_64-1_SBo
-rw-r--r-- 1 root root 2858 May 10 00:49 sound-theme-freedesktop-0.7-noarch-1_SBo
-rw-r--r-- 1 root root 1307 May 10 18:14 spice-0.10.1-x86_64-1_SBo
-rw-r--r-- 1 root root 1762 May 9 17:10 spice-protocol-0.10.1-noarch-1_SBo
-rw-r--r-- 1 root root 9839 May 10 18:02 valgrind-3.7.0-x86_64-1_SBo
-rw-r--r-- 1 root root 2387 May 10 18:06 valkyrie-2.0.0-x86_64-1_SBo
-rw-r--r-- 1 root root 27046 May 10 03:22 webkit-r61056-x86_64-1_SBo
-rw-r--r-- 1 root root 241106 May 10 17:35 wxPython-2.8.12.0-x86_64-1_SBo
nass@starcode:~$
 
Old 08-24-2012, 01:22 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I am more interested in the output of :

Code:
ls -la /var/log/packages/jre*
ls -la /var/log/packages/jdk*
Eric
 
Old 08-24-2012, 01:42 PM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
Hi there,

Quote:
bash-4.1$ ls -la /var/log/packages/jre*
-rw-r--r-- 1 root root 36854 Aug 24 19:33 /var/log/packages/jre-6u25-x86_64-1
bash-4.1$ ls -la /var/log/packages/jdk*
-rw-r--r-- 1 root root 307831 May 9 16:51 /var/log/packages/jdk-6u25-i586-1
bash-4.1$
 
Old 08-24-2012, 02:02 PM   #4
jamesf
Member
 
Registered: Dec 2004
Location: USA
Distribution: Slackware 12, Slackware64 14.2
Posts: 236
Blog Entries: 1

Rep: Reputation: 57
This link discusses the problem in 2004 https://bugzilla.redhat.com/show_bug.cgi?id=105950

Claimed to be fixed (with certain compile flags?) in slocate-2.7-8
 
Old 08-24-2012, 04:02 PM   #5
ppencho
Member
 
Registered: Jan 2004
Location: Bulgaria
Distribution: Slackware64-current
Posts: 94

Rep: Reputation: Disabled
Quote:
Originally Posted by nass View Post
bash-4.1$ ls -la /var/log/packages/jre*
-rw-r--r-- 1 root root 36854 Aug 24 19:33 /var/log/packages/jre-6u25-x86_64-1
bash-4.1$ ls -la /var/log/packages/jdk*
-rw-r--r-- 1 root root 307831 May 9 16:51 /var/log/packages/jdk-6u25-i586-1
bash-4.1$
You have installed 32-bit jdk-6u25-i586-1. Try this one:
http://slackware.osuosl.org/slackwar...7/extra/jdk-6/

Also, I'm not sure if it is a good idea to have both jre and jdk installed on one machine.
 
Old 08-24-2012, 07:36 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Only install one of the two (jre or jdk) at all times. Considering you want to use Eclipse, you certainly need to have the JDK package.
Never install a 32-bit package on a 64-bit system. If you are using a multilib Slackware then still, you need to be careful about that kind of things.

You probably installed that 32-bit JRE knowingly. What did you hope it would fix for you?

Eric
 
Old 08-27-2012, 03:10 AM   #7
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
hmm, 32bit on a clean (no multilib) 64bit machine?
I wouldn't do it on purpose.. my guess is i accidentally nfs-mounted the slackware-13.37 folder on this fresh install, rather than the slackware64-13.37 folder. there goes the error on my part. Probably some late night screw up.

Thank you for your help both.
 
  


Reply

Tags
architecture, eclipse, java, jdk, jre



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
Slack64-Current / NVIDIA Driver / possible bug? slackass Slackware 2 05-21-2009 12:02 AM
Set Path to Jre 1.5 Lambda_Core Linux - Software 2 07-20-2006 12:40 AM
LimeWire, JRE, $PATH morte313 Linux - Software 5 08-25-2005 04:03 PM
jre path in suse9.0 for oracle8 install gnicezw Linux - Newbie 1 04-20-2004 05:08 PM
jre not in path... Risc91 Linux - General 7 01-16-2002 02:26 AM

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

All times are GMT -5. The time now is 05:22 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