users@glassfish.java.net

RE: RE: build and clean xml

From: Sigal Shaharabani <Sigal.Shaharabani_at_Teledata-Networks.com>
Date: Mon, 12 Oct 2009 18:52:13 +0200

Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
 
Check your JRE installation, check the class path etc

________________________________

From: Eve Pokua [mailto:gorgeous65_at_msn.com]
Sent: Monday, October 12, 2009 5:13 PM
To: glassfish users GFusers
Subject: RE: build and clean xml


C:\jee\ENTERPRISE>ant
Unable to locate tools.jar. Expected to find it in C:\Program
Files\Java\jre6\li
b\tools.jar
Buildfile: build.xml
pre-init:
init-private:
init-userdir:
init-user:
init-project:
do-init:
post-init:
init-check:
-init-taskdefs:
BUILD FAILED
C:\jee\ENTERPRISE\nbproject\build-impl.xml:133: The
libs.CopyLibs.classpath p
roperty is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is
part
of NetBeans IDE installation and is usually located at
<netbeans_installation>/java<version>/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
 ant
-Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seprojec
t-c
opylibstask.jar
Total time: 0 seconds
C:\jee\ENTERPRISE>
 
I am also trying to understand this article to help me resolve the
problem -
 
http://www.rekk.de/bloggy/2008/adaptation-of-netbeans-ant-build-for-inte
gration-copylibs-issue/
 
Thanking you in advance.
 
eve
 
 

 

________________________________

Date: Mon, 12 Oct 2009 17:06:39 +0200
From: Sigal.Shaharabani_at_Teledata-Networks.com
To: users_at_glassfish.dev.java.net
Subject: RE: RE: build and clean xml


What command did you run to get this output?

________________________________

From: Eve Pokua [mailto:gorgeous65_at_msn.com]
Sent: Monday, October 12, 2009 3:17 PM
To: glassfish users GFusers
Subject: RE: build and clean xml


Sigal,
 
This' the error I get when I try to use my application from another
PC-
 
BUILD FAILED
C:\jee\KAKENTERPRISE\nbproject\build-impl.xml:133: The
libs.CopyLibs.classpath p
roperty is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is
part
of NetBeans IDE installation and is usually located at
<netbeans_installation>/java<version>/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
 ant
-Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seprojec
t-c
opylibstask.jar
 
I built and ran it from netbeans. But to work around it I have to change
something within
the build-impl.xml to stop coming out with the above errors.
 
ANy ideas, please.
 
eve

________________________________

Date: Mon, 12 Oct 2009 10:21:36 +0200
From: Sigal.Shaharabani_at_Teledata-Networks.com
To: users_at_glassfish.dev.java.net
Subject: RE: RE: build and clean xml



You don't need to copy ant

Build.xml is the ant "commands" for your project, so if you don't have
that file you can't use ant

If it's not in that directory, you're either not working in the correct
directory for the project or there's something wrong with your project

 

P please consider the environment - do you really need to print this
email?

________________________________

From: Eve Pokua [mailto:gorgeous65_at_msn.com]
Sent: Sunday, October 11, 2009 8:26 PM
To: glassfish users GFusers
Subject: RE: build and clean xml

 

Sigal
 
So to use ant, I've to copy the ant directory to the root of my
project? I thought I've to add ant home to my environmental
variables. In the command line- get to my project directory ant call
ant.
 
And it should do the job?
 
 
regards
 
eve
 

________________________________

Date: Sun, 11 Oct 2009 14:54:56 +0200
From: Sigal.Shaharabani_at_Teledata-Networks.com
To: users_at_glassfish.dev.java.net
Subject: RE: RE: build and clean xml

I don't follow your explanation

I clean, build and deploy from command line whenever I want to

 

Did you make sure you have the ant files for the project your compiling
in the directory where you executed the command? Because the error is:

C:\javaapp\ENTERPRISE>ant build
Buildfile: build.xml does not exist!
Build failed

 

P please consider the environment - do you really need to print this
email?

________________________________

From: Eve Pokua [mailto:gorgeous65_at_msn.com]
Sent: Sunday, October 11, 2009 11:56 AM
To: glassfish users GFusers
Subject: RE: build and clean xml

 

Hi,
 
Ant_home in my environmental variables together with other
java settings such as JEE-home and java-home is all set. That is
why ant reports the below error. I build, clean and deploy my
application
within netbeans but when I copy to files to other PC's I get some
errors which I will post for your convenience tomorrow. So that's why
I have to find other means to clean and build and deploy my application
on other PCs. I have read about the error googleing and it seems I have
to change some settings for my build.xml and build_impl.xml which the
ant uses to clean, build and deploy my application. I will post of this
tommorow.
 
Thanking you
 
eve
 

________________________________

Date: Sun, 11 Oct 2009 10:31:01 +0200
From: Sigal.Shaharabani_at_Teledata-Networks.com
To: users_at_glassfish.dev.java.net
Subject: RE: build and clean xml

Are you sure you have the ant files in that directory?

 

P please consider the environment - do you really need to print this
email?

________________________________

From: Eve Pokua [mailto:gorgeous65_at_msn.com]
Sent: Wednesday, October 07, 2009 5:16 PM
To: glassfish users GFusers
Subject: RE: build and clean xml

 

Hello,
 
Ant
 
C:\glassfishv3\ant\bin;
C:\glassfishv3\ant;
 
is added to my path and I thought it should work but I get the following
error:
 
C:\javaapp\ENTERPRISE>ant build
Buildfile: build.xml does not exist!
Build failed
C:\javaapp\ENTERPRISE>ant
Buildfile: build.xml does not exist!
Build failed
C:\java\ENTERPRISE>asadmin clean
Unknown command: clean
Command clean failed.
C:\javaapp\ENTERPRISE>asadmin build
Unknown command: build
Command build failed.
C:\javaapp\ENTERPRISE>ant deploy
Buildfile: build.xml does not exist!
Build failed
C:\javaapp\ENTERPRISE>ant
Buildfile: build.xml does not exist!
Build failed
C:\javaapp\ENTERPRISE>ant
Buildfile: build.xml does not exist!
Build failed
C:\javaapp\ENTERPRISE>

 

________________________________

From: gorgeous65_at_msn.com
To: users_at_glassfish.dev.java.net
Date: Wed, 7 Oct 2009 14:13:22 +0100
Subject: build and clean xml

Hello everyone,
 
I am having to clean and build, deploy and ran my applications
without having to use netbeans. Is there any website
refering to this so I can learn to build my own build.xml or
should I just copy the build.xml and the dir bp-project that
comes with the tutorial?
 
Thanking you in advance
 
eve

________________________________

View your other email accounts from your Hotmail inbox. Add them now.
<http://clk.atdmt.com/UKM/go/167688463/direct/01/>

________________________________

View your other email accounts from your Hotmail inbox. Add them now.
<http://clk.atdmt.com/UKM/go/167688463/direct/01/>

 

________________________________

New! Receive and respond to mail from other email accounts from within
Hotmail Find out how. <http://clk.atdmt.com/UKM/go/167688463/direct/01/>


 

________________________________

Use Hotmail to send and receive mail from your different email accounts.
Find out how. <http://clk.atdmt.com/UKM/go/167688463/direct/01/>


________________________________

Use Hotmail to send and receive mail from your different email accounts.
Find out how. <http://clk.atdmt.com/UKM/go/167688463/direct/01/>

________________________________

Add other email accounts to Hotmail in 3 easy steps. Find out how.
<http://clk.atdmt.com/UKM/go/167688463/direct/01/>