You are not logged in.

#1 2009-11-15 15:15:50

bastienleonard
Member
Registered: 2009-11-15
Posts: 3

How do I install Java enterprise SDK on Arch Linux?

Hello,

I'm trying to compile some samples which require Java enterprise edition. The jdk and openjdk6 packages can't compile it, and I can't find any package or PKGBUILD for the Java EE SDK.
I only found this: http://aur.archlinux.org/packages.php?ID=18067, which is for using Java EE in Eclipse, but I don't want to use Eclipse. (I'm installing it right now though, in case it would be the only way to make JEE work.)
I also tried Sun's installer but it doesn't work, so I'm still looking for the "Arch way" of installing JEE.

Thanks.

Offline

#2 2009-11-15 16:35:54

peart
Member
From: Kanuckistan
Registered: 2003-07-28
Posts: 510

Re: How do I install Java enterprise SDK on Arch Linux?

J2EE is an API, so what you are looking for is a concrete implementation of it.  Apache Tomcat is one, and so is Sun's Glassfish.  You might want to install one of those, add the appropriate jars to your build path, and see if that works.  If not, please post the exact error messages you are getting.

Offline

#3 2009-11-15 17:07:36

bastienleonard
Member
Registered: 2009-11-15
Posts: 3

Re: How do I install Java enterprise SDK on Arch Linux?

Hello,

Thanks for your answer.

I have installed JBoss from this AUR package: http://aur.archlinux.org/packages.php?ID=5293.
The samples I'm trying to compile can be found here: http://www.manning-source.com/books/pan … bossas.zip.

Here is what I encounter when compiling the chapter1:

compile-ejb-classes:
     [echo] -----> Compiling EJBs
    [javac] Compiling 2 source files to /home/bastien/Desktop/jboss/chapter1/build/chapter1-ejb
    [javac] /home/bastien/Desktop/jboss/chapter1/src/ejb/com/ejb3inaction/actionbazaar/buslogic/HelloUser.java:3: package javax.ejb does not exist
    [javac] import javax.ejb.Remote;
    [javac]                 ^
    [javac] /home/bastien/Desktop/jboss/chapter1/src/ejb/com/ejb3inaction/actionbazaar/buslogic/HelloUser.java:5: cannot find symbol
    [javac] symbol: class Remote
    [javac] @Remote
    [javac]  ^
    [javac] /home/bastien/Desktop/jboss/chapter1/src/ejb/com/ejb3inaction/actionbazaar/buslogic/HelloUserBean.java:3: package javax.ejb does not exist
    [javac] import javax.ejb.Stateless;
    [javac]                 ^
    [javac] /home/bastien/Desktop/jboss/chapter1/src/ejb/com/ejb3inaction/actionbazaar/buslogic/HelloUserBean.java:5: cannot find symbol
    [javac] symbol: class Stateless
    [javac] @Stateless
    [javac]  ^
    [javac] 4 errors

I think the Ant build files may be outdated. I'm gonna try to compile samples from JBoss' documentation.

Offline

#4 2009-11-17 20:21:08

bastienleonard
Member
Registered: 2009-11-15
Posts: 3

Re: How do I install Java enterprise SDK on Arch Linux?

Indeed it works. Thanks for your help.

Offline

Board footer

Powered by FluxBB