Results 1 to 2 of 2
  1. #1
    lineker is offline Member
    Join Date
    Jul 2013
    Rep Power

    Default Errors at my program


    I am new not only to Maven but also to Java.
    I downloaded NetBeans IDE 7.3.1 and want to work with Maven.
    From command prompt, I selected my project as jsf, hibernate, mysql.
    When I open my project from netbeans, I see lots of errors.
    At the beginnig of my code, there are import codes as follow:

    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Table;

    But it gives error : package javax.persistence does not exist

    Why? If it is maven project and comes with Netbeans, why do I have to install new package?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Rep Power

    Default Re: Errors at my program

    How do you come to that conclusion? Its a simple missing dependency, JPA in this case. Maven can help you to manage such dependencies, but only when you learn to properly use it.

    Note that if you can't identify a dependency problem, you don't know nearly enough about Java yet to be able to use Maven.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. My program generates new errors
    By BenH in forum New To Java
    Replies: 8
    Last Post: 01-31-2012, 07:21 AM
  2. How do I fix this program (2 errors)?
    By Logik22 in forum New To Java
    Replies: 17
    Last Post: 07-17-2011, 10:04 PM
  3. Help with some errors in my program
    By kbud123 in forum Java Applets
    Replies: 5
    Last Post: 05-11-2011, 06:08 AM
  4. Replies: 4
    Last Post: 01-04-2011, 01:36 AM
  5. Errors in Program (Right Triangle)
    By SupaStudy in forum New To Java
    Replies: 3
    Last Post: 03-26-2009, 11:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts