You are not logged in.

#1 2012-12-08 16:07:28

Munchor
Member
Registered: 2012-10-29
Posts: 54

[SOLVED] Can't run Eclipse because no Java

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

So I installed openjdk from repositories, and I still can't run it. Any ideas? Thanks.

Last edited by Munchor (2012-12-21 14:55:48)

Offline

#2 2012-12-08 16:22:44

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: [SOLVED] Can't run Eclipse because no Java

Hi,
same message after installing?

Try

whereis java

to see where java is installed and look with

echo $PATH

if your system searches in the correct location

Offline

#3 2012-12-08 18:13:47

Antoine
Member
From: Picton Ontario
Registered: 2012-10-11
Posts: 90

Re: [SOLVED] Can't run Eclipse because no Java

Munchor wrote:

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

So I installed openjdk from repositories, and I still can't run it. Any ideas? Thanks.

Java's not in the path that eclipse is searching, for some  reason.  Java will be in

[ ~]$ which java
/usr/bin/java

which will be in your $PATH if it's been installed from the repo:

[ ~]$ java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (ArchLinux build 7.u9_2.3.3-1-i686)
OpenJDK Client VM (build 23.2-b09, mixed mode)

How did you install eclipse? The file list in the Extra repo doesn't have a "usr/share/eclipse/jre/bin" in it.

Last edited by Antoine (2012-12-08 18:15:10)

Offline

#4 2012-12-17 12:10:49

Munchor
Member
Registered: 2012-10-29
Posts: 54

Re: [SOLVED] Can't run Eclipse because no Java

I installed eclipse from repos (pacman -S eclipse) and Java from repos (pacman -S jdk7-openjdk). "java" doesn't really exist. "which java" says java doesn't exist, right after I installed jdk7-openjdk from repos!

Offline

#5 2012-12-17 13:26:47

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

Re: [SOLVED] Can't run Eclipse because no Java

1. Always use -Syu when installing stuff.
2. log out/in


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

Offline

#6 2012-12-17 14:42:25

Munchor
Member
Registered: 2012-10-29
Posts: 54

Re: [SOLVED] Can't run Eclipse because no Java

Mr.Elendig wrote:

1. Always use -Syu when installing stuff.
2. log out/in

I actually -Syu twice a day so I didn't do that. Anyways, I redid it with -Syu (just in case), logged out, logged in, but:

~> java
zsh: correct 'java' to 'javap' [nyae]? n
zsh: command not found: java
exit 127

Last edited by Munchor (2012-12-17 14:42:33)

Offline

#7 2012-12-19 11:12:24

Munchor
Member
Registered: 2012-10-29
Posts: 54

Re: [SOLVED] Can't run Eclipse because no Java

https://gist.github.com/e77fef387a8d9540e1a4

That's "locate java" output.

Offline

#8 2012-12-19 11:19:06

Boohbah
Member
Registered: 2011-11-19
Posts: 20

Re: [SOLVED] Can't run Eclipse because no Java

$ pacman -Qo `which java`
/usr/bin/java is owned by jre7-openjdk-headless 7.u9_2.3.3-1

Offline

#9 2012-12-20 01:26:37

Munchor
Member
Registered: 2012-10-29
Posts: 54

Re: [SOLVED] Can't run Eclipse because no Java

~> pacman -Qo `which java`
error: failed to find 'java' in PATH: No such file or directory
error: failed to find 'not' in PATH: No such file or directory
error: failed to find 'found' in PATH: No such file or directory
exit 3
~> 

Offline

#10 2012-12-20 02:39:32

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] Can't run Eclipse because no Java

I believe you also need jre7-openjdk, not just jdk7-openjdk. jre7-xxx is the actual "java" runtime.

Last edited by mrunion (2012-12-20 02:39:42)


Matt

"It is very difficult to educate the educated."

Offline

#11 2012-12-20 02:56:56

JLloyd13
Member
Registered: 2012-06-24
Posts: 107

Re: [SOLVED] Can't run Eclipse because no Java

mrunion wrote:

I believe you also need jre7-openjdk, not just jdk7-openjdk. jre7-xxx is the actual "java" runtime.

JDK should contain JRE. I say its worth a shot though

Offline

#12 2012-12-21 01:16:12

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] Can't run Eclipse because no Java

It doesn't. Never has that I know of, anyway. It's two separate downloads from Oracle as well. (Even on Windows (bleacchh!).)


Matt

"It is very difficult to educate the educated."

Offline

#13 2012-12-21 12:04:37

Munchor
Member
Registered: 2012-10-29
Posts: 54

Re: [SOLVED] Can't run Eclipse because no Java

~> sudo pacman -S jre7-openjdk
[sudo] password for david: 
Sorry, try again.
[sudo] password for david: 
warning: jre7-openjdk-7.u9_2.3.3-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): jre7-openjdk-7.u9_2.3.3-1

Total Installed Size:   0.54 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) upgrading jre7-openjdk                       [######################] 100%
~> java
zsh: correct 'java' to 'javap' [nyae]? n
zsh: command not found: java
exit 127
~> 

I will log out and log in now.

Offline

#14 2012-12-21 13:53:15

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Can't run Eclipse because no Java

Boohbah wrote:
$ pacman -Qo `which java`
/usr/bin/java is owned by jre7-openjdk-headless 7.u9_2.3.3-1

Munchor, is jre7-openjdk-headless installed on your system ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#15 2012-12-21 14:55:36

Munchor
Member
Registered: 2012-10-29
Posts: 54

Re: [SOLVED] Can't run Eclipse because no Java

Lone_Wolf wrote:
Boohbah wrote:
$ pacman -Qo `which java`
/usr/bin/java is owned by jre7-openjdk-headless 7.u9_2.3.3-1

Munchor, is jre7-openjdk-headless installed on your system ?

It wasn't, and installing it fixed it. When I installed it, it did say I was --reinstalling, though, quite odd, but it's fixed now, thanks guys!

Offline

#16 2012-12-21 21:50:28

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427
Website

Re: [SOLVED] Can't run Eclipse because no Java

mrunion wrote:

It doesn't. Never has that I know of, anyway. It's two separate downloads from Oracle as well. (Even on Windows (bleacchh!).)

The JDK download from Oracle does contain the JRE. There are 2 downloads because the other is just the JRE without the JDK.

Offline

Board footer

Powered by FluxBB