Jump to content

The RuneLocus forum has been archived and does not accept new registrations.
Click here for more information, and click here to join the community on Discord.

  • 0
Sign in to follow this  
fatmess

Starter package Fixes [please read before posting]

Question

[COLOR="#FF0000"][SIZE=4]To find the error your looking for press "ctrl+f" and type it, otherwise scroll down and look for it manually[/SIZE][/COLOR]
[COLOR="#00FF00"][SIZE=4]Please use the thanks button if this has helped you[/SIZE][/COLOR]

[HR][/HR]
[COLOR="#00FFFF"][SIZE=4]Error[/SIZE][/COLOR][COLOR="#FF0000"]:[/COLOR]
[CODE]javac is not recognized as an internal or external command[/CODE]

[spoiler=open for fix]

1) Download the latest JDK from oracle [URL="http://www.oracle.com/technetwork/java/javase/downloads/index.html"]here[/URL]

2) install JDK and then reboot your laptop/computer

3) go to your environment variables

4) where it says "PATH" edit it and add the code below at the very end[CODE];C:\[COLOR="#FF0000"]Program Files[/COLOR]\Java\jdk[COLOR="#FF0000"]1.7.0_10[/COLOR]\bin\[/CODE] [COLOR="#FF0000"][U]remember this may not be the location of YOUR JAVA [/U][/COLOR] you may need to edit the bits in red

5) now click ok and restart your computer/laptop and it should be fixed
[/spoiler]


[HR][/HR]
[COLOR="#00FFFF"][SIZE=4]Error[/SIZE][/COLOR][COLOR="#FF0000"]:[/COLOR]
[CODE]Error Connecting to the server[/CODE]

[spoiler=open for fix]
make sure the ip your using is 127.0.0.1 and your port is 43594 or 43595 and then compile your server, also have the source and client in the same folder.
[/spoiler]


[HR][/HR]
[COLOR="#00FFFF"][SIZE=4]Error[/SIZE][/COLOR][COLOR="#FF0000"]:[/COLOR]
[CODE]could not find main class: server.server[/CODE]

[spoiler=open for fix]
try using the run.bat and compile.bat from another 317 server. (still working on a permanent fix)


[/spoiler]


[HR][/HR]

[COLOR="#00FFFF"][SIZE=4]Error[/SIZE][/COLOR][COLOR="#FF0000"]:[/COLOR]
[code]javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options[/code]

[spoiler=open for fix]

replace your client compile.bat with this

[code]@echo off
color 5
echo================================================
echo===========CREATED BY FATMESS===================
echo================================================


echo================================================
echo===========Runelocus client compiler============
echo================================================

echo PRESS ANY KEY TO COMPILE
pause


title Client - Compiler
javac -d bin -sourcepath src/*.java src/sign/*.java
pause[/code]


[/spoiler]

[HR][/HR]


[COLOR="#00FFFF"][SIZE=4]Error[/SIZE][/COLOR][COLOR="#FF0000"]:[/COLOR]
[code]100 errors[/code]

[spoiler=open for fix]

go into your src folder client sided and look for compile.bat,if its not there create a compiler then replace the code inside that with:

[code]@echo off
color 5
echo================================================
echo===========CREATED BY FATMESS===================
echo================================================


echo================================================
echo===========Runelocus client compiler============
echo================================================

echo PRESS ANY KEY TO COMPILE
pause

Title Compiler
"C:\[COLOR="#FF0000"]Program Files[/COLOR]\Java\j[COLOR="#FF0000"]dk1.7.0_10[/COLOR]\bin\javac.exe" *.java
pause
[/code]
[/spoiler]

[COLOR="#FF0000"]the bits in red need to be changed to the location and version of your jdk[/COLOR]

[HR][/HR]

[COLOR="#FF0000"][SIZE=4]Please post any more errors you get and il add the fixes to the list

[/SIZE][/COLOR] Edited by fatmess

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0
Hey the javac no source files problem was fixed when I used the solution but now i get 100 errors when it is done compiling. I looked on the FAQ post and it says you should check for a missed semicolon or bracket. So is there a bracket or semicolon missing from the above solution, or do i need to place a bracket or semicolon somewhere else? If it doesnt effect anything anyway then I dont care but I was just wondering, Thanks.

Share this post


Link to post
Share on other sites
  • 0
The missing bracket or colon will be in your actual Client / Source.

Look at where the error occurs (it will have a line number to look at in the file it tells you.)

If you need more help on this please start a new Help Post.

Share this post


Link to post
Share on other sites
  • 0
Hey i need some help i click log in an it says "Error Connection To Server" please help! thank you! :)

Share this post


Link to post
Share on other sites
  • 0
javac: no source files
Usage: javac <options> <source files>
use -help for a list of possible options


were an how do i enter this code?? (below)


[MENTION=7458]echo[/MENTION] off
color 5
echo================================================
echo===========CREATED BY FATMESS===================
echo================================================


echo================================================
echo===========Runelocus client compiler============
echo================================================

echo PRESS ANY KEY TO COMPILE
pause


title Client - Compiler
javac -d bin -sourcepath src/*.java src/sign/*.java
pause

Share this post


Link to post
Share on other sites
  • 0
Place that in your compiler.bat (right click the file and choose edit and replace whats in there with that)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×