[HELP] Could not load main class net.server.CreateINI

Newbie Spellweaver
Joined
Jan 6, 2013
Messages
6
Reaction score
0
Hello, I am new to server creating a Maplestory private server and I am attempting to do so in Linux. As dumb as it sounds, I have completed most of the requirements to get my server up and running, however I am encoutering this little problem.

I am using the MoopleDEV source and as mentioned above, Linux. Every time I run create_server_linux.sh I am greeted with this message:

PHP:
Error: Could not find or load main class net.server.CreateINI

I have already compiled the code and replaced the older MoopleDEV.jar with the newer one. I've already created the MySQL database for my server and have set up the connection to it.
The one thing I do not understand is why the classpath is messing up. I am sure that the net.server.CreateINI resides in the MoopleDEV.jar.

Lastly, I've already Googled my problem and came up with no solution. This is my last place that I am coming to for help.

create_server_linux.sh
PHP:
    #!/bin/sh 
    export CLASSPATH=".:dist/cryms.jar:dist/mina-core.jar:dist/slf4j-api.jar:dist/slf4j-jdk14.jar:dist/mysql-connector-java-bin.jar:dist/MoopleDEV.jar" 
    java -Xmx10m net.server.CreateINI

What am I doing wrong? Am I missing any information? Thank you for your time.
 
Shameless bump.

Look at this carefully

Code:
    #!/bin/sh 
    export CLASSPATH=".:dist/cryms.jar:dist/mina-core.jar:dist/slf4j-api.jar:dist/slf4j-jdk14.jar:dist/mysql-connector-java-bin.jar:dist/MoopleDEV.jar" 
    java -Xmx10m net.server.CreateINI

Why do u have cryms.jar & MoopleDev.jar? Ur new compiled Jar is suppose to replace the MoopleDev.jar unless u named ur db MoopleDev.
 
Upvote 0
Look at this carefully

Code:
    #!/bin/sh 
    export CLASSPATH=".:dist/cryms.jar:dist/mina-core.jar:dist/slf4j-api.jar:dist/slf4j-jdk14.jar:dist/mysql-connector-java-bin.jar:dist/MoopleDEV.jar" 
    java -Xmx10m net.server.CreateINI

Why do u have cryms.jar & MoopleDev.jar? Ur new compiled Jar is suppose to replace the MoopleDev.jar unless u named ur db MoopleDev.

Hi, thanks for the response. I removed cryms.jar and kept MoopleDEV.jar, as that is the compiled jar file I used to replace the original. I am still getting the same message.
 
Upvote 0
Hi, thanks for the response. I removed cryms.jar and kept MoopleDEV.jar, as that is the compiled jar file I used to replace the original. I am still getting the same message.


Try replacing it with this then. Like a short cut
Edit:Nvm for Windows

Code:
    #!/bin/sh 
    export CLASSPATH=".:dist/MoopleDev.jar:dist/mina-core.jar:dist/slf4j-api.jar:dist/slf4j-jdk14.jar:dist/mysql-connector-java-bin.jar"
    java -Xmx10m net.server.CreateINI

This should of worked then.
 
Last edited:
Upvote 0
jasonboi82, I am still getting the same error. :/
I really don't know what to do at this point. Would it be best to try and contact the MoogleDEV dev?
 
Upvote 0
Make sure you compiled it, then make sure you included it in your dist folder.
Base on this ( I edited it a lil ).
Code:
#!/bin/sh 
    export CLASSPATH=".=:dist/mina-core.jar:dist/slf4j-api.jar:dist/slf4j-jdk14.jar:dist/mysql-connector-java-bin.jar:dist/MoopleDEV.jar" 
    java -Xmx10m net.server.CreateINI

Compile, make sure it's named MoopleDev.jar, put it inside the dist folder.
 
Upvote 0
Back