Thread: Error when running a client

Results 1 to 8 of 8
  1. #1 Error when running a client 
    Metal Up Your Ass!!!

    Join Date
    Aug 2008
    Posts
    336
    Thanks given
    1
    Thanks received
    0
    Rep Power
    114
    Hey guys, I get this error when I run a client that DOESN'T have a J frame, yet I restored this computer less that a week a go. Its same on all three of my computers, all three have the latest JDK, Java, and have variables set up. I think JDK is causing this, but I'm not sure.It works fine for friends. Here is the error:

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: Gui
    Caused by: java.lang.ClassNotFoundException: Gui
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: Gui.  Program will exit.
    Press any key to continue . . .
    I'm sure it has a GUI.class and this client is CLOSED-source. Its for all clients I run, deltascape, ddspeced, etc.. I have two options:

    -Add a J-Frame
    -Uninstall JDK and remove variables

    I definitely won't do the second one, or at least not on this computer, since I host a server. I tried adding a J-frame but I got errors, and I couldn't think of any way to fix them.

    So can anyone help me fix this. If you could add J-frame to a client like DeltaScape and link it to me I would rep you for like 1 week straight.
     

  2. #2  
    Metal Up Your Ass!!!

    Join Date
    Aug 2008
    Posts
    336
    Thanks given
    1
    Thanks received
    0
    Rep Power
    114
    COME ON! Can someone ATLEAST help me add the JFRAME onto a client!!!!!!!!!!
     

  3. #3  
    Community Veteran


    Join Date
    Oct 2006
    Posts
    531
    Thanks given
    42
    Thanks received
    8
    Rep Power
    270
    Mate, theres something wrong in your code.
    Thanks
    -Richard
     

  4. #4  
    Metal Up Your Ass!!!

    Join Date
    Aug 2008
    Posts
    336
    Thanks given
    1
    Thanks received
    0
    Rep Power
    114
    No offence but, THIS IS WITH EVERY CLIENT WITHOUT A J FRAME, in case you haven't noticed....
     

  5. #5  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by Eurolite View Post
    No offence but, THIS IS WITH EVERY CLIENT WITHOUT A J FRAME, in case you haven't noticed....
    learn to read

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: Gui
    Caused by: java.lang.ClassNotFoundException: Gui
    How should i explain..

    1. You didnt add class Gui
    2. Your missing Gui.java
    3. u ned leik gui.java to finsh
    4. Your missing the class file Gui, Unless you add it you idiot, You get the same fucking error go back to school and learn to read then go to SU and study java
     

  6. #6  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    Quote Originally Posted by 2012 View Post
    learn to read

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: Gui
    Caused by: java.lang.ClassNotFoundException: Gui
    How should i explain..

    1. You didnt add class Gui
    2. Your missing Gui.java
    3. u ned leik gui.java to finsh
    4. Your missing the class file Gui, Unless you add it you idiot, You get the same fucking error go back to school and learn to read then go to SU and study java
    If you still don't understand.

    Get a freakin GUI.Java!


     

  7. #7  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    I think its GUI and you put Gui..
     

  8. #8  
    Registered Member
    Ares's Avatar
    Join Date
    Jan 2009
    Age
    31
    Posts
    357
    Thanks given
    1
    Thanks received
    3
    Rep Power
    177
    I get the same error except saying it can't find the client, and i have client in the correct cases and a client.java /.class.

    Edit: Ok, I fixed mine. Since it could not find it i thought to myslef, why not direct it to the folder itself and it worked. So, just before gui add
    Code:
     ./
    mine looks like this if you need a better example
    Code:
    java -Xmx512m -cp ./ ClientFrame 0 0 highmem members 32
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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