Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie needs help installing Jakarta Commons tools

Status
Not open for further replies.

MikeHaith

Programmer
Nov 12, 2002
18
0
0
US
I am very new to Java and I am eagerly trying to learn. I have a java web application that requires some of the Jakarta Commons tools to be installed so that I do not have to reinvent the wheel. I have downloaded the .jar files that I need, but I have no idea how to include them in my project. My environment is set up using:

JBoss 4.0.3 SP1
Eclipse 3.1.1
Java 2 Runtime 1.4.2_10
Java 2 SDK 1.4.2_10

When I try to execute the jar file I donwloaded using the command:

java -jar xyz.jar

I get the error:

Failed to load Main-Class manifest attribute from xyz.jar.

I dont know if I am supposed to be execute this jar file or copying it to a directory within JBoss?

Any help with this to point me in the right direction would be appreciated.

Mike
 
I figured it out!

For anyone else who may need to know how to add jar files to a java project if you are using eclipse:

Open eclipse
go to Project --> Properties --> Java Build Path
Select the Libraries tab
Add External JARs
Find your jar file and select it.

You will now be able to use the tools you downloaded.

Mike
 
Well done Mike. Kudos to you for figuring this out yourself.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top