Thread: Fixing Compiler Errors (Includes 100 errors)

Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 73
  1. #61  
    Registered Member JohnGt1's Avatar
    Join Date
    Jan 2013
    Posts
    42
    Thanks given
    19
    Thanks received
    0
    Rep Power
    11
    need help with this error:
    src\com\rs\Settings.java:1: error: <identifier> expected
    package com.rs.game.class.worldtile;
    ^
    src\com\rs\Settings.java:1: error: class, interface, or enum expected
    package com.rs.game.class.worldtile;
    ^
    src\com\rs\Settings.java:1: error: class, interface, or enum expected
    package com.rs.game.class.worldtile;
    ^
    3 errors
    src\com\rs\settings.java:1: error: <identifier> expected
    package com.rs.game.class.worldtile;
    ^
    src\com\rs\settings.java:1: error: class, interface, or enum expected
    package com.rs.game.class.worldtile;
    ^
    src\com\rs\settings.java:1: error: class, interface, or enum expected
    package com.rs.game.class.worldtile;
    ^
    3 errors
    src\com\rs\game\WorldTile.java:1: error: <identifier> expected
    package.com.rs.worldtile;
    ^
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  2. #62  
    Registered Member TunaFish's Avatar
    Join Date
    Apr 2013
    Age
    30
    Posts
    26
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Hi. I'm new to this thing can anyone help me?

    i getting this code the "symbol" code basic code but i dont know how to fix it where do i copy & paste thing?

    this the the code

    Code:
    src\server\model\players\ActionHandler.java:377: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
                                                         ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:377: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
                 ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:377: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
                                                    ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:377: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
    
            ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:385: error: cannot find symbol
                                    o.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
                                                         ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:385: error: cannot find symbol
                                    o.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
                 ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:385: error: cannot find symbol
                                    o.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
                                                    ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:385: error: cannot find symbol
                                    o.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
    
            ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:386: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
                                                         ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:386: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
                 ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:386: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
                                                    ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\model\players\ActionHandler.java:386: error: cannot find symbol
                                    c.getPA().movePlayer(Settings.DUELING_RESPAWN_X+
    (Misc.random(Settings.RANDOM_DUELING_RESPAWN)), Settings.DUELING_RESPAWN_Y+(Misc
    .random(Settings.RANDOM_DUELING_RESPAWN)), 0);
    
    
            ^
      symbol:   variable Settings
      location: class ActionHandler
    src\server\world\ItemHandler.java:222: error: cannot find symbol
                                                            c.getItems().handleSpeci
    alPickup(itemId);
                                                                        ^
      symbol:   method handleSpecialPickup(int)
      location: class ItemAssistant
    13 errors
    I'm new wtih coding so be nice to the newbie !

    Reply With Quote  
     

  3. #63  
    Lost Redemption Owner & Founder
    Lost Redemption's Avatar
    Join Date
    Jan 2013
    Age
    27
    Posts
    915
    Thanks given
    212
    Thanks received
    60
    Rep Power
    0
    Tty changing your worldtile import to "WorldTile." It should then work.
    Quote Originally Posted by JohnGt1 View Post
    need help with this error:
    Reply With Quote  
     

  4. #64  
    Registered Member
    Join Date
    Jan 2013
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    New coder ^.^' and i keep getting this compiler problem
    Code:
    javac: file not found: *.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    Press any key to continue . . .
    I have JDK1.7.0_10, and i have its under set in the Environmental Variables under user.
    Heres what my compiler looks like:
    Code:
    @echo off
    title Compiler; Dream-scape317
    :build
    cls
    "C:\Program Files\Java\jdk1.7.0_10\bin\javac.exe" -classpath deps/VotePlugin.jar;deps/log4j-1.2.15.jar;deps/jython.jar;deps/xstream.jar;deps/mina.jar;deps/mysql.jar;deps/poi.jar;deps/slf4j.jar;deps/slf4j-nop.jar -d bin src\server\event\*.java src\server\model\items\*.java src\server\model\minigames\*.java src\server\model\npcs\*.java src\server\model\objects\*.java src\server\model\players\*.java src\server\model\players\skills\*.java src\server\model\players\packets\*.java src\server\world\map\*.java src\server\model\shops\*.java src\server\net\*.java src\server\task\*.java src\server\util\*.java src\server\world\*.java src\server\util\log\*.java src\server\*.java src\server\clip\region\*.java src\server\clip\*.java src\server\model\players\combat\range\*.java
    pause
    goto :build
    Help me?
    Reply With Quote  
     

  5. #65  
    Registered Member Arsenic's Avatar
    Join Date
    Nov 2013
    Age
    25
    Posts
    297
    Thanks given
    16
    Thanks received
    6
    Rep Power
    9
    Thanks needed this
    Reply With Quote  
     

  6. #66  
    Registered Member
    Join Date
    Jan 2015
    Posts
    36
    Thanks given
    3
    Thanks received
    3
    Rep Power
    18
    I am having problems running my PI server, I get the following error:


    [1/5/15 9:48 AM]: Launching Project Insanity...
    [1/5/15 9:48 AM]: Exception in thread "main" [1/5/15 9:48 AM]: java.net.BindExce
    ption: Address already in use: bind
    [1/5/15 9:48 AM]: at sun.nio.ch.Net.bind0(Native Method)
    [1/5/15 9:48 AM]: at sun.nio.ch.Net.bind(Unknown Source)
    [1/5/15 9:48 AM]: at sun.nio.ch.Net.bind(Unknown Source)
    [1/5/15 9:48 AM]: at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Sourc
    e)
    [1/5/15 9:48 AM]: at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    [1/5/15 9:48 AM]: at org.apache.mina.transport.socket.nio.SocketAccepto r.r
    egisterNew(SocketAcceptor.java:363)
    [1/5/15 9:48 AM]: at org.apache.mina.transport.socket.nio.SocketAccepto r.a
    ccess$800(SocketAcceptor.java:55)
    [1/5/15 9:48 AM]: at org.apache.mina.transport.socket.nio.SocketAccepto r$W
    orker.run(SocketAcceptor.java:222)
    [1/5/15 9:48 AM]: at org.apache.mina.util.NamePreservingRunnable.run(Na meP
    reservingRunnable.java:51)
    [1/5/15 9:48 AM]: at java.lang.Thread.run(Unknown Source)
    Press any key to continue . . .


    Please help; add me on Skype: Dakota_Aaron
    Reply With Quote  
     

  7. #67  
    Registered Member
    Join Date
    Oct 2013
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Your word choice is a bit odd if i do say so my self "you cannot have a method in another method"
    Reply With Quote  
     

  8. #68  
    Registered Member
    Join Date
    Nov 2013
    Posts
    51
    Thanks given
    0
    Thanks received
    2
    Rep Power
    11
    starting...
    src\Class481_Sub1.java:19: warning: AuthenticationInfo is internal proprietary A
    PI and may be removed in a future release
    import sun.net.www.protocol.http.AuthenticationInfo;
    ^
    src\Class457.java:78: warning: Win32GraphicsDevice is internal proprietary API a
    nd may be removed in a future release
    Field field = sun.awt.Win32GraphicsDevice.class.
    getDeclaredField("valid");
    ^
    src\Class457.java:93: warning: Win32GraphicsDevice is internal proprietary API a
    nd may be removed in a future release
    Field field = sun.awt.Win32Graph
    icsDevice.class.getDeclaredField("valid");
    ^
    src\Class457.java:103: warning: Win32GraphicsDevice is internal proprietary API
    and may be removed in a future release
    Field field = sun.awt.Win32GraphicsDevic
    e.class.getDeclaredField("valid");
    ^
    src\Class110_Sub1.java:14: warning: Unsafe is internal proprietary API and may b
    e removed in a future release
    long aLong8597;
    ^
    src\Class_ra_Sub3.java:35: warning: Unsafe is internal proprietary API and may b
    e removed in a future release
    public Unsafe anUnsafe8219;
    ^
    src\Class_ra_Sub3.java:5: warning: Unsafe is internal proprietary API and may be
    removed in a future release
    import jaclib.memory.Stream;
    ^
    src\Class_ra_Sub3.java:2865: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Field field = sun.misc.Unsafe.class.getDeclaredF
    ield("theUnsafe");
    ^
    src\Class_ra_Sub3.java:2867: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    anUnsafe8219 = (Unsafe) field.get(null);
    ^
    src\Class387_Sub3.java:157: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_7894.anUns
    afe8219;
    ^
    src\Class387_Sub3.java:2636: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class387_Sub3.java:2668: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class387_Sub3.java:2815: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class387_Sub3.java:2854: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class481_Sub1.java:76: warning: AuthenticationInfo is internal proprietary A
    PI and may be removed in a future release
    Class<AuthenticationInfo> var_class = su
    n.net.www.protocol.http.AuthenticationInfo.class;
    ^
    src\Class481_Sub1.java:76: warning: AuthenticationInfo is internal proprietary A
    PI and may be removed in a future release
    Class<AuthenticationInfo> var_class = su
    n.net.www.protocol.http.AuthenticationInfo.class;

    ^
    Note: src\Class453.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    16 warnings
    Press any key to continue . . .


    how does one fix this?


    Reply With Quote  
     

  9. #69  
    Author of the first public OSRSPS

    Shadowy's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    1,499
    Thanks given
    490
    Thanks received
    241
    Rep Power
    307
    Quote Originally Posted by chrisbrow View Post
    starting...
    src\Class481_Sub1.java:19: warning: AuthenticationInfo is internal proprietary A
    PI and may be removed in a future release
    import sun.net.www.protocol.http.AuthenticationInfo;
    ^
    src\Class457.java:78: warning: Win32GraphicsDevice is internal proprietary API a
    nd may be removed in a future release
    Field field = sun.awt.Win32GraphicsDevice.class.
    getDeclaredField("valid");
    ^
    src\Class457.java:93: warning: Win32GraphicsDevice is internal proprietary API a
    nd may be removed in a future release
    Field field = sun.awt.Win32Graph
    icsDevice.class.getDeclaredField("valid");
    ^
    src\Class457.java:103: warning: Win32GraphicsDevice is internal proprietary API
    and may be removed in a future release
    Field field = sun.awt.Win32GraphicsDevic
    e.class.getDeclaredField("valid");
    ^
    src\Class110_Sub1.java:14: warning: Unsafe is internal proprietary API and may b
    e removed in a future release
    long aLong8597;
    ^
    src\Class_ra_Sub3.java:35: warning: Unsafe is internal proprietary API and may b
    e removed in a future release
    public Unsafe anUnsafe8219;
    ^
    src\Class_ra_Sub3.java:5: warning: Unsafe is internal proprietary API and may be
    removed in a future release
    import jaclib.memory.Stream;
    ^
    src\Class_ra_Sub3.java:2865: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Field field = sun.misc.Unsafe.class.getDeclaredF
    ield("theUnsafe");
    ^
    src\Class_ra_Sub3.java:2867: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    anUnsafe8219 = (Unsafe) field.get(null);
    ^
    src\Class387_Sub3.java:157: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_7894.anUns
    afe8219;
    ^
    src\Class387_Sub3.java:2636: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class387_Sub3.java:2668: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class387_Sub3.java:2815: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class387_Sub3.java:2854: warning: Unsafe is internal proprietary API and may
    be removed in a future release
    Unsafe unsafe = ((Class387_Sub3) this).aClass_ra_Sub3_78
    94.anUnsafe8219;
    ^
    src\Class481_Sub1.java:76: warning: AuthenticationInfo is internal proprietary A
    PI and may be removed in a future release
    Class<AuthenticationInfo> var_class = su
    n.net.www.protocol.http.AuthenticationInfo.class;
    ^
    src\Class481_Sub1.java:76: warning: AuthenticationInfo is internal proprietary A
    PI and may be removed in a future release
    Class<AuthenticationInfo> var_class = su
    n.net.www.protocol.http.AuthenticationInfo.class;

    ^
    Note: src\Class453.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    16 warnings
    Press any key to continue . . .


    how does one fix this?
    since they're only warning u can probs ignore, or add -Xlint:unchecked into ur compiler to stop them showing
    Owner of OS-RSPS, the first Oldschool RuneScape Server (2014)
    Reply With Quote  
     

  10. #70 Connections not aquired from database 
    Registered Member
    Join Date
    Jun 2015
    Posts
    16
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    EDIT: FIXED THIS PROBLEM WITH A BACKUP I HAD

    When i try to log in to my server, i get immediately logged out. I can log in enough to see the objects for less than a second before i get logged out.
    i get the following error messages in the server console, when i try to log on from my client
    Code:
    java.sql.SQLException: Connections could not be acquired from the underlying database!
    	at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
    	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:690)
    	at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
    	at ab.database.ConnectionPool.getConnection(ConnectionPool.java:50)
    	at ab.database.BatchQuery.setupConnection(BatchQuery.java:71)
    	at ab.database.BatchQuery.<init>(BatchQuery.java:29)
    	at ab.database.KillLogHandler.resetBatch(KillLogHandler.java:58)
    	at ab.database.KillLogHandler.<init>(KillLogHandler.java:21)
    	at ab.Server.<clinit>(Server.java:156)
    Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
    	at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1463)
    	at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:639)
    	at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:549)
    	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:756)
    	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:683)
    	... 7 more
    [12/6/15 3:46 PM]: Loading item definitions...
    [12/6/15 3:46 PM]: Loaded 12389 item definitions.
    [12/6/15 3:46 PM]: Successfully loaded: 6756 NPC definitions.
    [12/6/15 3:46 PM]: WARNING: Unable to load object from file.
    [12/6/15 3:46 PM]: WARNING: Unable to load object from file.
    [12/6/15 3:46 PM]: WARNING: Unable to load object from file.
    [12/6/15 3:46 PM]: Loaded: Region configuration.
    [12/6/15 3:46 PM]: Loaded: 2677895 clipped tiles.
    [12/6/15 3:46 PM]: OS PvP has successfully started up in 1044 milliseconds.
    [12/6/15 3:46 PM]: Loading game: Owner
    1
    [12/6/15 3:46 PM]: [Logged in]: Owner
    [12/6/15 3:46 PM]: Game saved for player Owner
    [12/6/15 3:46 PM]: [Logged out]: Owner
    Just before this started happening, i was messing around with adding new items/objects from an updated osrs cache. At first i thought this error was occurring because i was storing one of the items i added in my bank, but when i cleared my bank and logged in i was immediately logged back out again.
    Just saw i was also getting an error on my client with an array index out of bounds exception. It appears its having some trouble sending a packet?
    Code:
    Floor Map Loaded: 622
    Object Map Loaded: 623
    Floor Map Loaded: 624
    Object Map Loaded: 625
    Floor Map Loaded: 262
    Object Map Loaded: 263
    Floor Map Loaded: 266
    Object Map Loaded: 267
    java.lang.ArrayIndexOutOfBoundsException: 39
    	at com.ospvp.client.method137(client.java:12909)
    Error: T2 - 101,85,151 - 2,3131,3468 - 100,0,
    	at com.ospvp.client.parsePacket(client.java:14616)
    	at com.ospvp.client.mainGameProcessor(client.java:3672)
    	at com.ospvp.client.processGameLoop(client.java:2939)
    	at com.ospvp.RSApplet.run(RSApplet.java:208)
    	at com.ospvp.client.run(client.java:5555)
    	at java.lang.Thread.run(Unknown Source)
    Any help would be much obliged!
    Reply With Quote  
     

Page 7 of 8 FirstFirst ... 5678 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Fixing common compiler errors
    By Dexter Morgan in forum Help
    Replies: 21
    Last Post: 08-13-2011, 09:59 PM
  2. Compiler Errors
    By Shoes in forum Suggestions
    Replies: 15
    Last Post: 06-25-2011, 01:43 AM
  3. 525 help (compiler) no errors*
    By -Deathy in forum Help
    Replies: 8
    Last Post: 09-01-2010, 10:14 PM
  4. Compiler errors?
    By derp in forum Help
    Replies: 0
    Last Post: 06-22-2010, 09:56 PM
  5. Compiler Errors
    By Cody. in forum Help
    Replies: 3
    Last Post: 04-17-2009, 05:34 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •