• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java installation

 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have updated my java 1.6 with 1.7. But i can see old java 1.6 directories also with new java7 directories in java folder.So my question is that i want to use both version by only changing environment variable but it is not working please help.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12100
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read ItDoesntWorkIsUseless.
 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:Please read ItDoesntWorkIsUseless.


I was just asking that how to use both java version 1.6 and 1.7 together.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12100
30
Chrome Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You said "i want to use both version by only changing environment variable but it is not working"

What did you change - from what and to what? How did you change it? are you using and IDE or from the command line?
When you then try and use the other version, what did happen - did the JVM crash? Did it say "java not recognized"? Did you get a Blue Screen of Death?
Are you trying to run the same .class files on both versions? are you trying to develop one program on 1.6 and a different one on 1.7?
By "use both version", are you talking running programs or developing programs?
 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thank you.
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
saloni jhanwar wrote:I was just asking that how to use both java version 1.6 and 1.7 together.

Step 1 : Install JDK 6
Step 2 : Install JDK 7
(I assume that you meant to say JDK)
And you can keep on switching those two versions.

I use JDK 5,6,7 on my machine this way.
 
saloni jhanwar
Ranch Hand
Posts: 583
Firefox Browser Notepad Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Anayonkar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic