You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by axiez <le...@gmail.com> on 2008/12/24 14:34:07 UTC
ejb compilation without IDE
I have Apache Geronmo with Tomcat installed on windows. I have coded a simple
bean class and business interface and want to compile them without using any
IDE? I tried javac but got the compilation error "package javax.ejb does not
exist". Any suggestions?
--
View this message in context: http://www.nabble.com/ejb-compilation-without-IDE-tp21156847s134p21156847.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: ejb compilation without IDE
Posted by axiez <le...@gmail.com>.
Might be some elementary mistake by me. Anyway I copied the jar file into
Tomcat directory and compiled.
axiez wrote:
>
> I added the jar in classpath, restarted system and tried to compile. I
> still got the same compilation error. I am wondering why. I viewed the
> expanded jar file and found it had all required class files such as
> Remote, Sateless etc.
>
> Kevan Miller wrote:
>>
>>
>> On Dec 24, 2008, at 8:34 AM, axiez wrote:
>>
>>>
>>> I have Apache Geronmo with Tomcat installed on windows. I have coded
>>> a simple
>>> bean class and business interface and want to compile them without
>>> using any
>>> IDE? I tried javac but got the compilation error "package javax.ejb
>>> does not
>>> exist". Any suggestions?
>>
>> You need the Java EE EJB spec jar. If building using maven, you could
>> add the following dependency to your pom:
>>
>> <dependency>
>> <groupId>org.apache.geronimo.specs</groupId>
>> <artifactId>geronimo-ejb_3.0_spec</artifactId>
>> <scope>provided</scope>
>> </dependency>
>>
>> For plain old javac, you'll need the following jar on your classpath:
>>
>> <geronimo-home>/repository/org/apache/geronimo/specs/geronimo-
>> ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar
>>
>> --kevan
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/ejb-compilation-without-IDE-tp21159403s134p21167367.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: ejb compilation without IDE
Posted by axiez <le...@gmail.com>.
I added the jar in classpath, restarted system and tried to compile. I still
got the same compilation error. I am wondering why. I viewed the expanded
jar file and found it had all required class files such as Remote, Sateless
etc.
Kevan Miller wrote:
>
>
> On Dec 24, 2008, at 8:34 AM, axiez wrote:
>
>>
>> I have Apache Geronmo with Tomcat installed on windows. I have coded
>> a simple
>> bean class and business interface and want to compile them without
>> using any
>> IDE? I tried javac but got the compilation error "package javax.ejb
>> does not
>> exist". Any suggestions?
>
> You need the Java EE EJB spec jar. If building using maven, you could
> add the following dependency to your pom:
>
> <dependency>
> <groupId>org.apache.geronimo.specs</groupId>
> <artifactId>geronimo-ejb_3.0_spec</artifactId>
> <scope>provided</scope>
> </dependency>
>
> For plain old javac, you'll need the following jar on your classpath:
>
> <geronimo-home>/repository/org/apache/geronimo/specs/geronimo-
> ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar
>
> --kevan
>
>
>
--
View this message in context: http://www.nabble.com/ejb-compilation-without-IDE-tp21159403s134p21166670.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: ejb compilation without IDE
Posted by Kevan Miller <ke...@gmail.com>.
On Dec 24, 2008, at 8:34 AM, axiez wrote:
>
> I have Apache Geronmo with Tomcat installed on windows. I have coded
> a simple
> bean class and business interface and want to compile them without
> using any
> IDE? I tried javac but got the compilation error "package javax.ejb
> does not
> exist". Any suggestions?
You need the Java EE EJB spec jar. If building using maven, you could
add the following dependency to your pom:
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-ejb_3.0_spec</artifactId>
<scope>provided</scope>
</dependency>
For plain old javac, you'll need the following jar on your classpath:
<geronimo-home>/repository/org/apache/geronimo/specs/geronimo-
ejb_3.0_spec/1.0.1/geronimo-ejb_3.0_spec-1.0.1.jar
--kevan