Results 1 to 11 of 11

Thread: Errors

  1. #1
    Johanis is offline Senior Member
    Join Date
    Oct 2010
    Posts
    139
    Rep Power
    0

    Question Errors

    I started this program at school. It was fine there but when i opened it on my own PC it gave me the following errors. Not sure how to fix it.
    init:
    deps-clean:
    Deleting directory C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\build
    clean:
    init:
    deps-jar:
    Created dir: C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\build\classes
    Created dir: C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\build\empty
    Compiling 4 source files to C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\build\classes
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Aktiwiteite.java:48: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Aktiwiteite.java:48: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Aktiwiteite.java:54: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Aktiwiteite.java:51: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Aktiwiteite.java:61: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Aktiwiteite.java:58: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:42: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:42: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:46: package javax.swing.GroupLayout does not exist
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILI NG, layout.createSequentialGroup()
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:48: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:45: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:53: package javax.swing.GroupLayout does not exist
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILI NG, layout.createSequentialGroup()
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:55: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Diere.java:52: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Logon.java:59: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Logon.java:59: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Logon.java:65: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Logon.java:62: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Logon.java:72: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Logon.java:69: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:100: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:100: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:104: package javax.swing.GroupLayout does not exist
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILI NG, layout.createSequentialGroup()
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:106: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:103: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:111: package javax.swing.GroupLayout does not exist
    .addGroup(javax.swing.GroupLayout.Alignment.TRAILI NG, layout.createSequentialGroup()
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:113: cannot find symbol
    symbol : class GroupLayout
    location: package javax.swing
    .addComponent(jLayeredPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE)
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\src\Welkom.java:110: package javax.swing.GroupLayout does not exist
    layout.createParallelGroup(javax.swing.GroupLayout .Alignment.LEADING)
    28 errors
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\nbproject\build-impl.xml:363: The following error occurred while executing this line:
    C:\Users\Johannes\Documents\IT\2012\PAT 2012\Fase 3\Wildresjava\nbproject\build-impl.xml:168: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 0 seconds)

  2. #2
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: Errors

    Java Code:
    cannot find symbol
    symbol : class GroupLayout
    This means that Java cannot access GroupLayout.class

    Did you make sure that GroupLayout is in your classpath?
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,538
    Blog Entries
    7
    Rep Power
    20

    Default Re: Errors

    The GroupLayout class only exists from version 1.6; probably the OP is running a previous Java version; and I bet the code was generated by a gui builder too.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,252
    Rep Power
    19

    Default Re: Errors

    Quote Originally Posted by JosAH View Post
    I bet the code was generated by a gui builder too.
    Where else would silly code like this come from?
    Java Code:
    .addComponent(jLayeredPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: Errors

    Quote Originally Posted by JosAH View Post
    I bet the code was generated by a gui builder too.
    Does this explain what I perceive to be strange command-line output for compiling a program?
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,252
    Rep Power
    19

    Default Re: Errors

    That's not Command Prompt / Terminal output. That's NetBeans console output.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  7. #7
    awinston is offline Student
    Join Date
    Jul 2012
    Location
    United States
    Posts
    328
    Rep Power
    3

    Default Re: Errors

    Quote Originally Posted by DarrylBurke View Post
    That's not Command Prompt / Terminal output. That's NetBeans console output.
    Okay, noted.
    "Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill

  8. #8
    Johanis is offline Senior Member
    Join Date
    Oct 2010
    Posts
    139
    Rep Power
    0

    Default Re: Errors

    Its Netbeans, and i also did the gui on netbeans. Your right, I also think its the version. What can i download to fix this problem?

  9. #9
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: Errors

    A newer JDK.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  10. #10
    Johanis is offline Senior Member
    Join Date
    Oct 2010
    Posts
    139
    Rep Power
    0

    Default Re: Errors

    Which one?

  11. #11
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default Re: Errors

    Quoting Jos:
    "The GroupLayout class only exists from version 1.6"
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Help with ERRORS
    By Neill in forum New To Java
    Replies: 1
    Last Post: 11-22-2011, 10:48 AM
  2. Many Errors After Do...While
    By jae5086 in forum New To Java
    Replies: 6
    Last Post: 04-03-2011, 07:15 PM
  3. Replies: 4
    Last Post: 01-04-2011, 12:36 AM
  4. Getting errors
    By Abbinormal in forum New To Java
    Replies: 5
    Last Post: 01-15-2010, 06:01 AM
  5. Replies: 3
    Last Post: 03-08-2009, 01:51 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
  •