Doesn't batch need the location of your jre?
|
I know the main class to my client is Client, so I created a batch file with this inside
and I get this errorCode:@echo off java Client pause
Error: Could not find or load main class Client
Press any key to continue . . .
Seems rather silly. Hopefully its an dumb error on my end.
Thanks, I know Eclipse works BTW. Just want to use batch.
Doesn't batch need the location of your jre?
If you use eclipse you prob don't have a bin folder, you'd need one if you are going to use batch files. Make bin folder and put all class files into it. Then add "-cp bin; " between Java and client in your batch file
Seems like your Client.class do not have a main function inside it.
Are you sure that is what you run with your eclipse and not another class file?
if your client.class is within a package (directory) you need to call like this:
java org.runescape.Client
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |