LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-12-2012, 01:12 AM   #1
J1NKL3
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 77

Rep: Reputation: Disabled
Question Problem with Java install in 64-current


FIXED: Turns out if you don't pay attention and use the Solaris package things don't work correctly... who knew?

Tried to install the JDK on my desktop last night and can't seem to get it working. It works fine on the laptop, but is giving me a weird error that I can't quite figure out. Anyone have any ideas or pointers? Let me know if you need more info. Thanks! It's the lastest 7u7 JDK.

uname -a
Code:
Linux tuxbox 3.2.28 #2 SMP Thu Aug 23 12:43:19 CDT 2012 x86_64 Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz GenuineIntel GNU/Linux
echo $PATH
Code:
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin:.:usr/lib64/java/bin/amd64:/usr/sbin:/usr/bin:/sbin:/bin
file java
Code:
java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), not stripped, uses FPU FXSR SSE
user@tuxbox:/usr/lib64/java/bin/amd64$ ./java
Code:
bash: ./java: No such file or directory
user@tuxbox:~$ java
Code:
bash: java: command not found

Last edited by J1NKL3; 09-12-2012 at 01:57 AM. Reason: I'm a moron!
 
Old 09-12-2012, 01:40 AM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
The java binary should be located in /usr/lib64/java/bin, not inside an amd64 subdirectory.
Also note that the path you added to PATH is a relative one (it lacks a prepending /).
You shouldn't need to manually adjust PATH if you mark /etc/profile.d/jdk.sh as executable, though...
 
Old 09-12-2012, 01:44 AM   #3
J1NKL3
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 414N View Post
The java binary should be located in /usr/lib64/java/bin, not inside an amd64 subdirectory.
Also note that the path you added to PATH is a relative one (it lacks a prepending /).
You shouldn't need to manually adjust PATH if you mark /etc/profile.d/jdk.sh as executable, though...
I'm sure I had the prepending / at one point during the install in my .bashrc but even after fixing that it doesn't run. jdk.sh does not exist in my /etc/profile.d
 
Old 09-12-2012, 01:55 AM   #4
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
I see. The installer probably messed up something...
Remove the JDK first using the installer as mentioned on this page, then repackage the installer itself using the SlackBuild you can find under extra/java in the Slackware-current tree.
You will obtain a .txz Slackware package which should work out of the box, then.
 
Old 09-12-2012, 01:56 AM   #5
J1NKL3
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 77

Original Poster
Rep: Reputation: Disabled
Wow... how stupid do I feel right now? Just went back to the source directory and realized I downloaded the Solaris code instead of Linux
 
Old 09-12-2012, 02:06 AM   #6
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
Well, this explains a lot
 
Old 09-12-2012, 02:07 AM   #7
J1NKL3
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 414N View Post
Well, this explains a lot
I still don't have /etc/profile.d/jdk.sh though... any idea how to get that so I won't have to modify the PATH?
 
Old 09-12-2012, 02:11 AM   #8
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 608

Rep: Reputation: 179Reputation: 179
Have you repackaged the binary installer downloaded from Oracle's site with the SlackBuild?
 
Old 09-12-2012, 02:16 AM   #9
J1NKL3
Member
 
Registered: Mar 2012
Distribution: Slackware64-current
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 414N View Post
Have you repackaged the binary installer downloaded from Oracle's site with the SlackBuild?
Got it fixed with a little bit of Googling... thanks
 
  


Reply

Tags
java, jdk, jdk7


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
[SOLVED] nvidia install problem on current pg99 Slackware 3 04-01-2011 02:00 AM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM
Java install Problem Hellaxe Linux - Software 6 05-17-2005 06:26 AM
Java and Slackware-current AstainHellbring Slackware 4 10-23-2004 10:08 AM
Java 1.4.0 SDK install problem insom Linux - Newbie 3 09-05-2003 04:01 AM


All times are GMT -5. The time now is 08:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration