eclipse 中的 Java.lang.UnsatisfiedLinkError

发布于 2024-11-19 08:38:28 字数 1103 浏览 6 评论 0原文

我制作了一个插件,我正在尝试在控制台上打印批处理文件的输出!

输出显示此错误。

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\prism-4.0\lib\prism.dll: 无法在 AMD 64 位平台上加载 IA 32 位 .dll

I我是 Eclipse 新手!请让我知道如何修复此错误。

而且 !我想在我的项目中添加一些手动属性(用户定义)!就像当我们选择项目并右键单击“属性”时,就会出现“资源”、“构建器”、“任务存储库”、“验证”、“WikiText”等选项强>等等等等!我想添加我的属性,例如“ABC”。那我该如何添加呢?请告诉我 ! 如果我尽快得到答案,那将非常有帮助

一旦他说我需要了解 IProjectNature,我就询问, 。请让我知道更具体的事情..因为我发现它不适合我的情况..

我的代码是...

    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");

I have made a plugin and i am trying to print an output of a batch file on a console !

The output shows this error.

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 ! 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.. ! I want to add my property say "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. 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");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

水水月牙 2024-11-26 08:38:28

您尝试运行的软件不在 64 位 JVM 上运行(您的项目可能配置为使用该 JVM)。

尝试将项目的 JRE 库更改为 32 位库。

The software you're trying to run does not run on a 64bit JVM (which your project probably is configured to use).

Try to change the JRE library for your project to a 32bit one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文