make a Uptime.java and paste the code into it.
|
I've followed this tutorial: http://www.rune-server.org/showthrea...ghlight=uptime
I've completed it and then I compiled and had this error:
Does anyone know what I did wrong? (I've no idea since I'm extremely new at programming servers. )Code:Uptime.java:2: class UpTime is public, should be declared in a file named UpTime .java public class UpTime implements Runnable { ^ 1 error Press any key to continue . . .
Your file is a Java file called UpTime.java, make it a Java file called Uptime.
Change the filename to UpTime, not Uptime
It's case sensitive.
---------- Post added at 11:04 PM ---------- Previous post was at 11:02 PM ----------
BTW that's a horrible method that creates a new thread
You should do this instead:
http://www.rune-server.org/showpost....02&postcount=8
EDIT: You probably won't be able to do that. It's in ms, and frankly, you're a skiddie, you wouldn't know what to do.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |