Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My netbeans 6.0.1 cannot recognize package javax.ejb

 
Almas hussain
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello iam Almas from Norway, and iam new to EJB 3.0. My problem is that netbeans 6.0.1 cant recognize the package javax.ejb. I have set the envirment variabels like that

i have the sdk at C:\Sun\SDK

JAVAEE_HOME C:\Sun\SDK

JAVA_HOME C:\Programfiler\Java\jdk1.6.0_04

PATH %JAVAEE_HOME%\bin;%M2%;%Path%;%JAVA_HOME%\bin

can somebody help me, thanks!


Almas
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to add the EJB JAR file into the libraries. Right click on the libraries and add the JAR files.

If you have an enteprise project created in NetBeans, the JavaEE libraries are added automatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic