Java 1.2 emulating

Hello,

I need to make a demo for a JRE 1.2, but I have off coarse 1.4.2 and 1.5 installed on my PC. Is it possible to compile for 1.2, and run using 1.2 … or does someone know where I can still download Java 1.2 ?

Thanx,
Kenzo

well I managed to download a JDK 1.2.1 but when I try to compile something with javac it gives me a runtime error on Win 2000, and it works fine on Win 98. Is it possible that JDK 1.2.1 won’t work on win 2000?

there are options for javac to compile backwards-compatible. e.g.

javac -target 1.2

read the docs for your version of java, and there is always a page dedicated to javac (and also one for each of the other programs that comes with the JDK) that explains everything.

(and this should probably be moved to newless cluebies, or possible tools…Kev?)

Fair point :wink:

Kev

thanx … !

Didn’t know where to put it :slight_smile:

euh … here I am again … is it possible to set the compiler options in Eclipse 3.0?

sorry for all the lame questions …

Yes.

Look in the preferences or project properties, adjust “Java Compiler” prefs for “Compliance and Classfiles”