You are not logged in.

#1 2008-07-30 18:13:31

CipherUC
Member
Registered: 2008-04-24
Posts: 9
Website

Search path jre & jdk

Hi all,

I've installed eclipse thru pacman along with jre and jdk and when I try to run eclipse I get a

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

What am I missing?

Offline

#2 2008-07-30 18:29:30

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Search path jre & jdk

your PATH environment variable needs to point to a directory containing the JRE.

On my system, I have a file called /etc/profile.d/jre.sh that adds "/opt/java/jre/bin" to my path. It's called at boot. I think it comes with the "jre" package (but I didn't check). So, you can

export PATH=$PATH:/opt/java/jre/bin

or reboot your computer.

Offline

#3 2010-09-21 14:12:55

davidcarvalho
Member
Registered: 2010-04-20
Posts: 21

Re: Search path jre & jdk

mate. you are brilliant. Thank you so much

Offline

#4 2010-09-21 14:28:47

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Search path jre & jdk

just relogin after installing jre/jdk


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-09-21 14:48:49

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Search path jre & jdk

Or . /etc/profile.d/jre.sh and jdk.sh  (only affects the current shell)

Edit: just noticed: Holy necropost batman!

Last edited by Mr.Elendig (2010-09-21 14:49:41)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2010-09-21 14:56:03

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Search path jre & jdk

Closing.

Please read forum etiquettes on necro bumping.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB