We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

NEWBIE: Eclipse jar not "jarred"

BrianMc1958
BrianMc1958 asked
on
Medium Priority
284 Views
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?

Thanks,
BrianMc1958
Comment
Watch Question

Author

Commented:
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.
Senior consultant
Commented:
>>this variable was not used

that means you are not using that variable in your program

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
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.

Commented:
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.
________
radarsh
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.