File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes packages for Java EE 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "packages for Java EE 5" Watch "packages for Java EE 5" New topic
Author

packages for Java EE 5

roshan jose
Greenhorn

Joined: Jan 22, 2009
Posts: 27


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

Joined: Oct 29, 2001
Posts: 8907
    
    8

To run a J2EE application, you must install a J2EE server.
Ubuntu has packages for both Glassfish and JBoss.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
roshan jose
Greenhorn

Joined: Jan 22, 2009
Posts: 27


So installing anything will do?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

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).


JBoss In Action
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8907
    
    8

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

Joined: Jan 22, 2009
Posts: 27
i suppose the above said packages can even run simple java i.e java concepts upto applets and TCP programming?
roshan jose
Greenhorn

Joined: Jan 22, 2009
Posts: 27
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

Joined: Jun 25, 2001
Posts: 16065
    
  21

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.
roshan jose
Greenhorn

Joined: Jan 22, 2009
Posts: 27


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

Joined: May 14, 2008
Posts: 5827
    
    7

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

Joined: Aug 16, 2005
Posts: 14150
    
  18

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: packages for Java EE 5