This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling

 
smitha verghese
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to EJB and i have installed weblogic and as well installed ant tool.
I have developed all the necessary bean codes, when i compile
ant all to create a jar file it gives the following error.
It seems as if ejb is not installed any extra packages to b installed?
Let me know
Thanks in advance
Smitha
hw-compile:
[echo] =========================================
[echo] Compiling Lookup files
[echo] =========================================
[javac] Compiling 4 source files to C:\Lookup\build\classes
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorld.java:18: package javax.ejb does not exist
[javac] import javax.ejb.EJBObject;
[javac] ^
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorld.java:23: package javax.ejb does not exist
[javac] public interface HelloWorld extends javax.ejb.EJBObject
[javac] ^
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorldBean.java:18: package javax.ejb does not ex
[javac] import javax.ejb.SessionBean;
[javac] ^
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorldBean.java:19: package javax.ejb does not ex
[javac] import javax.ejb.SessionContext;
[javac] ^
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorldBean.java:20: package javax.ejb does not ex
[javac] import javax.ejb.CreateException;
[javac] ^
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorldBean.java:21: package javax.ejb does not ex
[javac] import javax.ejb.EJBException;
[javac] ^
[javac] C:\Lookup\src\com\examples\helloworld\ejb\HelloWorldBean.java:25: cannot resolve symbol
[javac] symbol : class SessionBean
[javac] location: class com.examples.helloworld.ejb.HelloWorldBean
[javac] public class HelloWorldBean implements SessionBean
[javac] ^
 
Fire Dawg
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to have ejb.jar file in your classpath whilecompiling ejbs.Better you get the j2ee.jar file and include it in your classpath. You can download it from sun site
 
smitha verghese
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i did download the file j2ee.jar.
May i have a clear idea on how to set the classpath? for both ant tool and j2ee.jar
Thanks
smitha
 
Graham Thorpe
Ranch Hand
Posts: 265
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why dont u try to deploye through weblogic !
 
smitha verghese
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi yaaar i need to know how do i deploy do let me know
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you take a look at the Ant Manual under "Ant Tasks --> Core Tasks --> javac"?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic