无法从Eclipse中的JNI文件夹中添加所有类文件(JAVA,Windows 7) [英] Can not add all the classes files from the JNI folder in Eclipse (JAVA, Windows 7)

查看:158
本文介绍了无法从Eclipse中的JNI文件夹中添加所有类文件(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)

所以我只是,


  1. 将所有代码移植到 NetBeans IDE (我正在使用8.0版),

  2. 将所有必需的类文件夹和jar添加到图书馆
    文件夹

  3. 添加 bin 包含所有必需的的文件夹。 dll PATH
    环境变量

  1. ported all the code to NetBeans IDE (I am using version 8.0),
  2. added all the required classes folders and jars to the Libraries folder
  3. added bin folder containing all required .dll to PATH environmental variable

和yay ... :)它工作...

and yay... :) It worked...

这篇关于无法从Eclipse中的JNI文件夹中添加所有类文件(JAVA,Windows 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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