File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes compile ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "compile ejb" Watch "compile ejb" New topic
Author

compile ejb

zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 403
hello
i am now studying j2eetutorial from sun,in this book,it always compile the ejb by the ant tool,i don't know why,is it necessary?because i feel difficult to write the "build.xml" file.
question 1:can i use "javac" to compile the ejb,i think
it's possible.
question 2:how can i master the "build.xml",where can i
get the tutorial that help me to learn it?
THANK YOU IN ADVANCE!
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Yes, you can use javac.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
le taylom
Ranch Hand

Joined: Dec 01, 2000
Posts: 44
Y don't you take a look at the ant site, download ant from there and then read the docs to see some examples of how the build.xml is set up?
It is very intuitive once you have done your first few. Start off with some simple builds first.
You can use javac to compile your ejb source files. Then use something like the ejb compiler (the ant docs show you how to do this) to get your ejb's ready for deployment.
T
http://jakarta.apache.org/ant/index.html
Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
I never used the ant build tool, just plain javac works for me. Make sure you compile the remote interface first, then set the classpath to the current directory by typing:
set classpath=%classpath%;. (do not forget the '.' in the end)
on the command prompt. Then you compile your home interface and your Bean class.


SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14456
    
    7

Do yourself a favor. Learn Ant - it's not hard. All javac does is the compile part. Ant will run javac plus maintain your project directory structure, build jar, war, and ear files, and a lot more.
Ant projects are not OS-dependent like makefiles, the language isn't cryptic like Unix shell scripts nor brain-dead like Windows/DOS batchfiles.


Customer surveys are for companies who didn't pay proper attention to begin with.
zb cong
Ranch Hand

Joined: Jan 14, 2002
Posts: 403
thanks for all of your recommendations,i will try my best!
 
I agree. Here's the link: http://jrebel.com/download
 
subject: compile ejb
 
Similar Threads
Problems with CVS
problem in packaging and deploying ejp in app server
jboss config\security.properties not found
Building ejb jar file
compiling ejb