eclipse 中的 Java.lang.UnsatisfiedLinkError
我制作了一个插件,我正在尝试在控制台上打印批处理文件的输出!
输出显示此错误。
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试运行的软件不在 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.