This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IS 1.6 JRE Required

 
Harish Tam
Ranch Hand
Posts: 71
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have installed the JDK, you will already have a JRE.
 
Harish Tam
Ranch Hand
Posts: 71
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Rancher
Posts: 1776
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compile it using JAVA_HOME(of Java 6)/bin/javac and then run it.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47250
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic