[Last Call] Learn how to a build a cloud-first strategyRegister Now


NEWBIE: Eclipse jar not "jarred"

Posted on 2006-03-22
Medium Priority
Last Modified: 2010-03-31
Dear Eclipse Experts,

I have several projects each incorporating a package.  When I use the "Export" utility (exactly the same way) to create jars and move them to another directory, some of the resulting jars are showing up with "jar" symbol which I can then look inside.  Others are showing up in the "text file" symbol, which I cannot look inside.  What's worse, one of those "text file" jars is not recognized when I try to import it elsewhere.

I'm a newbie at all this.  Any clues to what I'm doing wrong here?

Question by:BrianMc1958
  • 2

Author Comment

ID: 16259248
Addendum: When I do the "Export" it says it finished with warnings.  When I look at the warnings, they are all simple "this variable was not used" warning.  Everything compiles OK.

Accepted Solution

Manikandan Thiagarajan earned 1000 total points
ID: 16259640
>>this variable was not used

that means you are not using that variable in your program

Author Comment

ID: 16259856
I understand that.  I was just mentioning the warnings in case it might have a bearing on my larger problem.  The main problem is that other projects aren't recognizing some of my jars, and I don't know why.  I'm just guessing it might be the warnings.
LVL 10

Expert Comment

ID: 16260600
Hi BrianMc1958,

Those that are shown with the "jar" symbol will be on your buildpath.
Others simply aren't in the buildpath.

You can get the Jar symbol by putting any jar in the build path.
Go to Project Properties, select Java Build Path, go to libraries tab,
Select add jars and select and add your jar.

Once you click ok, you should be seeing your "JAR".

And don't worry about the not used warning. It will do no harm. It's only a way
eclipse uses to make sure you write clean code.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month17 days, 22 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question