ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From priya pallavi <pry_pall...@yahoo.com>
Subject Re: creating .ear using ANT
Date Tue, 17 Feb 2004 20:02:56 GMT
I have installed C:\jdk\j2sdk1.4.2 and set JAVA_HOME = C:\jdk\j2sdk1.4.2,and configured Windows/Preferences/Java/Environment
variables to C:\jdk\j2sdk1.4.2 , but no use still iam getting that exception.
 


Aditya Chinni <Aditya.Chinni@Sun.COM> wrote:
Your problem and solution is written over there. Modern will work with JDK 1.3 onwards, Classic
is for JDK 1.1 and 1.2
set JAVA_HOME variable. if you decided to use only one JDK, set that as env variable and you
can safely remove that parameter itself

Aditya

priya pallavi wrote:

Hi, when iam trying to compile some java files Iam getting the followin exception [javac]
Modern compiler not found - looking for classic compiler[javac] BUILD FAILED: file:C:/WSAD_WORKSPACES/Bms/BmsEAR/META-INF/build.xml:52:
Cannot use classic compiler, as it is not available. A common solution is to set the environment
variable JAVA_HOME to your jdk directory.Iam facing problems with this problem , can any one
suggest me what i need to do Thanks PriyaVijay Prasanna <vijay@leadingc.com> wrote:Ideal
solution is store the variables with values(basically name,value pairs), ie property file
for pathnames, filenames etc and use 'loadproperties' task before any of the task.Hi Vijay
Thanks for your concern,Actually i need to do the following things1.Get the latest WEB related
code from CVS and put in a directory For ex.WebCvs -----> cvs task with command checkout2.Get
the latest EJB related code from CVS and put in a directory For ex.EjbCvs ---> "3.Compile
the code under WebCvs and put it
 in other Dir ex.WebCvsCom ----> javac task4.Compile the code under EbjCvs and put it in
other Dir ex.EjbCvsCom ----> "5.create a .war with files from WebCvsCom----> war task6.create
a .jar with files from EjbCvsCom -----> jar task7.Create a .ear with .war and .jar created
in above 2 steps(5 and 6) and put it in a dir for deployment ----> ear task.ThanksPriyaVijay
Prasanna wrote:Use loadfile or loadproperties task to get the absolutepath, & hope u r
aware of other ant tasks (EAR,WAR,JAR) and create the build xml file with these three tasks.-----Original
Message-----From: priya pallavi [ mailto:pry_pallavi@yahoo.com]Sent: Tuesday, February 17,
2004 12:15 PMTo: Ant Users ListSubject: Re: creating .ear using ANTsome one plzzz... suggest
mepriya pallaviwrote:Hello Friends,Iam working on a J2EE application called BMS.I have 3 Modules
In my application.1.BmsEAR2.BmsEJB3.BmsWebI need to create1..jar file with code from BmsEJB
Module2..war file with code from BmsWeb Module3..ear file with
 .jar and .warAs i have only one build.xml under BmsEAR Module , how can i access the other
modules using ANT script.Right now iam creatting .war by using path like C:\WSAD_WORKSPACES\Secondworkspace\BmsWeb\WebContent
for testing purpose.But i think we shouldn't use absolute path.Some one please help me how
to access the oEJB and WEB modules for creating .jar and .war respectivelyThanks In AdvancePriya.Thanks
AgainPriya---------------------------------Do you Yahoo!?Yahoo! Finance: Get your refund fast
by filing online---------------------------------Do you Yahoo!?Yahoo! Finance: Get your refund
fast by filing online---------------------------------------------------------------------To
unsubscribe, e-mail: user-unsubscribe@ant.apache.orgFor additional commands, e-mail: user-help@ant.apache.org---------------------------------Do
you Yahoo!?Yahoo! Finance: Get your refund fast by filing online---------------------------------Do
you Yahoo!?Yahoo! Finance: Get your refund fast by filing
 online  



---------------------------------
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message