Jump to content
  • 0

Compile Error


Question

Posted

eclipse compile error

Buildfile: C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build.xml
clean:
   [delete] Deleting directory C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build
checkRequirements:
     [echo] Verification of your JDK version.
version:
     [echo] aCis gameserver revision: exported
init:
    [mkdir] Created dir: C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build
    [mkdir] Created dir: C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build\classes
    [mkdir] Created dir: C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build\dist
    [mkdir] Created dir: C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build\dist\login
    [mkdir] Created dir: C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build\dist\gameserver
compile:
    [javac] Compiling 1309 source files to C:\Users\Sario\workspace\aCis_300\aCis_gameserver\build\classes
    [javac] C:\Users\Sario\workspace\aCis_300\aCis_gameserver\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\Online.java:26: error: Online is not abstract and does not override abstract method useVoicedCommand(String,L2PcInstance) in IVoicedCommandHandler
    [javac] public class Online implements IVoicedCommandHandler
    [javac]        ^
    [javac] 1 error

online.java

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import java.util.StringTokenizer;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.L2World;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
*
* @author
*/
public class Online implements IVoicedCommandHandler
{
	private static String[] _voicedCommands =
	{
		"online"
	};


	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
	{
		if(command.equalsIgnoreCase("online"))
		{
			activeChar.sendMessage("======<Status Online>======");
			activeChar.sendMessage("Players Online: " + L2World.getInstance().getAllPlayers().size() + "");
			activeChar.sendMessage("=======================");
		}
		return true;
	}


	public String[] getVoicedCommandList()
	{
		return _voicedCommands;
	}
}

9 answers to this question

Recommended Posts

  • 0
Posted

Do NOT checkout/import your source like a trunk, import both of them(gs & dp) one by one. Like that eclipse may help you with these errors before the compiling.

  • 0
Posted

Trance if you can post more info about your advice,

 

Eclipse can help you in real time, but for that you need to import them as projects. For instance you have imported the whole aCis_300 folder "C:\Users\Sario\workspace\aCis_300" instead of 1 by 1, something like that "C:\Users\Sario\workspace\aCis_gameserver", "C:\Users\Sario\workspace\aCis_datapack". with these two projects in eclipse.

 

http://www.youtube.com/watch?v=3gQ2yYH-F1Q

  • 0
Posted

Thanks to everyone who helps to solve the problem, but a problem with voicedcommandhandler, I am a novice and still can not install the voiced commands  in acis .

  • 0
Posted (edited)

Thanks to everyone who helps to solve the problem, but a problem with voicedcommandhandler, I am a novice and still can not install the voiced commands  in acis .

Ok create a new topic.

Edited by Nikoloudos7
Guest
This topic is now closed to further replies.


×
×
  • Create New...