try using eclipse
|
|
Hello guys,
Kinda new at this sorta stuff, was looking into creating a RSPS (As we all are) I have spent hours, trying to work out why my client won't load, and keeps throwing errors at me... please bare in mind I am new to this.
So I'm currently using Eclipse IDE. I was sort of following a guide from Youtube but wasn't very clear.
I can't compile it; Code is as follows: - Client Side -
Compiler:
@[Only registered and activated users can see links. ] off
Title Client Compiler
"C:\Program Files\Java\jdk1.8.0_231\bin\javac.exe" *.java
pause
Run:
@[Only registered and activated users can see links. ] off
Title Client Running
cd ./
"C:\Program Files\Java\jdk1.7.0_09\bin\java.exe" -Xmx500m Gui 30 0 lowmem members 32
exit
-Server Side -
Compiler:
@[Only registered and activated users can see links. ] off
Title Server Compiler
"C:\Program Files\Java\jdk1.8.0_231\bin\javac.exe" -classpath deps/log4j-1.2.15.jar;deps/jython.jar;deps/xstream.jar;deps/mina.jar;deps/mysql.jar;deps/poi.jar;deps/slf4j.jar;deps/slf4j-nop.jar -d bin src\server\event\*.java src\server\model\items\*.java src\server\model\minigames\*.java src\server\model\npcs\*.java src\server\model\objects\*.java src\server\model\players\*.java src\server\model\players\skills\*.java src\server\model\players\packets\*.java src\server\model\shops\*.java src\server\net\*.java src\server\task\*.java src\server\util\*.java src\server\world\*.java src\server\util\log\*.java src\server\*.java src\server\world\map\*.java
pause
Run:
@[Only registered and activated users can see links. ] off
title Acheron Running
:run
CLS
"C:\Program Files\Java\jdk1.7.0_09\bin\java.exe" -Xmx1000m -cp bin;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server
goto run
pause
I have a feeling you are going to say change the JDK version in the Run.BAT to the correct versions, I did try this but didn't get anywhere. so put it back the way i had it before. (Unchanged from download)
When I use the ---- Run as > Java Application > Server - Server I get this code;
Code is as Follows:
Loaded clipmap in 23ms.
[29/12/19 23:38]: Launching Acheron - Maxime
[29/12/19 23:38]: Exception in thread "main" [29/12/19 23:38]: java.net.BindException: Address already in use: bind
[29/12/19 23:38]: at sun.nio.ch.Net.bind0(Native Method)
[29/12/19 23:38]: at sun.nio.ch.Net.bind(Net.java:433)
[29/12/19 23:38]: at sun.nio.ch.Net.bind(Net.java:425)
[29/12/19 23:38]: at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSock etChannelImpl.java:223)
[29/12/19 23:38]: at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAd aptor.java:74)
[29/12/19 23:38]: at org.apache.mina.transport.socket.nio.SocketAccepto r.registerNew(SocketAcceptor.java:363)
[29/12/19 23:38]: at org.apache.mina.transport.socket.nio.SocketAccepto r.access$800(SocketAcceptor.java:55)
[29/12/19 23:38]: at org.apache.mina.transport.socket.nio.SocketAccepto r$Worker.run(SocketAcceptor.java:222)
[29/12/19 23:38]: at org.apache.mina.util.NamePreservingRunnable.run(Na mePreservingRunnable.java:51)
[29/12/19 23:38]: at java.lang.Thread.run(Thread.java:748)
When I run the Client alone, I get this code;
Code is as Follows:
Acheron is loading..
java.io.FileNotFoundException: C:\acheron.cache\Maps\mapConfig.txt (The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java: 195)
at java.io.FileInputStream.<init>(FileInputStream.jav a:138)
at java.io.FileInputStream.<init>(FileInputStream.jav a:93)
at java.io.FileReader.<init>(FileReader.java:58)
at client.setNewMaps(client.java:134)
at client.startUp(client.java:9377)
at RSApplet.run(RSApplet.java:34)
at client.run(client.java:6280)
at java.lang.Thread.run(Thread.java:748)
java.io.FileNotFoundException: [Only registered and activated users can see links. ]
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:423)
at sun.net.www.protocol.http.HttpURLConnection$10.run (HttpURLConnection.java:1950)
at sun.net.www.protocol.http.HttpURLConnection$10.run (HttpURLConnection.java:1945)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.[Only registered and activated users can see links. ]
at sun.net.[Only registered and activated users can see links. ]
at sun.net.[Only registered and activated users can see links. ]
at sun.net.[Only registered and activated users can see links. ]
at Update.downloadFile(Update.java:110)
at Update.<init>(Update.java:27)
at client.streamLoaderForName(client.java:4952)
at client.startUp(client.java:9387)
at RSApplet.run(RSApplet.java:34)
at client.run(client.java:6280)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.FileNotFoundException: [Only registered and activated users can see links. ]
at sun.net.[Only registered and activated users can see links. ]
at sun.net.[Only registered and activated users can see links. ]
at sun.net.[Only registered and activated users can see links. ]
at java.net.URLConnection.getHeaderFieldLong(URLConne ction.java:629)
at java.net.URLConnection.getContentLengthLong(URLCon nection.java:501)
at java.net.URLConnection.getContentLength(URLConnect ion.java:485)
at sun.net.[Only registered and activated users can see links. ]
at Update.downloadFile(Update.java:105)
... 6 more
error
I understand I'm a new poster, but am genuinely serious about getting this up and running, I have a small idea about code, am watching and reading as much as possible. I have created enviromental variables, and java paths.
As a new person I am trying, Just need a little guidance. What am i doing wrong? Should the Run.BAT's be the JRE? not JDK? what has gone wrong here?
Just want to say a quick thank you in advance! I've seen some of your guys work! I admire your knowledge!
try using eclipse
Your server error is caused by another server running on the same port. To fix it, kill any .bat files you have opened, close eclipse and kill all the java processes in task manager.
For the client error, it's looking for a file called mapConfigs, but cannot find it. Not sure what caused this error, since this is not a common error in 503+ clients (you're using a 317 I believe?). You should repost your thread in the correct section here: [Only registered and activated users can see links. ]
| « [634] (Absolutely useless) load balancing | Connecting Client to Server » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |