Thread: Uptime tutorial?

Results 1 to 8 of 8
  1. #1 Uptime tutorial? 
    Felixia
    Guest
    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:
    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 . . .
    Does anyone know what I did wrong? (I've no idea since I'm extremely new at programming servers. )
    Reply With Quote  
     

  2. #2  
    Lord Acis
    Guest
    make a Uptime.java and paste the code into it.
    Reply With Quote  
     

  3. #3  
    Felixia
    Guest
    Quote Originally Posted by Lord Acis View Post
    make a Uptime.java and paste the code into it.
    I did.
    Reply With Quote  
     

  4. #4  
    Registered Member
    hoodlom's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    750
    Thanks given
    0
    Thanks received
    6
    Rep Power
    170
    Your file is a Java file called UpTime.java, make it a Java file called Uptime.
    Reply With Quote  
     

  5. #5  
    Felixia
    Guest
    Quote Originally Posted by hoodlom View Post
    Your file is a Java file called UpTime.java, make it a Java file called Uptime.
    I did. (I think)

    Here's a picture. Tell me if I made the file correctly or not. If I didn't then could you make the file for me as I've no clue otherwise.

    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    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
    Reply With Quote  
     

  7. #7  
    Felixia
    Guest
    Quote Originally Posted by filth jr View Post
    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
    Thanks.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Mar 2008
    Posts
    2,595
    Thanks given
    128
    Thanks received
    191
    Rep Power
    0
    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.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •