Jump to content
  • 0

Some Help With javac error


Question

Posted

I Need Help With This ErrOr

 

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\model\actor\instance\L2NpcInstance.java:1172: cannot find symbol

    [javac] symbol  : method contains(java.lang.String)

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac]        if (HtmCache.getInstance().contains(temp))

    [javac]                                  ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\model\actor\instance\L2NpcInstance.java:1177: isLoadable(java.io.File) in net.sf.l2j.gameserver.cache.HtmCache cannot be applied to (java.lang.String)

    [javac]        if (HtmCache.getInstance().isLoadable(temp))

    [javac]                                  ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:214: reload(boolean) in net.sf.l2j.gameserver.cache.HtmCache cannot be applied to ()

    [javac] HtmCache.getInstance().reload();

    [javac]                       ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:216: cannot find symbol

    [javac] symbol  : method getMemoryUsage()

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac] activeChar.sendMessage("Cache

: " + HtmCache.getInstance().getMemoryUsage()  + " megabytes on " + HtmCache.getInstance().getLoadedFiles() + " files loaded");

    [javac]                                                               ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminAdmin.java:216: cannot find symbol

    [javac] symbol  : method getLoadedFiles()

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac] activeChar.sendMessage("Cache[html]: " + HtmCache.getInstance().getMemoryUsage()  + " megabytes on " + HtmCache.getInstance().getLoadedFiles() + " files loaded");

    [javac]                                                                                                                             ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminCache.java:60: reload(boolean) in net.sf.l2j.gameserver.cache.HtmCache cannot be applied to (java.io.File)

    [javac] HtmCache.getInstance().reload(Config.DATAPACK_ROOT);

    [javac]                       ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminCache.java:61: cannot find symbol

    [javac] symbol  : method getMemoryUsage()

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac] activeChar.sendMessage("Cache[html]: " + HtmCache.getInstance().getMemoryUsage()  + " MB on " + HtmCache.getInstance().getLoadedFiles() + " file(s) loaded.");

    [javac]                                                               ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminCache.java:61: cannot find symbol

    [javac] symbol  : method getLoadedFiles()

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac] activeChar.sendMessage("Cache[html]: " + HtmCache.getInstance().getMemoryUsage()  + " MB on " + HtmCache.getInstance().getLoadedFiles() + " file(s) loaded.");

    [javac]                                                                                                                       ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminCache.java:69: cannot find symbol

    [javac] symbol  : method getMemoryUsage()

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac] activeChar.sendMessage("Cache[html]: " + HtmCache.getInstance().getMemoryUsage()  + " MB in " + HtmCache.getInstance().getLoadedFiles() + " file(s) loaded.");

    [javac]                                                               ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\gameserver\handler\admincommandhandlers\AdminCache.java:69: cannot find symbol

    [javac] symbol  : method getLoadedFiles()

    [javac] location: class net.sf.l2j.gameserver.cache.HtmCache

    [javac] activeChar.sendMessage("Cache[html]: " + HtmCache.getInstance().getMemoryUsage()  + " MB in " + HtmCache.getInstance().getLoadedFiles() + " file(s) loaded.");

    [javac]                                                                                                                       ^

    [javac] D:\Jocuri\Project\Source\java\net\sf\l2j\status\GameStatusThread.java:634: reload(boolean) in net.sf.l2j.gameserver.cache.HtmCache cannot be applied to ()

    [javac]                HtmCache.getInstance().reload();

    [javac]                                      ^

    [javac] Note: Some input files use or override a deprecated API.

    [javac] Note: Recompile with -Xlint:deprecation for details.

    [javac] Note: Some input files use unchecked or unsafe operations.

    [javac] Note: Recompile with -Xlint:unchecked for details.

    [javac] 11 errors

 

 

How I Can Solve It

4 answers to this question

Recommended Posts

  • 0
Posted

cannot find symbol

means that you need some include that are missing now

 

HtmCache.getInstance().reload();

must be reload(true) or reload(false)

depending of what do you want to do

 

  if (HtmCache.getInstance().isLoadable(temp))

temp must be a file, not a string

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock