LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-26-2009, 09:42 AM   #1
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Rep: Reputation: 15
LimeWire (from SlackBuild) won't start, path points to rm-ed java directory in /usr.


Preface: I have read as many "Java"+"Path"+"LimeWire" search results as I can stomach, and none is directly answering my question. If I've missed one which does, please point me in the right direction so I don't waste your time with rhetoric.

This said, here is my Konsole output:

Code:
Starting LimeWire...
Java exec not found in PATH, starting auto-search...
ls: cannot access /usr/lib/jvm/j*: No such file or directory
OOPS, unable to locate java exec in  /usr/lib/jvm/  hierarchy
You need to upgrade to JRE 1.5.x or newer from http://www.java.com
OOPS, unable to locate java exec in  /usr/lib/  hierarchy
You need to upgrade to JRE 1.5.x or newer from http://www.java.com
ls: cannot access /usr/java/j*: No such file or directory
OOPS, unable to locate java exec in  /usr/java/  hierarchy
You need to upgrade to JRE 1.5.x or newer from http://www.java.com
ls: cannot access /opt/j*: No such file or directory
OOPS, unable to locate java exec in  /opt/  hierarchy
You need to upgrade to JRE 1.5.x or newer from http://www.java.com
Now I haven't used LimeWire since my upgrade to Java 1.6.*, and I know that when I upgraded I decided to put the Java directory in /home rather than /usr, and most likely LimeWire is pointing to a nonexistent directory. So....

(a) How do I verify that this is exactly the issue?, and
(b) If so, what is the proper way to change the path?

Thanks.
 
Old 07-26-2009, 06:49 PM   #2
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Original Poster
Rep: Reputation: 15
Resolved -- sort of.

I did something that worked, but still....if there's a better way please tell me what it is and why.

Since LimeWire is looking for java in /usr/java I just made a directory called /usr/java and copied my ~/java directory into it. I figure I should be fine as long as I remember to remove the /usr/java directory recursively when it comes time to upgrade to a newer java release.

Is this right, or am I doing something wrong here? Thanks for your help... (echo: help....help....help....)
 
Old 07-27-2009, 11:47 AM   #3
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
How did you install java on your system? The Limewire script from SlackBuilds.org is written with the expectation that you'll have the jre package installed.
 
Old 07-27-2009, 02:19 PM   #4
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Original Poster
Rep: Reputation: 15
reply

Hey there Robby,

:::tips hat:::

When I originally installed the LimeWare package I was using an earlier version of Java on my machine, installed (apparently) somewhere in /usr. LimeWire worked, all was good. SlackBuilds always work.

When it came time to upgrade Java, having never done an upgrade before, I simply yanked out the old java directory and any related symbolic links and installed the new version: Java 1.6.something. Only I put the new Java directory with all of my other downloads....in my home directory.

So LimeWire was trying to find Java using the old path, and not knowing how to change the path I simply copied the entire /home/Dennis/downloads/java directory to a new one called /usr/java and suddenly LimeWire works. This means I have two identical java directories; one in /home and one in /usr.

So my question is: is this an acceptable solution or have I done something that could conceivably create a conflict down the line? (I am new to Slackware and Linux so I am trying to develop good habits right from the start.)

Thanks as always for your response, as well as for all of your hard work on this most-excellent OS.
 
Old 07-27-2009, 02:35 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
Yeah, that's going to create a conflict sooner or later. This is going to sound horrible, but I'd recommend installing the latest -current package, regardless of what Slackware version you actually have installed there (after removing the java stuff you have now, of course).

Yes, I know that we always say that -current is an "all or nothing" endeavor, and it is, except when it isn't. :-) See, jre is a binary repackaging, so it's not actually compiled on a -current system -- it's exactly what you would get if you download it from java.com, but it's repackaged for better integration with Slackware.

The other hurdle you'll have to overcome is extracting the package, since 12.2 and earlier releases don't support the .txz packages. For minimal intrusiveness, here's what I'd do:
Install xz. Yeah, you can actually install the xz package from -current onto 12.2 :-) Then, assuming the jre package is in your current working directory, do this:
Code:
$ xz -d jre-6u14-i586-1.txz
$ gzip -9 jre-6u14-i586-1.tar
$ mv jre-6u14-i586-1.tar.gz jre-6u14-i586-1.tgz
Now you can install that package.
 
Old 07-28-2009, 01:03 AM   #6
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Original Poster
Rep: Reputation: 15
Reply

Man, my spirit of adventure makes me totally want to say what the hell and download -current....

...it's just that I'm still a newb climbing up the North Face of Slackware's steep learning-curve and I don't wanna stray off-course prematurely.

This said, between you and this guy I am really tempted.

Lemme ask you: right now my system represents a year's worth of tweaks, half of which I don't even know if I could remember how to do again. For instance, I connect to the Internet using a Sierra wireless card using chat scripts I found and "did stuff with" as per Internet instructions.

If I run the slackpkg commands necessary to clean my system and sync with -current, will I lose all of these tweaks?

.
 
Old 07-28-2009, 01:09 AM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
I suspect that this will save pretty much all of the system configs that you might need to duplicate:
Code:
tar czf configs.tar.gz /etc
Just copy that onto a thumbdrive or some such.

That being said, upgrading shouldn't lose any of your tweaks. However, I think you'll find that a year is a long time, especially with the distance you've traveled up that learning curve -- you'll likely do things a lot better if you start from scratch.

Probably your Sierra chat scripts are in /etc/ppp/peers, and you launch the connection using "pppd call <peername>" - that's easy enough to replicate. I've even got a nice init script if you'd like it :-)
 
Old 07-28-2009, 01:39 AM   #8
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Original Poster
Rep: Reputation: 15
Reply

Hmmm. Ok. I'm sold.

Especially since macavity was good enough to help me clone my HDD to an identical one using
Code:
dd if=/dev/sda of=/dev/sdb bs10M& pid=$!
so if anything were to go wrong I always have a way to back my pony up and try again.

I'm gonna wait til my long-awaited vacation is over. Rather not bork my system and have to spend every day on the beach cringing about it.

Thanks for your suggestions, Robby, and uh...permission to tug at your sleeve again when I do the update (around Aug 15th)?

Last edited by Dennola4; 07-28-2009 at 01:42 AM.
 
Old 07-28-2009, 02:14 AM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,913

Rep: Reputation: Disabled
I'll be back at work by then, but sure. :-)
 
  


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
set up java_home path in /home/user/.bashrc but use path in /usr/lib/java vitalstrike82 Slackware 4 01-13-2009 11:25 PM
fail to start xterm: "could not exec /usr/OSE/bash: No such file or directory" freeindy Linux - General 3 11-28-2008 12:22 AM
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 03:11 PM
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Limewire will not install, java not in PATH endezeichen Linux - Software 2 12-20-2003 01:53 PM


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