• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

packages for Java EE 5

 
roshan jose
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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?
 
Joe Ess
Bartender
Posts: 9313
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run a J2EE application, you must install a J2EE server.
Ubuntu has packages for both Glassfish and JBoss.
 
roshan jose
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


So installing anything will do?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Joe Ess
Bartender
Posts: 9313
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote: The old gclib (is that the right term?)


GCJ or libgcj used to be the default Java interpreter in Ubuntu. It is slow and not feature-complete.
Ubuntu has packages for both OpenJDK (openjdk-6-jdk) and the Sun JDK (sun-java6-jdk).
 
roshan jose
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i suppose the above said packages can even run simple java i.e java concepts upto applets and TCP programming?
 
roshan jose
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just visited this site

http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=645033

I dont which one to select...
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
roshan jose
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


For running simple java programs I used gcj, is it advisable to use this or do i have to download this also
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, gcj should work for simple Java apps, but I would still recommend installing the Sun JDK or OpenJDK. Both of those pass the JVM certification suite and thus behave correctly.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15448
42
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget about gcj.

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic