简体   繁体   English

eclipse 中的 Java.lang.UnsatisfiedLinkError

[英]Java.lang.UnsatisfiedLinkError in eclipse

I have made a plugin and i am trying to print an output of a batch file on a console !我制作了一个插件,我正在尝试在控制台上打印批处理文件的 output !

The output shows this error. output 显示此错误。

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\prism-4.0\lib\prism.dll: Can't load IA 32-bit.dll on a AMD 64-bit platform java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\prism-4.0\lib\prism.dll: Can't load IA 32-bit.dll on a AMD 64-bit platform

I am new to eclipse.我是 eclipse 的新手。 Please let me know how to fix this error.请让我知道如何解决此错误。

Moreover !而且 ! I want to add some manual property (user defined) in my project !我想在我的项目中添加一些手动属性(用户定义)! Like when we select the project and right click then "properties" then there are options like "Resources", "Builders", "Task Repository", "Validation", "WikiText" etc. etc.. !就像我们 select 项目并右键单击“属性”然后有“资源”、“构建器”、“任务存储库”、“验证”、“WikiText”等选项。等等! I want to add my property say "ABC" .我想添加我的属性说"ABC" Then how can i add so?那我怎么加呢? Please let me know !请告诉我 ! It would be very helpful if i get an answer as soon as possible如果我能尽快得到答复将非常有帮助

I inquired once thay said that i need to know about IProjectNature.我曾经询问过他们说我需要了解 IProjectNature。 Please let me know abt more specific thing.. because i don't found it suitable in my case..请让我知道更具体的事情..因为我发现它不适合我的情况..

My code is...我的代码是...

    try {
        ProcessBuilder pb=new ProcessBuilder("C:\\Program Files (x86)\\prism-4.0\\bin\\prism.bat");
        pb.directory(new File("C:\\Program Files (x86)\\prism-4.0\\bin"));
        Process p=pb.start();

        BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));

        String in;
        while((in = input.readLine()) != null) {
            out.println(in);
        }


        int exitVal=p.waitFor();            

       out.println("Exited with error code "+exitVal+" shown and action performed \n");

The software you're trying to run does not run on a 64bit JVM (which your project probably is configured to use).您尝试运行的软件无法在 64 位 JVM(您的项目可能已配置为使用)上运行。

Try to change the JRE library for your project to a 32bit one.尝试将项目的 JRE 库更改为 32 位库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM