Results 1 to 4 of 4
  1. #1
    sloppygecko is offline Member
    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    Default Error: could not find or load main class

    i am currently trying to create my own private server of maplestory, as i go to start java to start the server this code pops up and prevents me from starting can any1 help? full code Error: Could not find or load main class net.login.loginserver

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,518
    Rep Power
    25

    Default Re: Error: could not find or load main class

    Please post the contents of the console for when you execute the program showing the commandline, including the directory and the error message.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

    What package is the program in and what is the class's name.

    It looks like you are not using the classpath and package name correctly.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    sloppygecko is offline Member
    Join Date
    Aug 2012
    Posts
    2
    Rep Power
    0

    Default Re: Error: could not find or load main class

    Error: Could not find or load main class net.login.LoginServer
    Press any key to continue . . .


    and i am not sure what package it is in i downloaded the file MapleBlade from a link.

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

    Default Re: Error: could not find or load main class

    I would suggest asking whoever wrote it.
    Either there's a problem with the jar file, or the download didn't include everything, or there's a readme explaining how you should run the thing.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Error: Could not find or load main class HelloWorld
    By Cutejeff in forum New To Java
    Replies: 12
    Last Post: 07-19-2012, 07:14 AM
  2. Error: Could not find or load main class
    By Tybald in forum Eclipse
    Replies: 5
    Last Post: 05-28-2012, 11:22 AM
  3. Replies: 3
    Last Post: 12-09-2011, 03:51 AM
  4. Error: Could not find or load main class Ops.java
    By Javasubbu in forum New To Java
    Replies: 4
    Last Post: 10-05-2011, 10:52 PM
  5. Error: Could not find or load main class
    By ITSlave in forum New To Java
    Replies: 4
    Last Post: 09-15-2011, 09:47 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
  •