flipping between 1.4.2_04 and 1.5

R

Roedy Green

Is there an easy way to flip back and forth between production and
beta Java?

I tried reinstalling 1.4.2_04 again, but java is still stuck on 1.5!

I have a student project description of how a flipper would work I
posted years ago.

I am getting frustrated enough by this to write one, IF there is not
some simple way to do it.
 
A

Andrew Thompson

I get a 404 on that URL Roedy,

BTW - two things surprised me..

1) I got a bog standard IE 'page not found',
I thought you would have a JGloss page set up..

2) I did my usual "I'll search for it, go to index.."
http://mindprod.com/jgloss/

Boom! I get the listing of the ...huge
jgloss directory. After several minutes
(I only have broadband..) and IE going
off for a nap, I confirm there is no
similarly named doc.

Is that intentional? I thought you might
have an 'index.htm' to point to the jgloss.html..
 
R

Roedy Green

2) I did my usual "I'll search for it, go to index.."
http://mindprod.com/jgloss/

Boom! I get the listing of the ...huge
jgloss directory. After several minutes
(I only have broadband..) and IE going
off for a nap, I confirm there is no
similarly named doc.

Is that intentional? I thought you might
have an 'index.htm' to point to the jgloss.html..

/index.html

points to

/jgloss/jgloss.html

in turn it points to

/projjvmmanager.html

Logically it too should be under /jgloss, but that means adjusting all
kinds of links, and there are about 200 such files.

See http://mindprod.com/projhtmllinkfixer.html

It is a project that would automate the fixes.
 
R

Roedy Green

Is there an easy way to flip back and forth between production and
beta Java?

Beta 1.5 seems impervious to my usual tricks to flip back and forth
fiddling with the registry.

The version of java.exe in C:\winnt\system32 seems incapable of
dealing with the varying registry settings.
 
R

Roedy Green

Could you not?..

/jgloss/index.html ->

put an index.html in every subdirectory? just to stop you from getting
a directory listing? or some other purpose?
 
J

Josef Garvi

Roedy said:
Is there an easy way to flip back and forth between production and
beta Java?

I tried reinstalling 1.4.2_04 again, but java is still stuck on 1.5!

I have a student project description of how a flipper would work I
posted years ago.

From Eclipse, you can choose what JDK to launch your project under. Works
between 1.4.2 and 1.5 beta.

I installed 1.5 beta without uninstalling 1.4.2 first. The only problem
I've seen (apart from the fact that Eclipse can't use the newest 1.5
language features, only the latest APIs) is that the applets don't work
anymore in my Mozilla.

--
Josef Garvi

"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/

new income - better environment - more food - less poverty
 
R

Roedy Green

I tried reinstalling 1.4.2_04 again, but java is still stuck on 1.5!

I have spent a few hours horsing around. I now have five techniques
documented for flipping between JVM versions, however, the Java
Control panel seems broken. 1.5 can't see the earlier versions.

Perhaps some manual registry poking will persuade it.

see http://mindprod.com/jgloss/flipping.html
 
C

Chris Uppal

Roedy said:
Beta 1.5 seems impervious to my usual tricks to flip back and forth
fiddling with the registry.

My usual trick (presumably the same trick) doesn't work either. As far as I
can see:

If the <JDK> or <JRE> version of java.exe is first on your path (or if you
execute the relevant java.exe directly) then the regsitry is ignored, and that
version will "know" which JVM to launch. Works for both 1.4.2 and 1.5.0-beta.

If the <systemdir> version of java.exe is first on your path then it seems to
be hardwired to check the registry and fail if it doesn't find "1.5" in the
usual place. I suppose that means that installing 1.5.0-beta has overwriten
the <systemdir>/java.exe with one that will only play 1.5.

I haven't tried to find out what WebStart and the Java pluggin are doing -- I
have no reason to care at this time.

-- chris
 
A

Andrew Thompson

put an index.html in every subdirectory?

No, just the huge jgloss directory
(which is all linked to, by the jgloss.html?)
..just to stop you from getting
a directory listing? or some other purpose?

No, that is it. Of course, that may
not work for you, if you need that
auto-index for stuff not otherwise linked..

Just a thought.
 
V

VisionSet

Roedy Green said:
I have spent a few hours horsing around. I now have five techniques
documented for flipping between JVM versions, however, the Java
Control panel seems broken. 1.5 can't see the earlier versions.

Perhaps some manual registry poking will persuade it.

see http://mindprod.com/jgloss/flipping.html

Have you let Sun know? They seem so much more on the ball with making life
easier for windows users these days.
 
R

Roedy Green

I haven't tried to find out what WebStart and the Java pluggin are doing -- I
have no reason to care at this time.

I have done a lot of experimenting, and I am pretty sure how it is
supposed to work. I have documented my findings in
http://mindprod.com/jgloss/flipping.html

I can successfully flip back and forth between javac and java.exe
using the path.

However, Opera is stuck on JDK 1.5. The Java control panel won't
recognize 1.4.2_04.

IE, Mozilla and Netscape won't run Java at all.

Java Web Start is stuck on 1.5 even when I start the 1.4 version.
Then it gets into its head that it needs to download 1.4, (which it
already has) and starts doing that, and then dies with a certificate
error. So I can't run an JWS any more at all!

I am getting more that a little frustrated. I am just about to erase
everything and put 1.4 on my machine and 1.5 on my partner's and kick
her off to do beta tests.

If anyone has this pair working, could you try this:

regedit /E java.reg "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft"

to dump the java portion of the registry to a file, and email it to me
so I can have a look and see if I can figure out how my registry is
corrupt.

Alternatively convert the unicode with

native2ascii -reverse -encoding 8859_1 java.reg javareg.txt

and post it for us all to look at.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top