无法从Eclipse中的JNI文件夹中添加所有类文件(JAVA,Windows 7) [英] Can not add all the classes files from the JNI folder in Eclipse (JAVA, Windows 7)
问题描述
我有一个类目录JNA包含以下.class文件:
I have a classes directory "JNA" contains follwing .class files :
MClass.class
SClass$SC_PROC.class
SClass$S_PROC.class
SClass.class
然后我试图在我当前的项目中添加此目录:
Java构建路径 - >添加外部类文件夹 - >类(JNA)文件夹路径 - > ok
and then I tried to add this directory in my current project : Java Build Path -> Add external class folder -> class (JNA)folder path -> ok
之后这个eclipse只添加了两个.class文件:
After this eclipse only adds two .class files :
MClass.class
SClass.class
我试图将所有类文件放在一个jar文件中并添加外部jar,结果仍然是一样的:(
I tried to put all class files in a jar file and added external jar, still the result is same :(
请告诉我如何添加剩余的.class文件?
注意:由于Eclipse无法添加剩余的两个.class文件eclipse发生错误:
Please tell me how to add those remaining .class files ? Note : as Eclipse could not add remaining two .class files eclipse is giving an error :
The type SClass$SC_PROC.class cannot be
resolved. It is indirectly referenced from required .class files
推荐答案
我读了lo为了使它运行,但没有什么可以帮助,
I read lot in order to make it run but, nothing could help,
(有人说这是eclipse中已知的错误)
(Somebody said it is the known bug in eclipse)
所以我只是,
- 将所有代码移植到
NetBeans IDE
(我正在使用8.0版), - 将所有必需的类文件夹和jar添加到
图书馆
文件夹 - 添加
bin
包含所有必需的的文件夹。 dll
到PATH
环境变量
- ported all the code to
NetBeans IDE
(I am using version 8.0), - added all the required classes folders and jars to the
Libraries
folder - added
bin
folder containing all required.dll
toPATH
environmental variable
和yay ... :)它工作...
and yay... :) It worked...
这篇关于无法从Eclipse中的JNI文件夹中添加所有类文件(JAVA,Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!