[quote=“Demogorgon, post:5, topic:554066”][quote author=sk8rdude461 link=topic=672987.msg4500396#msg4500396 date=1449780565]
If there’s an “src” folder, then there must also be a “bin” folder (If not the person that set this client up is stupid…)
src stands for “Source” - aka, where the source code is. Source code does not get ran in Java. You must first compile it into binaries called class files (.class is the extension).
“bin” stands for - you guessed it - binaries. This is where your compiled and runnable code will be.
There is no .bat file because the previous owner used an IDE like Eclipse. (There are many, many others, search google for “Java IDE” if you don’t like eclipse)
To run the client you have two options:
-
Download and use an IDE - Recommended. There are 100000 tutorials on how to use IDEs; just a simple google search away.
-
Create the .bat file yourself.
This would be easy for someone experienced with Java and someone that knows what bat files are/how to use them. That is why I suggest you to do the first option (Also is why that is the first option).
To create the >working< bat file you need to place specific arguments into it. First being, the program you’re running (Java).
Then - each program can have it’s own arguments. In Java’s case, there’s PLENTY.
I’m not going to go in-depth over this - as that would take at least an hour just to write.
But this guy does a good explanation over the subject: DOS batch files to compile and run a Java program (and create a jar file)
[/quote]
Thanks so much for the reply! There was in fact no bin folder, so I ran the client in eclipse and it came up with errors but at least it compiled and made a bin folder. I assume the class to run would be the largest one, called “Game” with 30kb. I made a .bat for it and I get a "Exception in java thread “main” java.lang.NoClassDefFoundError: Game (wrong name: com/jagex/runescape/Game) at blah blah blah. Could you please tell me what I did wrong? Thank you :)[/quote]
One problem is; your client is packaged. So when making a bat file, you cannot refer to the main class as simply “Game” if it is in the package com.jagex.runescape. You would actually have to refer to it as com.jagex.runescape.Game.
Also, did you make sure to run the client in Eclipse first? It will automatically search for a main class, and display the ones that exist. That would help you figure out which is the actual one - instead of guessing (Though you may have to guess between the ones listed).