You are not logged in.

#1 2004-11-24 17:14:33

arch_newb
Member
From: Canada
Registered: 2004-04-27
Posts: 24

Installing Sun's J2SDK 1.4.2

Hi all,
tonight I will be trying to install Sun's J2SDK 1.4.2 (j2sdk-1_4_2_04-nb-3_6-bin-linux http://java.sun.com/j2se/1.4.2/download-netbeans.html ) and I was wondering if someone could share their experiences with me? Any advice on what directories to put the files in, what sym links to make and where to put them etc...
Thanks in advance.
Arch_Newb  smile

Offline

#2 2004-11-24 17:39:47

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 797

Re: Installing Sun's J2SDK 1.4.2

http://www.theregister.co.uk/2004/11/24 … wser_vuln/

I'm using 1.5 JRE (/var/cache/pacman/pkg/j2re-1.5.0-1.pkg.tar.gz), perhaps you should look for a 1.5 SDK?

Offline

#3 2004-11-24 18:29:58

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Installing Sun's J2SDK 1.4.2

why not just install the arch package or do you need 1.4.2 specifically?

if you need to have 1.4.2 you could browse the archive of the CVS for the old 1.4.2 PKGBUILD and use abs to make an old one and install it with pacman.


AKA uknowme

I am not your friend

Offline

#4 2004-11-24 18:31:12

arch_newb
Member
From: Canada
Registered: 2004-04-27
Posts: 24

Re: Installing Sun's J2SDK 1.4.2

Hi vacant,

I'm using 1.5 JRE (/var/cache/pacman/pkg/j2re-1.5.0-1.pkg.tar.gz), perhaps you should look for a 1.5 SDK?

I wanted to use j2sdk for java developement for a course I am taking. I'm not familiar with JRE. What does it allow U to do? What are the differences between it and J2SDK?

Cheers
Arch_Newb

Offline

#5 2004-11-24 18:33:26

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Installing Sun's J2SDK 1.4.2

pacman -S j2sdk will give you sun's 1.5 version of SDK.


AKA uknowme

I am not your friend

Offline

#6 2004-11-24 18:58:22

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Installing Sun's J2SDK 1.4.2

arch_newb wrote:

I wanted to use j2sdk for java developement for a course I am taking. I'm not familiar with JRE. What does it allow U to do? What are the differences between it and J2SDK?

JRE is Java Runtime Environment. In a nutshell, it allows you to run Java Programs. J2SDK Java 2 Software Developer's Kit (aka JDK: Java Developer's Kit). In its nutshell, it allows you to write/create/compile Java programs.  If you want to write Java, you use the SDK.  In actuallity, the Java SDK is a superset of the JRE; if you have the JDK installed, you have JRE installed.

I would do as Sarah31 suggests and 'pacman -S j2sdk' THis will install Java 5 (aka Tiger, aka Java 1.5, aka The Java with way too many names). Java five is backwards compatible with Java 1.4.2, but has a huge bunch of goodies that make it a better programming language.

However, if you need to do it for Java 1.4.2 for school assignments or business purposes or such, you can do the following:

javac -target 1.4 -source 1.4  file.java

instead of javac file.java, which compiles for Java 5 by default.  If you like, you could put

alias javac='javac -target1.4 -source 1.4'

in your .bashrc so it acts like the 1.4 Java compiler all the time. You don't get to use the impressive new Java 5 features though, but if you're just learning, you may not want to yet.

HTH

Dusty

Offline

#7 2004-11-24 19:57:49

arch_newb
Member
From: Canada
Registered: 2004-04-27
Posts: 24

Re: Installing Sun's J2SDK 1.4.2

Thanks Dusty.
That clears everything up. I will try that javac trick and get back to U if I have any problems.
Thanks again.
Arch_Newb

Offline

#8 2004-11-26 22:35:14

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Installing Sun's J2SDK 1.4.2

It's cool to develop for java 1.4 using the 1.5 jdk but be careful...  Java 1.5 has some new classes that aren't available in the java 1.4 runtime.  So, for example, if you turn in some code that uses an xml related class that's in 1.5 but your professor tries to run it on jdk 1.4 without the jar containing that xml class, they'll get a big fat class not found exception instead of your otherwise perfect code.  smile 

I ran into this type of problem myself.

Offline

Board footer

Powered by FluxBB