• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compiling

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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] ^
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why dont u try to deploye through weblogic !
 
smitha verghese
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi yaaar i need to know how do i deploy do let me know
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you take a look at the Ant Manual under "Ant Tasks --> Core Tasks --> javac"?
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic