Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IS 1.6 JRE Required

 
Harish Tam
Ranch Hand
Posts: 71
Eclipse IDE Java
  • 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
  • Likes 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
  • 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
  • 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: 49776
69
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic