Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Java compile error in Intellij IDEA 13.1

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java compile error in Intellij IDEA 13.1

    Hi,
    I got code base from a source and trying to build using intellij Idea 13.1. I am a .net guy and trying to set this up. Could you please help on how to resolve this.

    Information:Using javac 1.7.0_55 to compile java sources
    Information:java: Errors occurred while compiling module 'main'
    Information:Compilation completed with 100 errors and 0 warnings in 3 sec
    Information:100 errors
    Information:0 warnings
    C:\Java\\src\main\java\com\hc\rz\models\QuestionEn tity.java
    Error3, 1) java: package javax.persistence does not exist
    Error12, 2) java: cannot find symbol
    symbol: class Entity
    Error13, 2) java: cannot find symbol
    symbol: class Table


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    4,527
    My Mood
    Mellow
    Thanks
    157
    Thanked 615 Times in 602 Posts

    Default Re: Java compile error in Intellij IDEA 13.1

    Do you know anything about Java? Have you done a basic HelloWorld.java intro program or tutorial to ensure that your environment is set up correctly? Your IDE or a forum/Wiki that supports your IDE should have some basic tutorials to test that everything is set up correctly with fixes for basic errors. Run through those before compiling code you didn't write and may not understand.

    Come back and report the results of your basic tutorial work.

  3. #3
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java compile error in Intellij IDEA 13.1

    Make sure the Java SDK is installed correctly. And as the above has said, try to make the basic "Hello World" application and see how it goes. If you have done that and it worked, idk.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,237
    Thanks
    176
    Thanked 817 Times in 760 Posts
    Blog Entries
    5

    Default Re: Java compile error in Intellij IDEA 13.1

    And to add to all the above: the package javax.persistence is part of Java EE, not Java SE. You need the appropriate jar file for all libraries you use that are not part of the standard J2SE placed on the classpath.

Similar Threads

  1. Replies: 4
    Last Post: January 24th, 2013, 10:20 AM
  2. Replies: 7
    Last Post: January 24th, 2013, 09:41 AM
  3. Hibernate in IntelliJ IDEA
    By manjula in forum Java IDEs
    Replies: 0
    Last Post: May 14th, 2012, 06:54 AM
  4. Java 2D Example compile error
    By weziw in forum Java SE APIs
    Replies: 1
    Last Post: April 2nd, 2012, 07:57 AM
  5. why do so few people use intellij idea?
    By hamsterofdeath in forum Java IDEs
    Replies: 4
    Last Post: August 5th, 2010, 01:28 AM

Tags for this Thread