wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "IS 1.6 JRE Required" Watch "IS 1.6 JRE Required" New topic
Author

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.


Thanks

SCJP 1.4, SCWCD 1.4
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

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

Thanks
John Jai
Bartender

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

Joined: Oct 13, 2005
Posts: 38075
    
  22
If you look here, you will find options allowing code to be compiled as if it were Java6 rather than 7.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: IS 1.6 JRE Required
 
Similar Threads
JAVA2 1.2 compiler
JRE Installation Question
Upgrading SDK
Unable to use swing libraries
JDK , JRE Update