- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我可以链接应该构建的文件,但这是我当前收到的错误。
Buildfile: C:\Users\********\Desktop\en-m8\build.xml
clean:
[delete] Deleting directory C:\Users\********\Desktop\en-m8\build
compile:
[mkdir] Created dir: C:\Users\********\Desktop\en-m8\build
[javac] C:\Users\********\Desktop\en-m8\build.xml:51: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 706 source files to C:\Users\********\Desktop\en-m8\build
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1256: error: method getId in class L1Object cannot be applied to given types;
[javac] pstm.setInt(1, player.getId(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1257: error: method getName in class L1Character cannot be applied to given types;
[javac] pstm.setString(2, player.getName(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1258: error: method getLevel in class L1Character cannot be applied to given types;
[javac] pstm.setInt(3, player.getLevel(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1259: error: method getId in class L1Object cannot be applied to given types;
[javac] pstm.setInt(4, getId(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1260: error: method getName in class L1Character cannot be applied to given types;
[javac] pstm.setString(5, getName(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1261: error: method getLevel in class L1Character cannot be applied to given types;
[javac] pstm.setInt(6, getLevel(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1263: error: method getX in class L1Object cannot be applied to given types;
[javac] pstm.setInt(8, getX(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1264: error: method getY in class L1Object cannot be applied to given types;
[javac] pstm.setInt(9, getY(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1265: error: method getMapId in class L1Object cannot be applied to given types;
[javac] pstm.setInt(10, getMapId(1));
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\Instance\L1PcInstance.java:1269: error: method isEnabledDeathPenalty in class L1Map cannot be applied to given types;
[javac] && getMap().isEnabledDeathPenalty(1)) {
[javac] ^
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\L1MobSkillUse.java:458: warning: [rawtypes] found raw type: Constructor
[javac] Constructor _constructor = Class
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\ThreadPoolManager.java:94: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleEffect(Runnable r, long delay) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\ThreadPoolManager.java:106: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleEffectAtFixedRate(Runnable r, long initial,
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\ThreadPoolManager.java:122: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleGeneral(Runnable r, long delay) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\ThreadPoolManager.java:134: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleGeneralAtFixedRate(Runnable r, long initial,
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\ThreadPoolManager.java:150: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleAi(Runnable r, long delay) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\ThreadPoolManager.java:162: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture scheduleAiAtFixedRate(Runnable r, long initial,
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Attr.java:314: warning: [static] static method should be qualified by type name, CharacterTable, instead of by an expression
[javac] CharacterTable.getInstance().updatePartnerId(
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_CreateChar.java:213: warning: [static] static method should be qualified by type name, CharacterTable, instead of by an expression
[javac] CharacterTable.getInstance().saveCharStatus(pc);
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_ItemUSe.java:5190: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Mail.java:55: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] L1Mail mail = MailTable.getInstance().getMail(mailId);
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Mail.java:133: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] for (L1Mail mail : MailTable.getInstance().getAllMail()) {
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Result.java:458: warning: [rawtypes] found raw type: List
[javac] List sellList;
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Result.java:541: warning: [unchecked] unchecked call to set(int,E) as a member of the raw type List
[javac] sellList.set(order, pssl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Result.java:566: warning: [rawtypes] found raw type: List
[javac] List buyList;
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Result.java:640: warning: [unchecked] unchecked call to set(int,E) as a member of the raw type List
[javac] buyList.set(order, psbl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Shop.java:70: warning: [rawtypes] found raw type: List
[javac] List sellList = pc.getSellList();
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Shop.java:71: warning: [rawtypes] found raw type: List
[javac] List buyList = pc.getBuyList();
[javac] ^
[javac] missing type arguments for generic class List<E>
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Shop.java:124: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
[javac] sellList.add(pssl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\clientpackets\C_Shop.java:185: warning: [unchecked] unchecked call to add(E) as a member of the raw type List
[javac] buyList.add(psbl);
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\command\executor\L1GfxId.java:51: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\datatables\FurnitureSpawnTable.java:70: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\datatables\LightSpawnTable.java:68: warning: [rawtypes] found raw type: Constructor
[javac] Constructor constructor = Class.forName(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\datatables\TrapTable.java:48: warning: [rawtypes] found raw type: Constructor
[javac] Constructor con = Class.forName(packageName + name).getConstructor(
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\datatables\TrapTable.java:49: warning: [rawtypes] found raw type: Class
[javac] new Class[] { TrapStorage.class });
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\L1EffectSpawn.java:41: warning: [rawtypes] found raw type: Constructor
[javac] private Constructor _constructor;
[javac] ^
[javac] missing type arguments for generic class Constructor<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Constructor
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\L1War.java:59: warning: [static] static method should be qualified by type name, WarTimeController, instead of by an expression
[javac] .getRealTime())) {
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\L1World.java:66: warning: [rawtypes] found raw type: ConcurrentHashMap
[javac] _visibleObjects = new ConcurrentHashMap[MAX_MAP_ID + 1];
[javac] ^
[javac] missing type arguments for generic class ConcurrentHashMap<K,V>
[javac] where K,V are type-variables:
[javac] K extends Object declared in class ConcurrentHashMap
[javac] V extends Object declared in class ConcurrentHashMap
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\npc\action\L1NpcActionFactory.java:35: warning: [rawtypes] found raw type: Class
[javac] private static Constructor<L1NpcAction> loadConstructor(Class c)
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\npc\action\L1NpcActionFactory.java:37: warning: [rawtypes] found raw type: Class
[javac] return c.getConstructor(new Class[] { Element.class });
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\model\skill\L1SkillTimer.java:669: warning: [deprecation] stop() in Thread has been deprecated
[javac] super.stop();
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\serverpackets\S_Mail.java:38: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] for (L1Mail mail : MailTable.getInstance().getAllMail()) {
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\serverpackets\S_Mail.java:79: warning: [static] static method should be qualified by type name, MailTable, instead of by an expression
[javac] L1Mail mail = MailTable.getInstance().getMail(mailId);
[javac] ^
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\taskmanager\TaskManager.java:63: warning: [rawtypes] found raw type: ScheduledFuture
[javac] ScheduledFuture _scheduled;
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\taskmanager\Task.java:39: warning: [rawtypes] found raw type: ScheduledFuture
[javac] public ScheduledFuture launchSpecial(ExecutedTask instance) {
[javac] ^
[javac] missing type arguments for generic class ScheduledFuture<V>
[javac] where V is a type-variable:
[javac] V extends Object declared in interface ScheduledFuture
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\utils\LeakCheckedConnection.java:45: warning: [rawtypes] found raw type: Class
[javac] new Class[] { Connection.class }, new ConnectionHandler());
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\utils\LeakCheckedConnection.java:116: warning: [rawtypes] found raw type: Class
[javac] new Class[] { c }, this);
[javac] ^
[javac] missing type arguments for generic class Class<T>
[javac] where T is a type-variable:
[javac] T extends Object declared in class Class
[javac] C:\Users\********\Desktop\en-m8\src\l1j\server\server\utils\collections\Lists.java:35: warning: [unchecked] Possible heap pollution from parameterized vararg type E
[javac] public static <E> List<E> of(E... elements) {
[javac] ^
[javac] where E is a type-variable:
[javac] E extends Object declared in method <E>of(E...)
[javac] 10 errors
[javac] 38 warnings
BUILD FAILED
C:\Users\********\Desktop\en-m8\build.xml:51: Compile failed; see the compiler error output for details.
Total time: 5 seconds
最佳答案
例如,每个错误都会告诉您出了什么问题
pstm.setInt(1, player.getId(1));
应该是
pstm.setInt(1, player.getId());
因为
[javac] required: no arguments
[javac] found: int
[javac] reason: actual and formal argument lists differ in length
关于Javac Ant 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32408359/
这个问题可能不是很清楚,所以让我用一个例子来说明我的意思。说我要复制几个文件夹: ... 但是我需要从如下所示的文本文件中加载它们,而不是在脚本中对这些文件夹
ant 和 ant clean all 的区别? 请任何人都可以清楚地说明何时使用 Ant 和 Ant 清洁所有。 C:> Ant c:> Ant 清理所有 最佳答案 “ant”运行项目的默认目标。
我想转换如下: 到: aoeu 的值可以包含任意数量的逗号分隔元素。 我可以使用 groovy Ant 任务,但不能使用 ant-contrib 中的任何
我看到了 this相关问题,但我的情况不同,所以再次询问。基本上,我必须按特定顺序运行 12 个 ant 文件。对于每个 ant 文件,我选择不同的目标,例如“创建”或“构建并部署全部”。如何创建一个
我可以编写一个在从另一个 ant 任务执行时获取参数的 ant 任务吗? 我通常试图实现的目标是重用现有任务不同的参数。 我不知道的是: ant中有这样的子任务吗? 它可以带参数吗? 如何以及在何处指
给定一个 ant 文件集,我需要对其执行一些类似 sed 的操作,将其压缩为多行字符串(每个文件有效一行),并将结果输出到文本文件。 我在寻找什么 Ant 任务? 最佳答案 Ant script ta
我有一个包含 jars 等绝对路径的属性文件。当使用这些属性时,它们以构建文件中指定的 basedir 为前缀。 我如何获得绝对路径? build.properties: mylib=/lib/myl
我有一个任务: someString someOtherString 如何连接 s
我遇到的情况涉及运行带有可选参数的 ant 构建,这些参数总是被指定但并不总是被定义,就像这样 ant -DBUILD_ENVIRONMENT=test -Dusername_ext= -Dconf.
我正在寻找一种在 Ant 文件中包含 .jar 的方法,以便我可以立即使用它并在我的目标中调用它的方法。 就我而言,它是 ant-contrib-1.0b3.jar . 最佳答案 最好的方法是将 An
我在 ant 方面比较新,在学校我有一个作业来做一个构建文件。我的问题之一是将其名称(或路径)作为 ant 参数的文件复制到“/foldercopy”。我需要做类似的事情: Ant cpfile文件.
亲爱的,我目前在检索foreach循环中设置的属性的值时遇到一些问题。也许你们中的一个可以帮助我... 目的是检查自从生成相应的jar之后,是否已修改文件夹的一个文件。这样,我知道是否必须再次生成ja
我想创建一个宏: 然后使用它: 但是,我想为隐式元素指定一个默认值......类似于: 所以我可以这样使用它:
我想将 ANT、JavaSDK 和 FlexSDK 包含到我的项目目录中。我需要我公司的人能够从源代码编译。 我有一个以以下内容开头的 build.bat 文件: ant blah/blah/blah
我想对目录中的每个文件使用 ant 脚本集只读 但 exec 不允许 filelist: The typ
如果我以 root 身份运行任务,有没有办法检测它是否以 root 身份运行并以不同的用户身份运行某些任务。 我有一些任务需要以 root 身份运行,但其他任务只需要以当前用户身份运行。 最佳答案 如
是否可以通过ant任务使用JUnit 4.6的新MaxCore运行程序? 最佳答案 从4.6开始,不幸的是没有。您需要创建自己的自定义Ant任务才能利用MaxCore功能。 关于ant - Ant J
我有一个关于 Ant 及其对环境变量的处理的问题。 为了说明我有一个小样本。 给定 Ant 构建文件 test.xml:
该文件如下所示: a1,b1 a2,b2 ... 我知道值“a2”。 如何将值“b2”转换为属性值。 我知道如何通过以下方式选择包含“a2”的行: 但是不知道如何将属性值设置为“b2”。 我
Ant 属性可以通过属性文件设置,从属性文件解析其他属性吗? 例如,我可以这样做: 和 prop2 变成“in_test_xml1”。那挺好的。 但在这种情况下,当使用输入属性文件时: prop1
我是一名优秀的程序员,十分优秀!