问题
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");
回答1:
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.
来源:https://stackoverflow.com/questions/6661506/java-lang-unsatisfiedlinkerror-in-eclipse