aspose file tools*
The moose likes Beginning Java and the fly likes Java installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java installation " Watch "Java installation " New topic
Author

Java installation

saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583

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.


Tell the difficulties that i am difficult.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11494
    
  16

Please read ItDoesntWorkIsUseless.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583

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

Joined: Oct 02, 2003
Posts: 11494
    
  16

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

Joined: Feb 09, 2012
Posts: 583

Ok thank you.
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1512
    
    5

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.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
saloni jhanwar
Ranch Hand

Joined: Feb 09, 2012
Posts: 583

Thanks Anayonkar.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java installation