Can not add all the classes files from the JNI fol

2019-01-28 23:35发布

I have a classes directory "JNA" contains follwing .class files :

MClass.class
SClass$SC_PROC.class
SClass$S_PROC.class
SClass.class

and then I tried to add this directory in my current project : Java Build Path -> Add external class folder -> class (JNA)folder path -> ok

After this eclipse only adds two .class files :

MClass.class
SClass.class

I tried to put all class files in a jar file and added external jar, still the result is same :(

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

1条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-29 00:08

I read lot in order to make it run but, nothing could help,

(Somebody said it is the known bug in eclipse)

So I just,

  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

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

查看更多
登录 后发表回答