Thread: rs2hd

Results 1 to 6 of 6
  1. #1 rs2hd 
    devildreams54
    Guest
    hello, need some help i get these errors while compiling rs2hd and running the server any help ?? thank you...

    Preparing...
    A subdirectory or file bin already exists.
    1 file(s) copied.
    1 file(s) moved.
    Compiling core...
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Compiling packet handlers...
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Compiling logging system...
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    Complete.
    Press any key to continue . . .
    that's compile

    this is run

    Exception in thread "main" java.lang.NoClassDefFoundError: com/rs2hd/Main
    Caused by: java.lang.ClassNotFoundException: com.rs2hd.Main
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: com.rs2hd.Main. Program will exit.
    Press any key to continue . . .
    thanks/.. i will rep +++
    Reply With Quote  
     

  2. #2  
    Registered Member
    Itz Matthew ♥'s Avatar
    Join Date
    Oct 2007
    Posts
    399
    Thanks given
    1
    Thanks received
    4
    Rep Power
    82
    The first is a result of it not being able to find javac to compile those cool looking files that end in .java.

    The 2nd is a result of you not compiling it yet.
    [Only registered and activated users can see links. ] -[Only registered and activated users can see links. ]




    I'm a nice black guy .
    Reply With Quote  
     

  3. #3  
    devildreams54
    Guest
    ok... so what should i do to fix these ??

    thanks
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2009
    Posts
    16
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Create classpaths, there's guide in RS2 section.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Itz Matthew ♥'s Avatar
    Join Date
    Oct 2007
    Posts
    399
    Thanks given
    1
    Thanks received
    4
    Rep Power
    82
    Quote Originally Posted by devildreams54 View Post
    ok... so what should i do to fix these ??

    thanks

    Code:
    @echo off
    title rs2hd compiler
    echo Preparing...
    mkdir bin
    cd src
    copy log4j.xml ..
    cd ..
    move log4j.xml bin/
    echo Compiling core...
    "C:\Program Files\Java\jdk1.6.0_14\bin\javac" -d bin -cp deps/jython.jar;deps/log4j-1.2.15.jar;deps/mina-core-1.1.7.jar;deps/slf4j-api-1.5.3.jar;deps/slf4j-log4j12-1.5.3.jar;xpp3-1.1.4c.jar;deps/xstream-1.3.1-20081003.103259-2.jar;deps/xpp3-1.1.4c.jar -sourcepath src src/com/rs2hd/Main.java
    echo Compiling packet handlers...
    "C:\Program Files\Java\jdk1.6.0_14\bin\javac" -d bin -cp deps/jython.jar;deps/log4j-1.2.15.jar;deps/mina-core-1.1.7.jar;deps/slf4j-api-1.5.3.jar;deps/slf4j-log4j12-1.5.3.jar;xpp3-1.1.4c.jar;deps/xstream-1.3.1-20081003.103259-2.jar;deps/xpp3-1.1.4c.jar -sourcepath src src/com/rs2hd/packethandler/*.java
    echo Compiling tools...
    "C:\Program Files\Java\jdk1.6.0_14\bin\javac" -d bin -cp deps/jython.jar;deps/log4j-1.2.15.jar;deps/mina-core-1.1.7.jar;deps/slf4j-api-1.5.3.jar;deps/slf4j-log4j12-1.5.3.jar;xpp3-1.1.4c.jar;deps/xstream-1.3.1-20081003.103259-2.jar;deps/xpp3-1.1.4c.jar -sourcepath src src/com/rs2hd/tools/*.java
    echo Compiling logging system...
    "C:\Program Files\Java\jdk1.6.0_14\bin\javac" -d bin -cp deps/jython.jar;deps/log4j-1.2.15.jar;deps/mina-core-1.1.7.jar;deps/slf4j-api-1.5.3.jar;deps/slf4j-log4j12-1.5.3.jar;xpp3-1.1.4c.jar;deps/xstream-1.3.1-20081003.103259-2.jar;deps/xpp3-1.1.4c.jar -sourcepath src src/com/rs2hd/util/log/SLF4JAppender.java
    echo Compiling classes referenced by scripts...
    "C:\Program Files\Java\jdk1.6.0_14\bin\javac" -d bin -cp deps/jython.jar;deps/log4j-1.2.15.jar;deps/mina-core-1.1.7.jar;deps/slf4j-api-1.5.3.jar;deps/slf4j-log4j12-1.5.3.jar;xpp3-1.1.4c.jar;deps/xstream-1.3.1-20081003.103259-2.jar;deps/xpp3-1.1.4c.jar -sourcepath src src/com/rs2hd/util/HelpManager.java
    echo Complete.
    pause
    Open your Build.bat and you'll see that

    replace all "C:\Program Files\Java\jdk1.6.0_14\bin\javac" with the path that goes to your javac.

    If you have the .NET Framework 2.0, you might want to try this, its a Java Environment Setter:
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ] -[Only registered and activated users can see links. ]




    I'm a nice black guy .
    Reply With Quote  
     

  6. #6  
    devildreams54
    Guest
    looks like it worked thank you so much rep ++
    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
  •