• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

.jar and importing basics

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have been creating new projects and have created simple java programs in eclipse. Now I wanted to import an external .jar(.zip) file. I created a new project and right clicked > import > Archive file >Browse > select archive file and press finish. This imports the .jar file. However the .jar file is imported under the project name and i can't see any .java or .class files.

When I try and run,,,,,,it dosen't execute.

Can somebody give me the basics of jar file and how to execute it in eclipse?

Thanks in advance
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you worked this out? It seems a long time since you posted. I haven't been able to go onto the Ranch website for a few weeks; have been too busy.

If I remember correctly in Eclipse,
  • Look in the left-hand pane called "package"
  • Right-click the name of the project you are interested in
  • Click "properties," usually at the bottom of the list.
  • Click "Java build path"
  • Click the "libraries" tab.
  • Click "add external jars"
  • Using the "browse" option (or otherwise) find the .jar you need.
  • Highlight the .jar you want, click OK
  • OK again
  • All done
  •  
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic