• 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

Eclipse and com.javaranch.common

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recently took a refresher course in Java after a few years of working in a MS shop. The class also served as an intro to the WSAD IDE so I'm going to use Eclipse at home.

Can someone step me through the process of importing the com.javaranch.common to Eclipse? I've tried a number of things and the results aren't what I expect. I've downloaded the zip file. What do I do from there?

Thanks!
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
John,
Welcome to JavaRanch!

Steps:
1) Create a new project
2) File -> Import
3) Select zip
4) Select highest level directory

Please post what strange results you are getting and someone can provide more specific advice.
 
John Chubick
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This image shows the result of importing the zip file into my JavaRanch project.

So, I thought maybe that build.xml file should be run to compile the code. I right clicked on the build.xml file and selected Run > Ant build.

Upon doing that I get the following from the Console:
Buildfile: /home/john/eclipse/workspace/JavaRanch/build.xml
clean:
init:
[mkdir] Created dir: /home/john/eclipse/workspace/JavaRanch/classes
[mkdir] Created dir: /home/john/eclipse/workspace/JavaRanch/testclasses
[mkdir] Created dir: /home/john/eclipse/workspace/JavaRanch/docs
[mkdir] Created dir: /home/john/eclipse/workspace/JavaRanch/docs/api
compile:
jar:
[echo] Creating/overwriting jr.jar
[jar] Building jar: /home/john/eclipse/workspace/JavaRanch/jr.jar
BUILD FAILED: /home/john/eclipse/workspace/JavaRanch/build.xml:64: /home/john/eclipse/workspace/JavaRanch/test/unit not found.
Total time: 2 seconds
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
John,
In the properties for the JavaRanch project, identify "src" and "test" as source folders.

Thanks for the screenshot. It was helpful in describing the problem.
 
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic