LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-22-2007, 08:41 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
How to work with jars and Ant ????????????????????


Hey there!!!
Is anyone familiar working with Ant and jar files. I downloaded 2 packages jcommon and jfreechart which both of them have an ant folder with some build.xml files.
What i just want is to use the package but i am finding difficulties with compiling a demo java file. Could anyone illustrate the basics for a java programmer that hasn't worked with jar files?

Thanks very much for your time
 
Old 03-23-2007, 03:42 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
jar files are the java equivalent of dynamic loaded libraries.
ant is roughly the equivalent of make, and build.xml its "Makefile".

You may want to try using the netbeans IDE, which uses ant internally as its build command so is able to import flawlessly an existing project having its own build.xml file.
 
Old 03-23-2007, 04:54 AM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
I just installed NetBeans but i found some problem with my /etc/profile
Would you mind if ask your advice? I try to set up the PATH according to this
my /etc/profile now looks like this:
# For non-root users, add the current directory to the search path:
Quote:
if [ ! "`id -u`" = "0" ]; then
export JAVA_HOME=/home/manos/Desktop/downloads/jdk1.6.0
PATH=$JAVA_HOME/bin:$PATH
export ANT_HOME=/home/manos/Desktop/downloads/apache-ant-1.7.0
export PATH=${PATH}:${ANT_HOME}/bin
fi
Any ideas will be welcomed
Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache's Ant martian Linux - Software 4 08-14-2007 07:52 PM
How to use "ant" from J2EE SDK instead of installed ant in Fedora ? pcuongx Linux - Server 2 02-27-2007 04:45 AM
Java and Jars ? EAD Programming 6 12-31-2006 02:10 PM
problem with ant os2 Programming 1 05-20-2005 12:13 AM
Jakarta Ant?? powadha Linux - Software 3 01-19-2004 12:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration