Thread: errors

Results 1 to 9 of 9
  1. #1 errors 
    Registered Member
    Enjoi's Avatar
    Join Date
    Sep 2008
    Posts
    2,454
    Thanks given
    565
    Thanks received
    281
    Rep Power
    1325
    Code:
    Class9.java:84: non-static variable aClass44 cannot be referenced from a static
    context
            spell.aClass30_Sub2_Sub1_Sub1_207 = method207(spriteOnId, false, aClass4
    4, "magicon2");
                                                                             ^
    Class9.java:85: non-static variable aClass44 cannot be referenced from a static
    context
            spell.aClass30_Sub2_Sub1_Sub1_260 = method207(spriteOffId, false, aClass
    44, "magicon2");
                                                                              ^
    Class9.java:704: non-static variable aClass44 cannot be referenced from a static
     context
    aClass44 = class44;
    ^
    Class9.java:708: non-static variable aClass44 cannot be referenced from a static
     context
    aClass44 = Class44;
    ^
    Class9.java:708: cannot find symbol
    symbol  : variable Class44
    location: class Class9
    aClass44 = Class44;
               ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    5 errors
    Press any key to continue . . .
    any ideas?
     

  2. #2  
    Registered Member

    Join Date
    Jun 2007
    Age
    26
    Posts
    3,007
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    Code:
    aClass44 = Class44;
    should be

    aClass44 = class44;
     

  3. #3  
    Registered Member
    Enjoi's Avatar
    Join Date
    Sep 2008
    Posts
    2,454
    Thanks given
    565
    Thanks received
    281
    Rep Power
    1325
    down to 3 errors now
    i had aclass44 = class44 declared twice lol


    Code:
    Class9.java:84: non-static variable aClass44 cannot be referenced from a static
    context
            spell.aClass30_Sub2_Sub1_Sub1_207 = method207(spriteOnId, false, aClass4
    4, "magicon2");
                                                                             ^
    Class9.java:85: non-static variable aClass44 cannot be referenced from a static
    context
            spell.aClass30_Sub2_Sub1_Sub1_260 = method207(spriteOffId, false, aClass
    44, "magicon2");
                                                                              ^
    Class9.java:704: non-static variable aClass44 cannot be referenced from a static
     context
    aClass44 = class44;
    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    3 errors
    Press any key to continue . . .
     

  4. #4  
    Registered Member

    Join Date
    Jun 2007
    Age
    26
    Posts
    3,007
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    delete the one on line 704
     

  5. #5  
    Registered Member
    Enjoi's Avatar
    Join Date
    Sep 2008
    Posts
    2,454
    Thanks given
    565
    Thanks received
    281
    Rep Power
    1325
    Class9.java:84: non-static variable aClass44 cannot be referenced from a static
    context
    spell.aClass30_Sub2_Sub1_Sub1_207 = method207(spriteOnId, false, aClass4
    4, "magicon2");
    ^
    Class9.java:85: non-static variable aClass44 cannot be referenced from a static
    context
    spell.aClass30_Sub2_Sub1_Sub1_260 = method207(spriteOffId, false, aClass
    44, "magicon2");
    ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    2 errors
    Press any key to continue . . .
    last 2 lol
     

  6. #6  
    Respected Member


    Josh's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    2,863
    Thanks given
    6
    Thanks received
    1,342
    Rep Power
    5000
    make sure
    Code:
    public static Class44 aClass44;
    is declared

    and make
    Code:
    aClass44 = class44;
    look like
    Code:
    aClass44 = aClass44;
     

  7. #7  
    Registered Member pHametic's Avatar
    Join Date
    Nov 2006
    Posts
    637
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    make the variable static?
     

  8. #8  
    Registered Member
    Enjoi's Avatar
    Join Date
    Sep 2008
    Posts
    2,454
    Thanks given
    565
    Thanks received
    281
    Rep Power
    1325
    when i run it i get this

    Welcome to Galkons Base
    Credits to Galkon for base



    Error: loaderror Unpacking interfaces 95
    Press any key to continue . . .
     

  9. #9  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    change

    Code:
    aClass9Array210 = new Class9[
    to

    Code:
    aClass9Array210 = new Class9[22000];
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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