You are not logged in.
Hey guys, so I'm in the process of setting up a Runescape Privet Server, yea, i know, I'm a nerd.
Its for me and some friends to just play every once and a while, something we can do a couple times a year to remember the "Good ol days" Without actually having to be online, and having a little bit more control over the game.
I choose to go with Solex, because the server can run on Linux. I followed the tutorial HERE which showed me how to set the server up. The only reason the tutorial was necessary, is the server comes with 2 .bat files, 1 to compile if you wish to compile, and one which allows you to run, if you just want to run the server (They suggest to run, I'm assuming thats just to make it easier incase you wish you edit the source) and they had to show us how to rewrite that for Linux. I followed it, and the server is running fine. I set up my SQL database, made a user, and logged in using a Windows Vbox.
My issue is the client itself (Source code for both the server and client can be found HERE). In the tutorial he explained how to compile on Windows, so he didn't edit the .bat file, except for the use of JDK8, rather then JDK7 (Which i am using JDK8, everything with java is running fine)
Here is the compiler.bat file:
"C:/Program Files/Java/jdk1.7.0_21/bin\javac.exe" -cp lib/clientlibs.jar;lib; *.java
Here is the 1. Start Selox.bat(Which is what they named it for the client instead of run.bat, i plan to rename the .sh file once its made:
java -cp asm-all-3.3.jar;clientlibs.jar; RunClient servaddr 0.0.0.0
Basically, what my goal is, is to get this client working. I do have people who use Windows that need the Windows support, but most of us use Linux, so how exactly would i compile and then make this be able to be ran? Could it be all packaged/compiled into a .jar? If so, then how? I've never done it before, i tried to compile using Netbeans, and in all honesty, it was driving me nuts. It would never allow me to include the project, I'm assuming because there are no files which specify a Netbeans project which I'm assuming needs to be created in the projects beginning (I have no clue though)
So is there any way someone who has experience could either help me step by step, or, get it running on their system? I will need to be able to change the serveraddr from time to time though, as i will most likely just give my IP for my friends to play (I trust them).
I'm sorry this is so long, i hate doing that, but I've asked for help in over 10 areas and all they can say is that i have the wrong version of Java, when in reality, the code is just not able to be ran in Linux. So I'm going kind of nuts and hope to get this set up soon lol.
Last edited by Dyzaster (2015-03-23 04:46:49)
Offline
So from what you posted, are you putting the server address into the java command or are you using 0.0.0.0?
Knute
Offline
So from what you posted, are you putting the server address into the java command or are you using 0.0.0.0?
The server address will change monthly, I'm already hosting a site and have a domain name, I'm not planning on having another domain though. So I'm just going to use my IP address, which is dynamic and changes monthly.
So all i need to do, is figure out how to use both of those codes, in Linux, without errors, while maintaining the ability to edit the server address when necessary. And they should each be in their own .sh file in the end. I mean, the first one (For compiling) I could run as a script, as i assume i will only need it as a one time thing, but the second code needs to be in a script.
Last edited by Dyzaster (2015-03-23 05:37:55)
Offline
Alright, so as a test, what happens if you put in the ip address of your server? Does it work?
What we are trying to determine by this is to make sure that your script actually works when given the correct server address. If it does, then you can tackle the other issue.
Knute
Offline
OK so heres what i need:
"C:/Program Files/Java/jdk1.7.0_21/bin\javac.exe" -cp lib/clientlibs.jar;lib; *.java
This code here is for Windows. I need it re-written so it will work in linux, either in terminal, or as a script.
So far what i believe it should be is:
javac -classpath lib/clientlibs.jar:lib: *.java
But when i run the above command, i get this error:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
So then i add "-Xlint" to "javac -classpath lib/clientlibs.jar:lib: *.java" making it
javac -Xlint -classpath lib/clientlibs.jar:lib: *.java
Then i get the error:
warning: [path] bad path element "lib/clientlibs.jar": no such file or directory
warning: [path] bad path element "lib": no such file or directory
Followed by THIS
The error has a point, when a script points towards "lib/clientlibs.jar" That means that when in that scripts directory, there should be a lib folder, with clientlibs.jar inside of it. In the clients folder, there is no lib folder. So just to see if this would work, I added the lib folder, in the main source folder there is a clientlibs.jar, so i copied it inside lib, ran the script, and I STILL GET THIS
So what i believe to be the problem, is the script is messed up. I'm not sure. I have JDK8 set up, i ran archlinux-java unset, then archlinux-java set java-8-openjdk. The server is 100% running, i already know that for a fact. I just can't get the client itself to compile so it can run, its ability to compile is 100% unrelated to the server.
EDIT: I just set it on java-7-openjdk, and it still doesn't work, so I'm 100% I'm not using to new of a version of Java, it has to be that script lol
Last edited by Dyzaster (2015-03-23 22:43:12)
Offline