How do I install java 1.4 on ubuntu 11.0?
When I type java -version, it lists out packages from java 6 and 7. On the sun website I can only see solaris installers for 1.4.2.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
For historical reasons only the OpenJDK is immediately available through the package system.
If you need an elder version of Sun Java (bought by Oracle), you need to download it from http://www.oracle.com/technetwork/java/archive-139210.html, unpack it yourself, and update your $PATH to point to it. Possibly also your $JAVA_HOME for some tooling.
Try the Oracle web site. It has every update from Java 1.1 and later. I use the tar.gz rather than the RPM.
Converting the code to be Java 7 best practices is a big job, but just getting it to compile in Java 7 should be much simpler. e.g. you can't have variables/fields called
enum Some IDEs e.g. IntelliJ have migration tools to help you do both.
If you want to have hard control over versions of packages I recommend considering working with Gentoo. It may be daunting or even intimidating, but the package manager system gives you a LOT of control over specific versions. Working with Ubuntu over the years I have found it to be very challenging. I still have had no luck using an earlier version of Amarok in ubuntu.