aspose file tools*
The moose likes Beginning Java and the fly likes Changing to JRE 6 from JRE 7 (on windows XP) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Changing to JRE 6 from JRE 7 (on windows XP)" Watch "Changing to JRE 6 from JRE 7 (on windows XP)" New topic
Author

Changing to JRE 6 from JRE 7 (on windows XP)

Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
Heya guys.

I've been Googling how to switch my Java Runtime Environment from 7 to 6 found this here forum post JavaRanch. Seems you guys are the ones to ask.

I downloaded the JRE6 right off of Oracle's site, "PATH"d the "\bins\"s as suggested in the above post and rebooted all as posted. Oddly it doesn't seem to "stick"...as soon as I check what version I am running it says JRE7.

I understand that 6 has security issues and that Firefox may have an issue with downloading or implementing JRE6, I am honestly not sure. It just strikes me as a little odd that I PATH my own registry and my computer seems to just tell me "nope" heh. As for why I want JRE6 is because I downloaded FlexSDK tools and want to play with them BADLY, FlexSDK needs JRE6 to run.

I am tempted to delete all my java files and paths and do a clean download of 6 from scratch but I figure I had better take a word or two from the experts before something mildly drastic.

Cheers and thanks in advance!
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1950
    
  28
Welcome to the ranch.

Your title says changing from 6 to 7 but your description is about changing from 7 to 6 - which is it?

As for why I want JRE6 is because I downloaded FlexSDK tools and want to play with them BADLY, FlexSDK needs JRE6 to run.

Java is supposed to be backward compatible so if FlexSDK needs JRE 6 it should work with JRE 7 installed.
Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
Maybe it's an issue with FlashDevelop.

I actually managed to get FlashDevelop and the Flex SDK to work properly on my work computer when I found that it was running JRE 6.

On this one however when I try to download FlashDevelop I get this error...

FlashDevelop 4.0.4 RTM setup
You should install Java Runtime 1.6 (Flex SDK requirement) before installing FlashDevelop. You have 1.7.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
How peculiar. Does it actually say on the website that you need Java6 and Java7 won’t do?
Installing Java6 is exactly the same as installing Java7, but don’t uninstall Java7. Simply add a PATH entry for the Java6 installation before that Java7 entry, then change that PATH back afterwards.
If that flash program needs Java6 and won’t work with Java7, that is very strange indeed. I didn’t notice anything about Java6 in that link, but I didn’t look very hard.
Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
The guilty party here is Adobe Flex SDK. Just a bit hesitant to link a site with the autodownload.

Flex SDK is required for FlashDevelop...

JRE 6 is required for Flex SDK...

My computer laughs at my feeble attempts to get 6 up and running...



Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
Also yesterday I found that my work computer was running 1.6 and had everything downloaded and running so yes I can testify that oddly this runs on 1.6 but not 1.7.

Odd...especially for Java.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

Sam McCreedy wrote:My computer laughs at my feeble attempts to get 6 up and running...

What problems do you have with it? You can have different versions of Java installed on one computer without any problems (as long as you install them in separate directories). Installing the JRE or JDK is not very hard, just download the installer, run it, Next, Next, Finish... see the installation instructions if you need to know more details.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1950
    
  28
so yes I can testify that oddly this runs on 1.6 but not 1.7.

Maybe the issue is actually with the installer, in that it's checking for 1.6 rather than for 1.6 or later.
I'd be interested to know what happens once it is installed if you install 1.7 and remove 1.6
Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
@ Jesper: I went ahead and followed your link, found the JRE6 download, agree'd to terms, selected "onlinex86", downloaded, noted that it says I already have it installed, ran the .exe, declined the Ask toolbar, let the .exe do it's thing (windows config, etc) and finished.

FlashDevelop gets the same error when I try to install.

Then I head to Javatester and it says I am running "1.7.0_07 from Oracle Corporation".

Time to dig up my old clunker laptop and see if I have this same issue. I know that one is running JRE7 so if changing it up on the laptop is easy then it's my desktop.


@ Tony: I will find out for you in two days when I return to work. I'll go ahead and update to 1.7 and give FlashDevelop a test run, especially the Flex tools and let you guys know how it goes.

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
If you have installed it, and the flash program can’t find it, try these instructions at a command line
java -version
javac -version

You will most probably have to edit your PATH environment variable so the Java6 installation is found first.
Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
Yay!...I uninstalled 1.7 and it worked!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36579
    
  16
Success
Now see what happens if you reinstall Java7.
Sam McCreedy
Greenhorn

Joined: Oct 15, 2012
Posts: 8
A-ha!...y'all nailed it.

Updated to Java 1.7 after the install and so far the program and it's tools work nicely. So most likely it was the installer as you guys figured.

Also I got to say you guys are a helpful bunch here at this ranch...I posted this same question in some other active forums and still have yet to get a response save from here. Think I'll stick around for some good info exchange as I tackle some projects, can't say Java and it's quirks are my specialty but maybe that will change a bit.

Thanks guys.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 1950
    
  28
Also I got to say you guys are a helpful bunch here at this ranch...

Glad we could help

I posted this same question in some other active forums and still have yet to get a response save from here.

Not good, you shouldn't post the same question on multiple forums. Read this BeForthrightWhenCrossPostingToOtherSites
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing to JRE 6 from JRE 7 (on windows XP)
 
Similar Threads
Java EE 6 Profile and Glassfish confusion
jdk directory structure doubt
how to get jdk
Need guidance on how to get Javac compile to execute
JVM could not be loaded on windows 7