I'm making my first steps toward learning JSF. I found this interesting book called "Core JavaServer Faces Third Edition".
Trying to compile the first example, you can download the source code from: http://horstmann.com/corejsf/. When I type the following on the command-line
javac UserBean.java
I get errors:
package javax.inject does not exist
package javax.enterprise.context doe not exist
I have downloaded Java EE, Ant and GlassFish.
Here is a snap of my command-line:
C:\JSF-Tutorial\corejsf3-examples\javaee\ch01\login\src\java\com\corejsf>javac UserBean.java
UserBean.java:4: error: package javax.inject does not exist
import javax.inject.Named;
^
UserBean.java:6: error: package javax.enterprise.context does not exist
import javax.enterprise.context.SessionScoped;
^</