使用虚线导入名称构建ant [英] ant build with dotted import name

查看:76
本文介绍了使用虚线导入名称构建ant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到以下javac ant build错误。我尝试使用pathconvert用斜杠替换点分隔符,但这不起作用。建议请?



错误:

[javac] myfile.java:26:包test.schema.filetest不存在

[javac] import test.schema.filetest.FileROOT;

I'm getting the following javac ant build error. I tried using pathconvert to replace the dot separators with slashes, but that didn't work. Suggestions please?

ERROR:
[javac] myfile.java:26: package test.schema.filetest does not exist
[javac] import test.schema.filetest.FileROOT;

推荐答案

使用适当的IDE,如Eclipse或Netbeans。

两者都是免费的。

两者都会告诉你问题所在。



Eclipse下载 [ ^ ]



Netbeans下载 [ ^ ]





Use a proper IDE like Eclipse or Netbeans.
Both are free.
Both will tell you where the problem is.

Eclipse Download [^]

Netbeans Download [^]


[javac] myfile.java:26: package test.schema.filetest does not exist
[javac] import test.schema.filetest.FileROOT;





清楚地告诉你你的java文件myfile.java在第26行有一个错误。

它还告诉你出了什么问题:package test.schema.filetest不存在

它告诉你导入test.schema.filetest.FileROOT不可用。



Tells you clearly that your java file "myfile.java" has an error in line 26.
It also tells you what is wrong: "package test.schema.filetest does not exist"
And it tells you that the import of "test.schema.filetest.FileROOT" is not available.


我迪斯科舞厅问题是:在构建我的存档jar时,我的baseir中有一些导入节点如下所示。

上一个:

basedir =bin / frms / schema

包括=filetest / ** / * .class>

解决方案:

basedir =bin

包括=frms / schema / filetest / ** / * .class>
I discovered the problem: when building my archive jar, I had some of the import nodes within my basedir shown below.
PREVIOUS:
basedir="bin/frms/schema"
includes="filetest/**/*.class">
SOLUTION:
basedir="bin"
includes="frms/schema/filetest /**/*.class">


这篇关于使用虚线导入名称构建ant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆