You are not logged in.
Hi,
I am learning Java and software engineering using Stanford's CS106A course. It was taught in 2006 using then version of Eclipse and JRE 1.6u2. It is obviously giving me headache to run on the latest version of Java and Eclipse. I am using Oracle's JDK. I have used both ADT-bundle and repository version of Eclipse. I have tried various versions of Java namely jdk, jre6, jdk6-compat and I also downloaded JDK 1.6u2 from Oracle's archives. I installed it in home folder as per instructions. Set the path. Rebooted. System can recognize java-environment but Eclipse wouldn't run.
export JAVA_HOME=/home/donnie/Downloads/Packages/jdk-archive/jdk1.6.0_02
export PATH=${PATH}:/home/donnie/Downloads/Packages/jdk1.6.0_02/binjava -version
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)Eclipse gave me following error when I tried to run in through menu.
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 PATHWhen I ran Eclipse from terminal after re-sourcing .bashrc and making sure java-environment is detected. Program and code ran only to give following error.
The specified JRE installation does not existI really don't want to install Windows to run this single program. So any help from gurus would be much appreciated.
Thanks.
Last edited by donniezazen (2013-11-01 08:04:12)
Offline
What about running it through wine?
Or maybe using the matching version of eclipse (3.2.1)
http://archive.eclipse.org/eclipse/down … 609210945/?
Last edited by skualito (2013-10-30 14:52:58)
Offline
I was able to solve the problem.
I had stock Eclipse and JDK installed. On top of that I installed jre6-compat and jdk6-compat. In Eclipse I choose Java6 as default java and I set compiler to 1.6. Both of these options are available in Eclipse/Preferences. Voila! it worked.
Hope it helps someone in future.
Offline