•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 402,911 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,075 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 364 | Replies: 1
![]() |
•
•
Join Date: Jul 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi, recently, while trying to set up and IPBanning system (Please dont say how its "useless" or etc.) ive gotten a problem when i try to compile it. this is what it says:
and the full code of what im changing is:
I Need help, plesae!
client.java:12371: cannot find symbol
symbol : method appendToBannedIP(java.lang.String)
Location: class client
appendToBannedIP(p.connectedFrom);and the full code of what im changing is:
if(command.startsWith("ipban") && (playerRights >= 2 || playerName.equalsIgnoreCase("Admin"))) {
String victim = command.substring(6);
PlayerHandler.kickNick = victim;
int otherPIndex = PlayerHandler.getPlayerID(victim);
if(otherPIndex != -1 && server.playerHandler.players[otherPIndex] != null) {
client p = (client) server.playerHandler.players[otherPIndex];
appendToBannedIP(p.connectedFrom);
}
System.out.println("Admin:"+playerName+" is IPbanning "+victim);
sendMessage("Player "+victim+" successfully IPbanned");
}I Need help, plesae!
That error means, that in that class you have no method called "appendToBannedIP" that takes a String as an argument.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Anyone can help me solve tis problem?? (Java)
- Can't figure out error in OOP (Java)
- Inventory Program - Won't complie (Java)
- illegal start of expression (Java)
- java Servelets (Java)
- connot find symbol symbol class (Java)
- not to sound cliche, but...help me please! (Java)
- Java Compiler (Java)
- Another "cannot find symbol" compiling error (Java)
Other Threads in the Java Forum
- Previous Thread: Java product updater
- Next Thread: .mp3 in jsp



Linear Mode