You are not logged in.
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
Offline
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
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
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
pacman -S j2sdk will give you sun's 1.5 version of SDK.
AKA uknowme
I am not your friend
Offline
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
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
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.
I ran into this type of problem myself.
Offline