• 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 import problem..mystery (code included)

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, sorry about broken english.

I have tried to make NanoXML work on Ecplipse without success.
This is what I have tried do so far step-by-step:

1. I create new project (file-new-java project) and name it for example as TEST
then I select Add External JARs and I select nanoxml-2.2.1.jar

2. I create a class called DumpXML(it's from nanoxml tutorial)

3. Then Eclipse says "The Import net cannot be resolved"

Why it cannot be resolved is a mystery to me, please help me.

Can you describe how I can configure it on Eclipse?
please step by step. thanks.


Code is below if it helps.

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the Package Explorer in Eclipse, do you see the library listed (possibly under "Referenced Libraries")? If not, try adding it again: select Project / Properties / Java Build Path / Libraries and add the JAR again with "Add External JARs...".

If you click open the library in the Package Explorer, you can see what packages are inside the JAR file. Is there a package net.n3.nanoxml, or does it have a different name? Maybe, if the name is different, the tutorial you're following is for an older version of the library you're using, and they've renamed the package to something else.
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since this seems to be an Eclipse issue, I think it would fit better in our IDE forum. I'll move it over there.
 
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic