Change to your JDK version. Or just pm me tv info.
|
|
Yeah, So I'm having a small issue trying to compile, *im new to java so dont be too hard on me, this is something i really want to learn*
It says it cannot find the path specified. If anyone has teamview and wouldnt mind helping a noob out, I will very much appreciate it.
Open your compiler.bat file in your server and edit the stuff in read to your java location:
Code:@echo off :build cls "C:\Program Files\Java\jdk1.6.0_30\bin\javac.exe" -classpath deps/log4j-1.2.15.jar;deps/jython.jar;deps/xstream.jar;deps/mina.jar;deps/mysql.jar;deps/poi.jar;deps/slf4j.jar;deps/slf4j-nop.jar -d bin src\server\event\*.java src\server\model\items\*.java src\server\model\minigames\*.java src\server\model\npcs\*.java src\server\model\objects\*.java src\server\model\players\*.java src\server\model\players\skills\*.java src\server\model\players\packets\*.java src\server\model\shops\*.java src\server\net\*.java src\server\task\*.java src\server\util\*.java src\server\world\*.java src\server\util\log\*.java src\server\*.java src\server\world\map\*.java pause goto :build
Wasn't there a nice version that automatically finds the path? Would be useful, if not for compiler, since that's what only you use, then for run.bat.
Yeah, no, I mean, for compiler/run.bat. Cheapfix is to have a run.bat for each of the current versions of Java and then copypasta for (86), cause people are lazy and will not change it themselves, but pretty sure I saw a version that detects it automatically.
Try this:
Code:@echo off if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error) :compile for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe") if defined p (%p% -cp . *.java) if defined p (goto end) :error echo You do not have Java installed. Please download it at the site that is about to load. "%programfiles%\Internet Explorer\iexplore.exe" http://java.sun.com/javase/downloads/index.jsp :end echo Finished! pause exit
Oh that looks about right, throw in a goto for "program files" and should work fine! Thanks![]()
| « Pi ::givedonarpoints (Account Names With Space's) PI | [PI] 1 starter per 24 hours? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |