“package javax.inject does not exist” error while compiling with javac in commandline

前端 未结 3 1868
攒了一身酷
攒了一身酷 2021-02-13 19:02

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 ca

3条回答
  •  死守一世寂寞
    2021-02-13 19:54

    In NetBeans IDE 8.0 it's slightly different than described above for version 7.3

    1. Right click on Libraries in Java EE your project
    2. Select Import...
    3. Choose either Java EE 6 API Library or Java EE 7 API Library depending on the version you're using.
    4. Click the Import Library button
    5. Select the library you just imported and press the Add Library button.

提交回复
热议问题