Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse import problem..mystery (code included)

 
Maria Sachhause
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • 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.

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15216
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12098
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic