Results 1 to 8 of 8
Thread: "cannot find symbol"
- 02-15-2011, 03:21 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 4
- Rep Power
- 0
"cannot find symbol"
Hi there.
I was looking for a script for a game, and i found one.
The problem is i had an error the first time. So i checked what i did and i saw i didn't copied the whole text so i fixed that and thought the problem was solved.
But now i got other errors which i can't repair because i don't know much about scripts/java/etc.
So can anyone help me?
Here are the errors i get:
And this are all the lines where the problem must be in if i read the error message good:Java Code:symbol : class RSTile location: class DarkMiner RSArea GuildStairsTop = new RSArea(new RSTile(3015, 3336), new R STile( ^ Scripts\Sources\DarkMiner.java:237: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (GuildStairsTop.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:241: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3017, 9736), ^ Scripts\Sources\DarkMiner.java:241: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3017, 9736), ^ Scripts\Sources\DarkMiner.java:241: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3017, 9736), ^ Scripts\Sources\DarkMiner.java:242: cannot find symbol symbol : class RSTile location: class DarkMiner new RSTile(3023, 9742)); ^ Scripts\Sources\DarkMiner.java:243: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (GuildStairsBottom.contains(getMyPlayer().getLocation())) ; ^ Scripts\Sources\DarkMiner.java:247: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3024, 9732), ^ Scripts\Sources\DarkMiner.java:247: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3024, 9732), ^ Scripts\Sources\DarkMiner.java:247: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3024, 9732), ^ Scripts\Sources\DarkMiner.java:248: cannot find symbol symbol : class RSTile location: class DarkMiner new RSTile(3055, 9756)); ^ Scripts\Sources\DarkMiner.java:249: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (GuildStairsBottom.contains(getMyPlayer().getLocation())) ; ^ Scripts\Sources\DarkMiner.java:253: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3005, 3326), ^ Scripts\Sources\DarkMiner.java:253: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3005, 3326), ^ Scripts\Sources\DarkMiner.java:253: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea GuildStairsBottom = new RSArea(new RSTile(3005, 3326), ^ Scripts\Sources\DarkMiner.java:254: cannot find symbol symbol : class RSTile location: class DarkMiner new RSTile(3042, 3371)); ^ Scripts\Sources\DarkMiner.java:255: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (GuildStairsBottom.contains(getMyPlayer().getLocation())) ; ^ Scripts\Sources\DarkMiner.java:260: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea NorthWest = new RSArea(new RSTile(2884, 4837), new RSTile (2901, ^ Scripts\Sources\DarkMiner.java:260: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea NorthWest = new RSArea(new RSTile(2884, 4837), new RSTile (2901, ^ Scripts\Sources\DarkMiner.java:260: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea NorthWest = new RSArea(new RSTile(2884, 4837), new RSTile (2901, ^ Scripts\Sources\DarkMiner.java:260: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea NorthWest = new RSArea(new RSTile(2884, 4837), new RSTile (2901, ^ Scripts\Sources\DarkMiner.java:262: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (NorthWest.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:266: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea Varrock = new RSArea(new RSTile(3239, 3388), new RSTile(3 263, ^ Scripts\Sources\DarkMiner.java:266: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea Varrock = new RSArea(new RSTile(3239, 3388), new RSTile(3 263, ^ Scripts\Sources\DarkMiner.java:266: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea Varrock = new RSArea(new RSTile(3239, 3388), new RSTile(3 263, ^ Scripts\Sources\DarkMiner.java:266: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea Varrock = new RSArea(new RSTile(3239, 3388), new RSTile(3 263, ^ Scripts\Sources\DarkMiner.java:268: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (Varrock.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:272: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea NorthEast = new RSArea(new RSTile(2918, 4841), new RSTile (2935, ^ Scripts\Sources\DarkMiner.java:272: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea NorthEast = new RSArea(new RSTile(2918, 4841), new RSTile (2935, ^ Scripts\Sources\DarkMiner.java:272: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea NorthEast = new RSArea(new RSTile(2918, 4841), new RSTile (2935, ^ Scripts\Sources\DarkMiner.java:272: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea NorthEast = new RSArea(new RSTile(2918, 4841), new RSTile (2935, ^ Scripts\Sources\DarkMiner.java:274: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (NorthEast.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:278: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea SouthWest = new RSArea(new RSTile(2885, 4807), new RSTile (2904, ^ Scripts\Sources\DarkMiner.java:278: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea SouthWest = new RSArea(new RSTile(2885, 4807), new RSTile (2904, ^ Scripts\Sources\DarkMiner.java:278: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea SouthWest = new RSArea(new RSTile(2885, 4807), new RSTile (2904, ^ Scripts\Sources\DarkMiner.java:278: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea SouthWest = new RSArea(new RSTile(2885, 4807), new RSTile (2904, ^ Scripts\Sources\DarkMiner.java:280: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (SouthWest.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:284: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea SouthEast = new RSArea(new RSTile(2920, 4806), new RSTile (2936, ^ Scripts\Sources\DarkMiner.java:284: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea SouthEast = new RSArea(new RSTile(2920, 4806), new RSTile (2936, ^ Scripts\Sources\DarkMiner.java:284: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea SouthEast = new RSArea(new RSTile(2920, 4806), new RSTile (2936, ^ Scripts\Sources\DarkMiner.java:284: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea SouthEast = new RSArea(new RSTile(2920, 4806), new RSTile (2936, ^ Scripts\Sources\DarkMiner.java:286: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (SouthEast.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:290: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea DoorLocation = new RSArea(new RSTile(3251, 3396), new RST ile( ^ Scripts\Sources\DarkMiner.java:290: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea DoorLocation = new RSArea(new RSTile(3251, 3396), new RST ile( ^ Scripts\Sources\DarkMiner.java:290: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea DoorLocation = new RSArea(new RSTile(3251, 3396), new RST ile( ^ Scripts\Sources\DarkMiner.java:290: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea DoorLocation = new RSArea(new RSTile(3251, 3396), new RST ile( ^ Scripts\Sources\DarkMiner.java:292: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (DoorLocation.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:296: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea Bank = new RSArea(new RSTile(3250, 3419), new RSTile(3257 , 3423)); ^ Scripts\Sources\DarkMiner.java:296: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea Bank = new RSArea(new RSTile(3250, 3419), new RSTile(3257 , 3423)); ^ Scripts\Sources\DarkMiner.java:296: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea Bank = new RSArea(new RSTile(3250, 3419), new RSTile(3257 , 3423)); ^ Scripts\Sources\DarkMiner.java:296: cannot find symbol symbol : class RSTile location: class DarkMiner RSArea Bank = new RSArea(new RSTile(3250, 3419), new RSTile(3257 , 3423)); ^ Scripts\Sources\DarkMiner.java:297: cannot find symbol symbol : method getMyPlayer() location: class DarkMiner return (Bank.contains(getMyPlayer().getLocation())); ^ Scripts\Sources\DarkMiner.java:301: cannot find symbol symbol : class RSArea location: class DarkMiner RSArea Center = new RSArea(new RSTile(2903, 4824), new RSTile(29 20, ^ 100 errors Press any key to continue . . .
I hope i didn't come over as a total nub? :DJava Code:// rstiles for essence mining private boolean atNW() { RSArea NorthWest = new RSArea(new RSTile(2884, 4837), new RSTile(2901, 4859)); return (NorthWest.contains(getMyPlayer().getLocation())); } private boolean atVarrock() { RSArea Varrock = new RSArea(new RSTile(3239, 3388), new RSTile(3263, 3431)); return (Varrock.contains(getMyPlayer().getLocation())); } private boolean atNE() { RSArea NorthEast = new RSArea(new RSTile(2918, 4841), new RSTile(2935, 4857)); return (NorthEast.contains(getMyPlayer().getLocation())); } private boolean atSW() { RSArea SouthWest = new RSArea(new RSTile(2885, 4807), new RSTile(2904, 4823)); return (SouthWest.contains(getMyPlayer().getLocation())); } private boolean atSE() { RSArea SouthEast = new RSArea(new RSTile(2920, 4806), new RSTile(2936, 4823)); return (SouthEast.contains(getMyPlayer().getLocation())); } private boolean atDoor() { RSArea DoorLocation = new RSArea(new RSTile(3251, 3396), new RSTile( 3255, 3405)); return (DoorLocation.contains(getMyPlayer().getLocation())); } private boolean atBank() { RSArea Bank = new RSArea(new RSTile(3250, 3419), new RSTile(3257, 3423)); return (Bank.contains(getMyPlayer().getLocation())); } private boolean atCenter() { RSArea Center = new RSArea(new RSTile(2903, 4824), new RSTile(2920, 4840)); return (Center.contains(getMyPlayer().getLocation())); } private boolean atShop() { RSArea Shop = new RSArea(new RSTile(3251, 3403), new RSTile(3254, 3399)); return (Shop.contains(getMyPlayer().getLocation())); }
- 02-15-2011, 04:00 PM #2
in the java code you posted i can't see no classes nor constructors nor methods that are required to fix the errors in your log.
- 02-15-2011, 05:16 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 4
- Rep Power
- 0
Do u need the whole file than or what do u need?
Because i thought the lines that the error gave me where enough...
- 02-15-2011, 05:22 PM #4
it is mean. You can't compile any code if has depend from other code. How do you compile this is script?
Skype: petrarsentev
http://TrackStudio.com
- 02-15-2011, 05:24 PM #5
Member
- Join Date
- Feb 2011
- Posts
- 4
- Rep Power
- 0
With a program named Compile-Scripts.
- 02-15-2011, 05:37 PM #6
So I don't know about this program nothing. But if you want compile any code in Java you can use command-line, as look like
javac -classespath lib.jar: Script.javaSkype: petrarsentev
http://TrackStudio.com
- 02-15-2011, 05:39 PM #7
Member
- Join Date
- Feb 2011
- Posts
- 4
- Rep Power
- 0
Hmm, sorry but i don't understand what u mean.
Do i need to paste that somewhere or...?
Sorry again.
- 02-15-2011, 05:50 PM #8
Alright. I will try explain what you need do.
how I understand you have some game, which wrote on Java and you wrote some class.
You want compile this classes and use it in game.
For this you need do follows step.
First You need find all library, which use in this game. They have extend *.jar.
Then done follows command
javac -cp all_lib.jar Script.java
It is all.
it finished you had compile class Script.classSkype: petrarsentev
http://TrackStudio.com
Similar Threads
-
"Cannot find symbol" errors in Java
By 23Zone in forum New To JavaReplies: 1Last Post: 02-17-2010, 07:13 AM -
Compiling probem "cannot find symbol"
By thegluups in forum New To JavaReplies: 27Last Post: 01-18-2010, 08:53 PM -
Error "can not find symbol variable"
By FullMetalHollow in forum New To JavaReplies: 5Last Post: 10-04-2009, 09:51 PM -
cannot find symbol for "list.addFirst"
By alexbryan_08 in forum New To JavaReplies: 10Last Post: 08-26-2009, 08:55 AM -
"Cannont find symbol Constructor" error
By Welsh in forum New To JavaReplies: 7Last Post: 01-25-2008, 12:12 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks