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.
|
|
hello, need some help i get these errors while compiling rs2hd and running the server any help ?? thank you...
that's compilePreparing...
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 . . .
this is run
thanks/.. i will rep +++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 . . .
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.
Create classpaths, there's guide in RS2 section.
Open your Build.bat and you'll see thatCode:@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
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. ]
| « Need help with an error. | [508 Hd] 1 error :S » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |