Thread: Eclipse - Main Class Error [HELP Please]

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Eclipse - Main Class Error [HELP Please] 
    Registered Member
    Join Date
    Jul 2015
    Posts
    72
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    New to coding sorry for ignorance, is probably basic but I just want a starter server and i can't seem to make a .jar file in jar maker so i've been told to use eclipse.

    However.

    When i put both my source and client in eclipse and then click

    run as 'java application' - 'server - ardi'

    then I try initialize and i get

    'error - could not find or load main class ardi.server'

    So I'm assuming I'm either clicking the wrong option and it shouldn't be server-ardi or theres a broken path somewhere that I can make it so they run together? I'm not sure.

    Can anyone help me at all?

    Pictures that might show something obvious:

    client initializer

    Attached image

    source initializer

    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member Micheal Reign's Avatar
    Join Date
    Nov 2015
    Posts
    32
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    You sure you're using the right main class?
    I'm not familiar with that source so I don't know which it is.
    Better to ask someone who knows how to use that source.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2015
    Posts
    72
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Micheal Reign View Post
    You sure you're using the right main class?
    I'm not familiar with that source so I don't know which it is.
    Better to ask someone who knows how to use that source.
    How would you know this?
    We've got the server online and ran it off hamachi as a test as it easiest.
    For JarMaker we just put in the file locations we wanted it in and the basic details and followed a little guide the creater left as best as we could.

    "To obfuscate, put the .jar in here BEFORE YOU SIGN IT.
    Go to proguard>proguard>bin>proguardgui.bat
    When it opens, in bottom right corner, load configuration.
    Go to Obfuscation/proguard and use Os-Kingdom"

    Was hard to follow but could you make any better sence of this than we could? we put the file location in the location of these notes and ran that program before clicking jar sign or whatnot but it still didn't load as a .jar file. Some guides were saying to delete all .jar files which didn't help either.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2017
    Posts
    31
    Thanks given
    9
    Thanks received
    3
    Rep Power
    11
    Just use Eclipse.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2015
    Posts
    72
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Zeriouz View Post
    Just use Eclipse.
    I tried and got a 'couldn't find or load main class' error on the initializer and the compiler broke also, never coded before and trying to use this as a starter. Found it too confusing and not a decent guide out there that matched the source and client I have. However if you know a decent guide or source of information I'm all ears
    Reply With Quote  
     

  6. #6  
    Exiles Developer


    Join Date
    May 2009
    Age
    28
    Posts
    316
    Thanks given
    55
    Thanks received
    25
    Rep Power
    86
    Add my skype: tyler.steelersfan I will help you when I have some spare time.
    Quote Originally Posted by Eazy View Post
    Quote Originally Posted by lostlegend View Post
    its not os-legacy its switched to Project-Insanity.
    And Very Much i ReCoded MEself. Check it out and u wil see ur self.
    People allways bothering with saying OS-LEGACY.. U NEVER CHECKED SERVERDONT COMPLAIN CHECK IT OUT B4 COMPLAINING
    So you switched Project-Insanity to Project-Insanity? gj
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2015
    Posts
    72
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by imTyler7 View Post
    Add my skype: tyler.steelersfan I will help you when I have some spare time.
    Sent a request, thank you very much !
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2008
    Posts
    69
    Thanks given
    32
    Thanks received
    10
    Rep Power
    6
    Right click your server folder and select Run as>Java Application and then when a list pops up look for Server, select that and press okay and it should work.

    As for the client just do the same but instead of Server look for Client.

    This is all in eclipse btw.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member
    Join Date
    Jul 2015
    Posts
    72
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by Rian View Post
    Right click your server folder and select Run as>Java Application and then when a list pops up look for Server, select that and press okay and it should work.

    As for the client just do the same but instead of Server look for Client.

    This is all in eclipse btw.
    Thank you so much! Was having problems with that source so I've changed over, gotten a bit furtherbut now stuck on quick fix build paths, hoping I can find a fix on a forum or one of the nice people that offered their help on skype comes on today Appreciate it buddy!
    Reply With Quote  
     

  11. #10  
    Banned

    Join Date
    Oct 2009
    Posts
    438
    Thanks given
    29
    Thanks received
    108
    Rep Power
    0
    add my skype: adamdehbest i'll help you after work.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 9
    Last Post: 07-26-2010, 08:17 PM
  2. Replies: 4
    Last Post: 07-19-2010, 01:24 PM
  3. Replies: 2
    Last Post: 02-04-2009, 07:46 PM
  4. How Do You Make a Pic Appear next to link
    By discocarlos55 in forum Application Development
    Replies: 4
    Last Post: 01-16-2009, 12:02 AM
  5. how do you make client to go only your ip
    By zedex ranger in forum Tutorials
    Replies: 4
    Last Post: 04-26-2008, 05:28 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
  •