Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with Eclipse  RSS feed

 
Ruslan Salimovich
Greenhorn
Posts: 25
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on Eclipse. So I downloaded XOM library from the website http://xom.nu/ to work with XML files. Then I added the library (xom-1.2.10.jar file) to my project (clicked right button on the project, then build path --> add external archives.
After I deleted this lib from my project I got a problem: when I execute (with green button RUN) any code (also written before and new ones) I get an error: "Error: Could not find or load main class nu.xom.Info".
But if i execute a code as "Run as ---> Java Application" all is ok.
Could you please say how to solve a problem?
 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After I deleted this lib from my project...

I don't understand why you did that. Are you not using the library any more? Did you remove all the code that relied on the library?
 
Ruslan Salimovich
Greenhorn
Posts: 25
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:
After I deleted this lib from my project...

I don't understand why you did that. Are you not using the library any more? Did you remove all the code that relied on the library?


No I didnot remove all the code that relied on the library.
 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I didnot remove all the code that relied on the library.

I would expect errors in this situation. I don't know why Run As Java Application didn't produce errors.
Could you please say how to solve a problem?

If the problem is the errors, then removing the code that relies on the libraries will solve it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!