File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes unable to resolve class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "unable to resolve class" Watch "unable to resolve class" New topic

unable to resolve class

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 376
How do I resolve this error?
What do I need to add to my pom.xml to include the required libraries?

Actually, I'm compiling this with groovy 2.0 -- is that relevant?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 376
problem solved with this line of groovy code:

In otherwords, this was not a groovy or java syntax problem or installation problem. It was a classpath/pom.xml problem. Apparently javax classes need to be explicitly downloaded. Hmmm... News to me!

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 9318

javax classes aren't always part of the JRE. This thread might help understand the difference

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: unable to resolve class
Similar Threads
This is probably obvious
Unresolved dependencies in example scripts
Eclipse IDE errors when i compile groovy program
Security in EJB
Calling java program from groovy...