JBoss and Weld not importing in Eclipse

2.5k views Asked by At

I'm working through examples in a Beginning Java EE7 book, and the first example calls for me to use Weld in a simple Maven project. I've copied all the files into a Maven project in Eclipse (Kepler). But the Main.java application has an import statement that's not working: import org.jboss.weld.environment.se.Weld Eclipse is red-flagging it with the message: "The import org.jboss cannot be resolved." I went to Eclipse Marketplace and downloaded the latest JBoss bundle, which I think is supposed to include Weld, but I'm still getting the error.

I right-clicked the line and selected "Fix project setup" and was able to choose a fix that helped some of the other errors that were popping up. But all it did for this particular problem was extend the message to say "The import org.jboss.weld.environment cannot be resolved." When I try running Fix project setup again, it offers no proposals for resolution.

I've dug around in the Build Path tools, but I can't seem to figure out how to make this import work.

0

There are 0 answers