Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Installing an old version of Java

Thread view: 
stud1980@hotmail.com - 19 Apr 2007 19:54 GMT
Hi,
I already installed the newest versions of java, which in my case
would be JDK/JRE 1.6.0.
But I'm in a little bit of a problem now, because I need to run a
program that does not support java 1.5+
I have tried installing j2re1.4.2 but my system is still stuck on the
1.6 version. I changed the environment variables in WinXP to point at
the old version, but it did not help.
Maybe there is some other way to do this. After all it's only this
program (ESC/Java) that needs the older version.
/Sam
Joshua Cranmer - 19 Apr 2007 22:25 GMT
> Hi,
> I already installed the newest versions of java, which in my case
> would be JDK/JRE 1.6.0.
> But I'm in a little bit of a problem now, because I need to run a
> program that does not support java 1.5+
A program does not support Java 1.5+? All Java bytecode is
backwards-compatible, and the source code is almost backwards compatible
(there's an interesting nuance with try/finally that prevents it from
being totally backwards-compatible).

> I have tried installing j2re1.4.2 but my system is still stuck on the
> 1.6 version. I changed the environment variables in WinXP to point at
> the old version, but it did not help.
> Maybe there is some other way to do this. After all it's only this
> program (ESC/Java) that needs the older version.
> /Sam

What you really meant to say was that the program is only capable of
parsing/checking pre-Java 1.5 code; if you don't use the new features of
Java 1.5 (and compile with -source 1.4 option), then it shouldn't be a
problem using Java 6.
stud1980@hotmail.com - 20 Apr 2007 02:17 GMT
On Apr 19, 11:25 pm, Joshua Cranmer <Pidgeo...@epenguin.zzn.com>
wrote:
> stud1...@hotmail.com wrote:
> > Hi,
[quoted text clipped - 19 lines]
> Java 1.5 (and compile with -source 1.4 option), then it shouldn't be a
> problem using Java 6.

Ok some semantics was wrong in my first post... but the facts still
stands. The program that I want to run is ESC/Java and it only
executes with Java 1.4
And when I make my own code I still want to compile it in java 1.5 or
1.6 so how do I do this?
Andrew Thompson - 20 Apr 2007 02:46 GMT
..
>...The program that I want to run is ESC/Java

What does that mean?

>..and it only executes with Java 1.4

Why?

>And when I make my own code I still want to compile it in java 1.5 or
>1.6 so how do I do this?

It's ceratinly possible, but I could not be
bothered describing how until you convince
me that your claims are accurate.

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.