LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-08-2010, 04:17 PM   #1
chytraeus
Member
 
Registered: Dec 2008
Distribution: slackware64 openbsd
Posts: 105

Rep: Reputation: 11
Unhappy Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ...


Hi,
I resized/moved my extended partition last night. slackware is on one of the logical partitions. Now I'm having some problems starting applications that need java such as moneydance and RSSOwl. When I try to run rssowl the following dialogue pops up:

A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run RSSOwl. No Java virtual machine
was found after searching the following locations:
/usr/lib/RSSOwl/jre/bin/java
java in your current PATH.

Moneydance won't start and libreoffice barfs too.

Code:
set | grep -i java
returns:

JAVA_HOME=/usr/lib/java
MANPATH=/usr/local/man:/usr/man:/usr/lib/java/man:/usr/lib/java/man:/opt/plan9/man:/usr/lib/scala/man:/usr/share/texmf/man.

Java is not working in Opera either. I haven't checked the other browsers except for xxxterm which works fine with java.

I tried reinstalling jre and jdk which didn't help.

Could someone help?

Last edited by chytraeus; 11-08-2010 at 04:52 PM. Reason: Better thread title
 
Old 11-08-2010, 04:56 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Did you do a full install? If so, you should have the jre, and the jdk is in /extra on the DVD.

Sorry, should have read your post more thoroughly and noticed the bit about reinstalling them.

Last edited by brianL; 11-08-2010 at 04:58 PM.
 
Old 11-08-2010, 05:21 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
What does

Quote:
type $PATH
return?
 
Old 11-08-2010, 06:24 PM   #4
chytraeus
Member
 
Registered: Dec 2008
Distribution: slackware64 openbsd
Posts: 105

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by arubin View Post
What does

Code:
type $PATH
return?
Hi,

bash: type: /usr/lib/qt/bin:/home/chytraeus/bin:/opt:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:
/usr/local/bin:/usr/local/sbin:/usr/games:.:/opt:/home/chytraeus/bin: not found

Okay libreoffice is working. I had simply run out of space on my data partition after last nights partition changes.

Java is working in Opera too. It's still not working for RSSOwl or Moneydance.

This feels like a problem I should be able to fix but I'm stuck.

Last edited by chytraeus; 11-08-2010 at 07:12 PM. Reason: add more info
 
Old 11-09-2010, 02:24 AM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I think that I have a java address in my path. It will have to wait until this evening before I can check it out.
 
Old 11-09-2010, 06:16 AM   #6
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Rep: Reputation: 14
From your first post it looks like java is not in your path anymore.

Code:
[tich@quackers:~] $ cat /etc/slackware-version 
Slackware 13.1.0
[tich@quackers:~] $ which java
/usr/lib/java/bin/java
[tich@quackers:~] $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
 
Old 11-09-2010, 06:32 AM   #7
chytraeus
Member
 
Registered: Dec 2008
Distribution: slackware64 openbsd
Posts: 105

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Bertical View Post
From your first post it looks like java is not in your path anymore.

Code:
[tich@quackers:~] $ cat /etc/slackware-version 
Slackware 13.1.0
[tich@quackers:~] $ which java
/usr/lib/java/bin/java
[tich@quackers:~] $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
Hi,
How can I add it to my path?
 
Old 11-09-2010, 07:54 AM   #8
Bertical
Member
 
Registered: Oct 2008
Location: Kingdom of Mercia
Distribution: Slackware
Posts: 83

Rep: Reputation: 14
I think the java path should be set automatically on login by /etc/profile.d/jre.sh. If that file isn't there then maybe a reinstall of the JRE or JDK would fix it.

To set the path manually
Code:
PATH=$PATH:/usr/lib/java/bin
but it will be lost on reboot. Are you logging in as root as there is no default java path for the root account.
 
Old 11-09-2010, 12:52 PM   #9
0rwell
LQ Newbie
 
Registered: Sep 2009
Posts: 18

Rep: Reputation: 2
Quote:
Originally Posted by chytraeus View Post
Hi,
How can I add it to my path?
For me, I do a lot of development where I have to switch between java release branches. So I like to always manually install java and I segregate the releases in /opt.

To make this more permament, add it to your .bash_profile so every time you log in the path sets itself.

So, for me, currently my .bash_profile looks like this:

Code:
#Profile for logins
source ~/.bashrc

#aliases
alias ll="ls -alf"
alias cls="clear"
alias opt="cd /opt"
alias home="cd ~/"

#java dirs
export PATH=/opt/jdk1.6.0_22/bin:$PATH
export JAVA_HOME=/opt/jdk1.6.0_22/
export JRE_HOME=/opt/jdk1.6.0_22/
#export LD_LIBRARY_PATH=/opt/jdk1.6.0_22/lib:/opt/jdk1.6.0_22/jre/lib:$LD_LIBRARY_PATH
I have commented out the LD_LIBRARY because I didn't need it. You can choose to leave it in or not include it at all.

Hope this helps!

_O_

Last edited by 0rwell; 11-09-2010 at 12:54 PM. Reason: Typos
 
Old 11-11-2010, 04:26 PM   #10
chytraeus
Member
 
Registered: Dec 2008
Distribution: slackware64 openbsd
Posts: 105

Original Poster
Rep: Reputation: 11
Thanks for the help everyone.
 
Old 11-27-2010, 10:04 AM   #11
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 191

Rep: Reputation: 16
Smile

Thanks a ton Orwell, saved me lots of headache.
Seems like this needs to be done manually in Slack 13.1 x64.
 
  


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
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
Java Runtime Environment (JRE) 5.0 Update 16 cccc Debian 1 11-06-2008 09:58 AM
LXer: How to Install Java Runtime Environment (JRE) in Ubuntu LXer Syndicated Linux News 0 04-20-2007 12:33 AM
Intalling JRE (Java Runtime Environment) in Ubuntu depam Linux - Software 3 02-09-2006 01:09 PM
Removal of Java Runtime Environment (JRE) scottpioso Linux - Software 5 06-03-2003 06:44 AM

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

All times are GMT -5. The time now is 08:13 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
Open Source Consulting | Domain Registration