RuneScape 2 Development > Server Help

ALL COMPILER/COMPILING RELATED QUESTIONS GO HERE

Pages: <<< (181/323) >>>

moparscape5399:

Ok, so i just got a new computer yesterday, a windows 7 acer, so when i click run on my server source and its a 317 it says javac is not recognized as an internal or external command, so yeah i need help so i can make another RSPS, this is probably a common problem considering my computer is brand new, but please help me solve this problem. Thanks guys!   :D

and yes i have used a various amount of other sources and the current one i want to use now is naderzpk


dwarvenknight:

I know when you get 100 errors you forgot a } but I can't find where it should go. Here is my error.


--- Code: ---                                 ^
client.java:8320: ';' expected
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){
                                    ^
client.java:8320: illegal start of type
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){
                                                  ^
client.java:8320: <identifier> expected
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){
                                                   ^
client.java:8320: ';' expected
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){
                                                     ^
client.java:8320: <identifier> expected
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){
                                                                           ^
client.java:8320: illegal start of type
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){
                                                                            ^
client.java:8320: ';' expected
if(command.startsWith("onpickup") && playerRights > 0 || command.startsWith("pic
kupon") && playerRights > 0){

       ^
client.java:8324: illegal start of type
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
^
client.java:8324: <identifier> expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                     ^
client.java:8324: ';' expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                      ^
client.java:8324: illegal start of type
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                 ^
client.java:8324: <identifier> expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                  ^
client.java:8324: ';' expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                     ^
client.java:8324: illegal start of type
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                                   ^
client.java:8324: <identifier> expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                                    ^
client.java:8324: ';' expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                                      ^
client.java:8324: <identifier> expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                                                            ^
client.java:8324: illegal start of type
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){
                                                                             ^
client.java:8324: ';' expected
if(command.startsWith("offpickup") && playerRights > 0 || command.startsWith("pi
ckupoff") && playerRights > 0){

         ^
client.java:8328: illegal start of type
if(command.startsWith("spec") && playerRights > 2){
^
client.java:8328: <identifier> expected
if(command.startsWith("spec") && playerRights > 2){
                     ^
client.java:8328: ';' expected
if(command.startsWith("spec") && playerRights > 2){
                      ^
client.java:8328: illegal start of type
if(command.startsWith("spec") && playerRights > 2){
                            ^
client.java:8328: <identifier> expected
if(command.startsWith("spec") && playerRights > 2){
                             ^
client.java:8328: ';' expected
if(command.startsWith("spec") && playerRights > 2){
                                ^
client.java:8328: illegal start of type
if(command.startsWith("spec") && playerRights > 2){
                                              ^
client.java:8328: <identifier> expected
if(command.startsWith("spec") && playerRights > 2){
                                               ^
client.java:8328: ';' expected
if(command.startsWith("spec") && playerRights > 2){
                                                 ^
client.java:8332: illegal start of type
if(command.startsWith("mypos") && playerRights > 0){
^
client.java:8332: <identifier> expected
if(command.startsWith("mypos") && playerRights > 0){
                     ^
client.java:8332: ';' expected
if(command.startsWith("mypos") && playerRights > 0){
                      ^
client.java:8332: illegal start of type
if(command.startsWith("mypos") && playerRights > 0){
                             ^
client.java:8332: <identifier> expected
if(command.startsWith("mypos") && playerRights > 0){
                              ^
client.java:8332: ';' expected
if(command.startsWith("mypos") && playerRights > 0){
                                 ^
client.java:8332: illegal start of type
if(command.startsWith("mypos") && playerRights > 0){
                                               ^
client.java:8332: <identifier> expected
if(command.startsWith("mypos") && playerRights > 0){
                                                ^
client.java:8332: ';' expected
if(command.startsWith("mypos") && playerRights > 0){
                                                  ^
client.java:8335: illegal start of type
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
^
client.java:8335: <identifier> expected
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                     ^
client.java:8335: ';' expected
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                      ^
client.java:8335: illegal start of type
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                            ^
client.java:8335: <identifier> expected
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                             ^
client.java:8335: ';' expected
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                                ^
client.java:8335: illegal start of type
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                                           ^
client.java:8335: illegal start of type
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                                                             ^
client.java:8335: ';' expected
if(command.startsWith("hail") && playerName.equalsIgnoreCase("wolf")){
                                                                    ^
client.java:8338: illegal start of type
                        if (command.startsWith("update") && (command.length() >
7)
                        ^
client.java:8338: <identifier> expected
                        if (command.startsWith("update") && (command.length() >
7)
                                              ^
client.java:8338: ';' expected
                        if (command.startsWith("update") && (command.length() >
7)
                                               ^
client.java:8338: illegal start of type
                        if (command.startsWith("update") && (command.length() >
7)
                                                       ^
client.java:8338: <identifier> expected
                        if (command.startsWith("update") && (command.length() >
7)
                                                        ^
client.java:8338: <identifier> expected
                        if (command.startsWith("update") && (command.length() >
7)
                                                                           ^
client.java:8338: ';' expected
                        if (command.startsWith("update") && (command.length() >
7)
                                                                            ^
client.java:8338: illegal start of type
                        if (command.startsWith("update") && (command.length() >
7)
                                                                              ^
client.java:8338: <identifier> expected
                        if (command.startsWith("update") && (command.length() >
7)
                                                                               ^

client.java:8338: ';' expected
                        if (command.startsWith("update") && (command.length() >
7)

 ^
client.java:8339: illegal start of type
                                         && playerName.equalsIgnoreCase("Wolf"))
{
                                         ^
client.java:8339: ';' expected
                                         && playerName.equalsIgnoreCase("Wolf"))
{
                                                      ^
client.java:8339: invalid method declaration; return type required
                                         && playerName.equalsIgnoreCase("Wolf"))
{
                                                       ^
client.java:8339: illegal start of type
                                         && playerName.equalsIgnoreCase("Wolf"))
{
                                                                        ^
client.java:8339: ';' expected
                                         && playerName.equalsIgnoreCase("Wolf"))
{
                                                                               ^

client.java:8346: illegal start of type
if(command.startsWith("pnpc") && playerRights >= 2){
^
client.java:8346: <identifier> expected
if(command.startsWith("pnpc") && playerRights >= 2){
                     ^
client.java:8346: ';' expected
if(command.startsWith("pnpc") && playerRights >= 2){
                      ^
client.java:8346: illegal start of type
if(command.startsWith("pnpc") && playerRights >= 2){
                            ^
client.java:8346: <identifier> expected
if(command.startsWith("pnpc") && playerRights >= 2){
                             ^
client.java:8346: ';' expected
if(command.startsWith("pnpc") && playerRights >= 2){
                                ^
client.java:8346: illegal start of type
if(command.startsWith("pnpc") && playerRights >= 2){
                                              ^
client.java:8346: <identifier> expected
if(command.startsWith("pnpc") && playerRights >= 2){
                                                ^
client.java:8346: ';' expected
if(command.startsWith("pnpc") && playerRights >= 2){
                                                  ^
client.java:8356: illegal start of type
if(command.startsWith("unpc") && playerRights >= 2){
^
client.java:8356: <identifier> expected
if(command.startsWith("unpc") && playerRights >= 2){
                     ^
client.java:8356: ';' expected
if(command.startsWith("unpc") && playerRights >= 2){
                      ^
client.java:8356: illegal start of type
if(command.startsWith("unpc") && playerRights >= 2){
                            ^
client.java:8356: <identifier> expected
if(command.startsWith("unpc") && playerRights >= 2){
                             ^
client.java:8356: ';' expected
if(command.startsWith("unpc") && playerRights >= 2){
                                ^
client.java:8356: illegal start of type
if(command.startsWith("unpc") && playerRights >= 2){
                                              ^
client.java:8356: <identifier> expected
if(command.startsWith("unpc") && playerRights >= 2){
                                                ^
client.java:8356: ';' expected
if(command.startsWith("unpc") && playerRights >= 2){
                                                  ^
client.java:8361: illegal start of type
if(command.startsWith("combat") && playerRights > 2){
^
client.java:8361: <identifier> expected
if(command.startsWith("combat") && playerRights > 2){
                     ^
client.java:8361: ';' expected
if(command.startsWith("combat") && playerRights > 2){
                      ^
client.java:8361: illegal start of type
if(command.startsWith("combat") && playerRights > 2){
                              ^
client.java:8361: <identifier> expected
if(command.startsWith("combat") && playerRights > 2){
                               ^
client.java:8361: ';' expected
if(command.startsWith("combat") && playerRights > 2){
                                  ^
client.java:8361: illegal start of type
if(command.startsWith("combat") && playerRights > 2){
                                                ^
100 errors
Press any key to continue . . .
--- End code ---

Please help

minor problm:

I need some help. Whenever I click run server the command prompt comes up saying "All starscape v.1 Online!" And it just stays there nothing happens. Then when I click compile it comes up with the commands but whenever I try a command it says you do not have JDK 5.0 or 6.0 When I know I do have JDK 6.0 update 17 I downloaded it yesterday.

Ungrateful:

My compiler will not run:



Compiler code:

--- Code: ---@echo off
title Compiler
javac *.java
pause
--- End code ---

Java location:


Variables:
CLASSPATH

--- Code: ---CLASSPATH=C:\Program Files\Java\jdk1.6.0_17\bin;%CLASSPATH%;
--- End code ---
PATH

--- Code: ---C:\Program Files\Java\jdk1.6.0_17\bin
--- End code ---



str o tek:

MinorProblem, to fix ur prob u need to right click on the compiler.bat file and choose "Edit"

Then you'll probly see something like:

@echo off
color 77
title ********** Compiler
echo ========================
echo Type C For Compile
echo ========================
echo Type any other to close
:def
set /p compile=Option:
if %compile%==c goto compile
if %compile%==C goto compile
:compile
"C:\program files\Java\jdk1.6.0_12\bin\javac.exe" *.java
pause
goto def
:run
JAVA -Xmx500m EGUI
pause


Edit

"C:\program files\Java\jdk1.6.0_12\bin\javac.exe" *.java

To

"C:\program files\Java\jdk1.6.0_17\bin\javac.exe" *.java

And ur prob should be fixed.

Pages: <<< (181/323) >>>

Go to full version