I have ubuntu distro (hardy heron) and I wish to run Java EE 5 programs. I am a bigginner in java EE 5 and I do not know what are the requirements for running such programs. Can anyone suggest me what are the packages that are needed to be installed?
Yes. But personally, I would not use the package provided by the distro, I prefer downloading the app server from the vendor's site and installing it. For JBoss AS, that amounts to unzipping a zip file into a directory. By downloading from the vendor's site I get to choose the exact version to install.
Also, make sure you have a suitable JDK. The OpenJVM(?) that comes with recent distros should work fine. The old gclib (is that the right term?) version will not work. Of course, you can always install a JDK from Sun's web site (which is what I do).
roshan jose wrote:i suppose the above said packages can even run simple java i.e java concepts upto applets and TCP programming?
No. In particular, a lot of the J2EE and Swing GUI features didn't work under gcj. Maybe in a year or 2, but not yet. For now, download the linux ZIP file from java.sun.com. The best way to set it up is to make a /usr/java directory and unzip the JDK into it. That's what the RPM does, and I find it useful that I can keep several JDK's and JRE's in one easy-to-find place.
The jboss.org website normally explains the difference between the different download files. If you're running Java 5, the quick start would be to use http://downloads.sourceforge.net/jboss/jboss-5.0.0.GA.zip . There's a separate set for Java 6, and the others include the JBoss source code, which you don't need if all you want to do is run JBoss. The tar.gz files are the same as the ZIP files, except that the gz compression usually makes a slightly smaller archive.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Jan 22, 2009
For running simple java programs I used gcj, is it advisable to use this or do i have to download this also
GNU Java (gcj) was invented years ago because there was no open source Java at that time. Since Sun has open sourced their Java implementation (OpenJDK), GNU Java has become obsolete. GNU Java is a slow, incomplete and not fully compatible implementation of Java 1.4. There's really no reason anymore to use it.
If it's important to you that it's fully open source, use OpenJDK Java. That's 95% the same as Sun Java 6 - in fact, it is Sun Java 6 with the last proprietary bits replaced by open source components.
If it's important to you to have a 100% compatible version of Java, use Sun Java 6.