Results 1 to 8 of 8
  1. #1
    Tjapneus is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default "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:

    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 . . .
    And this are all the lines where the problem must be in if i read the error message good:

    Java 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()));
    	}
    I hope i didn't come over as a total nub? :D

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    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.

  3. #3
    Tjapneus is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    Do u need the whole file than or what do u need?
    Because i thought the lines that the error gave me where enough...

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    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

  5. #5
    Tjapneus is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    With a program named Compile-Scripts.

  6. #6
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    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.java
    Skype: petrarsentev
    http://TrackStudio.com

  7. #7
    Tjapneus is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    Hmm, sorry but i don't understand what u mean.
    Do i need to paste that somewhere or...?
    Sorry again.

  8. #8
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default

    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.class
    Skype: petrarsentev
    http://TrackStudio.com

Similar Threads

  1. "Cannot find symbol" errors in Java
    By 23Zone in forum New To Java
    Replies: 1
    Last Post: 02-17-2010, 07:13 AM
  2. Compiling probem "cannot find symbol"
    By thegluups in forum New To Java
    Replies: 27
    Last Post: 01-18-2010, 08:53 PM
  3. Error "can not find symbol variable"
    By FullMetalHollow in forum New To Java
    Replies: 5
    Last Post: 10-04-2009, 09:51 PM
  4. cannot find symbol for "list.addFirst"
    By alexbryan_08 in forum New To Java
    Replies: 10
    Last Post: 08-26-2009, 08:55 AM
  5. "Cannont find symbol Constructor" error
    By Welsh in forum New To Java
    Replies: 7
    Last Post: 01-25-2008, 12:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •