jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes IS 1.6 JRE Required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "IS 1.6 JRE Required" Watch "IS 1.6 JRE Required" New topic

IS 1.6 JRE Required

Harish Tam
Ranch Hand

Joined: Feb 17, 2005
Posts: 71

Hello all,

i have a program which is using java 1.6 and have installed this program.
Do i also need to install jre 1.6 for this i have copied the jdk 1.6 files on my machine. and set it as JAVA_HOME in the environment variable.

Do i need jre 1.6 installed too and if i install the jre 1.6 will my programs working with jre 1.5 with work with no issues or it will conflict.


SCJP 1.4, SCWCD 1.4
James Boswell

Joined: Nov 09, 2011
Posts: 1051

If you have installed the JDK, you will already have a JRE.
Harish Tam
Ranch Hand

Joined: Feb 17, 2005
Posts: 71

I have jdk means i had copied it from somewhere.

so just by mentioning the JAVA_HOME/bin path and start compile the java files cause this is what i am doing currently and I get some class wrong version compiled message.
what can i do to compile the java files in 1.6

John Jai

Joined: May 31, 2011
Posts: 1776
Compile it using JAVA_HOME(of Java 6)/bin/javac and then run it.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46410
If you look here, you will find options allowing code to be compiled as if it were Java6 rather than 7.
I agree. Here's the link: http://aspose.com/file-tools
subject: IS 1.6 JRE Required
jQuery in Action, 3rd edition