aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 38393
    
  23
If you look here, you will find options allowing code to be compiled as if it were Java6 rather than 7.
 
wood burning stoves
 
subject: IS 1.6 JRE Required