You are not logged in.
Pages: 1
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
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
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 PATHSo 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
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
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
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
https://gist.github.com/e77fef387a8d9540e1a4
That's "locate java" output.
Offline
$ pacman -Qo `which java`
/usr/bin/java is owned by jre7-openjdk-headless 7.u9_2.3.3-1
Offline
~> 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
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
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
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
~> 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
$ 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)
Online
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
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
Pages: 1