- This topic has 2 replies, 2 voices, and was last updated 18 years, 11 months ago by Mike#.
-
AuthorPosts
-
Mike#MemberHello,
using Eclipse on Windows is no problem,
but installing on Linux SuSE 10.0 is very different.My installed Java:
/usr/java/jdk1.5.0_06mike@linux:~> export JAVA_HOME=”/usr/java/jdk1.5.0_06″
mike@linux:~> export PATH=$PATH:/usr/java/jdk1.5.0_06/bin/mike@linux:~> echo $PATH results:
/home/mike/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/java/jdk1.5.0_06/bin/Java looks well installed, you can see it in YAST – Configuration or proof it by testing “java” on the console.
Eclipse is unzipped on /home/mike/eclipse
. On this direction there is the file “eclipse” for installing process. Evertytime I use this file to install eclipse I got this dialog:
“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:
/home/mike/eclipse/jre/bin/java
‘java’ in your current PATH”
What do I do wrong? What should I do to use Eclipse on SuSE10.0?
How is it possible to use Java with Eclipse for every user?
Should I copy Java to another directory?
Riyad KallaMemberMoving to OT > Soft Dev
Mike, try exporting your path as: export PATH=/usr/java/jdk1.5.0_06/bin:$PATH
then type: “java -version”, make sure it’s the right version.
If that doesn’t work, you can tell Eclipse specifically which VM to use with the -vm argument:
eclipse -vm /usr/java/jdk1.5.0_06/bin/java
Mike#MemberThank you for the very fast answer.
I’ll tried a lot, therefore I coudln’ write ealier. The first advices haven’t done 🙄 ,
but as I started following as root I can use eclipse:1.) export PATH=/usr/java/jdk1.5.0_06/bin:$PATH
2.) export PATH=/home/mike/eclipse:$PATH
3.) eclipse -vm /usr/java/jdk1.5.0_06/bin/javaI am not really sure why, but the secound one, I had to admit, because I got the massage
“vbash: eclipse: command not found“.
Sometimes the promt “eclipse -nl de_DE” instead of number3 started too,
but after a while I got an error with an created log- file:
“!SESSION 2006-01-09 20:34:09.406 ———————————————–
eclipse.buildId=M20050929-0840
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments: -os linux -ws gtk -arch x86!ENTRY org.eclipse.update.configurator 2006-01-09 20:34:13.328
!MESSAGE Could not load from shared install
!STACK 0
java.lang.Exception
at org.eclipse.update.internal.configurator.ConfigurationParser.processConfig(ConfigurationParser.java:304)
[…]”I tried another dezipped- trial of the eclipse- IDE:
Instead of the direction /home/mike/eclipse I used /usr/local/eclipse,
but that’s worther than now.I am happy, that I can start eclipse as root, althought I had to put all the three
things on the console – everytime:oops: , I written above. Not very well installation within linux.
I also made an icon, but there is no chance because of the 3 inputs 1.) till 3.).linux:/home/mike/eclipse # java -version
java version “1.5.0_06” <– this is my installed Java on /usr/java/jdk1.5.0_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) -
AuthorPosts