How to make my SWT application run on Java 32 bit and Java 64 bit machines












0














I developed a SWT runnable jar and supposedly I'm using a 32bit and 64 bit compatible SWT .jar library.



enter image description here



As you can see this SWT jar has 32 and 64 in his name: org.eclipse.swt.win32.win32.x86_64



When I execute this on my developer machine which has java jdk 64 bit installed it works perfectly, but when I execute it on a 32 bit java machine, it gives this error: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM



Why? is not that library for both 64 and 32 bit as it's name says?










share|improve this question






















  • SWT libraries are different for 32 bit and 64 bit, and different for each platform. That is why there are 32 and 64 bit versions of Eclipse (which is just a very complex SWT program)
    – greg-449
    Nov 13 at 9:05












  • but @greg-449 then this library is for 32 or 64? what should i do?
    – NullPointerException
    Nov 13 at 9:08










  • Looks like you have to have separate version for 32 and 64 bit. Eclipse solve this problem by having two version. If they didn't know solution it means that there is no solution at all.
    – talex
    Nov 13 at 9:17










  • @talex what should i do now to make my runnable jar compatible with 32 bit java and SO?
    – NullPointerException
    Nov 13 at 9:18










  • I can't find where to download a specific 32 bits swt library :S
    – NullPointerException
    Nov 13 at 9:22
















0














I developed a SWT runnable jar and supposedly I'm using a 32bit and 64 bit compatible SWT .jar library.



enter image description here



As you can see this SWT jar has 32 and 64 in his name: org.eclipse.swt.win32.win32.x86_64



When I execute this on my developer machine which has java jdk 64 bit installed it works perfectly, but when I execute it on a 32 bit java machine, it gives this error: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM



Why? is not that library for both 64 and 32 bit as it's name says?










share|improve this question






















  • SWT libraries are different for 32 bit and 64 bit, and different for each platform. That is why there are 32 and 64 bit versions of Eclipse (which is just a very complex SWT program)
    – greg-449
    Nov 13 at 9:05












  • but @greg-449 then this library is for 32 or 64? what should i do?
    – NullPointerException
    Nov 13 at 9:08










  • Looks like you have to have separate version for 32 and 64 bit. Eclipse solve this problem by having two version. If they didn't know solution it means that there is no solution at all.
    – talex
    Nov 13 at 9:17










  • @talex what should i do now to make my runnable jar compatible with 32 bit java and SO?
    – NullPointerException
    Nov 13 at 9:18










  • I can't find where to download a specific 32 bits swt library :S
    – NullPointerException
    Nov 13 at 9:22














0












0








0







I developed a SWT runnable jar and supposedly I'm using a 32bit and 64 bit compatible SWT .jar library.



enter image description here



As you can see this SWT jar has 32 and 64 in his name: org.eclipse.swt.win32.win32.x86_64



When I execute this on my developer machine which has java jdk 64 bit installed it works perfectly, but when I execute it on a 32 bit java machine, it gives this error: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM



Why? is not that library for both 64 and 32 bit as it's name says?










share|improve this question













I developed a SWT runnable jar and supposedly I'm using a 32bit and 64 bit compatible SWT .jar library.



enter image description here



As you can see this SWT jar has 32 and 64 in his name: org.eclipse.swt.win32.win32.x86_64



When I execute this on my developer machine which has java jdk 64 bit installed it works perfectly, but when I execute it on a 32 bit java machine, it gives this error: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM



Why? is not that library for both 64 and 32 bit as it's name says?







java eclipse swt 32bit-64bit






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 13 at 9:02









NullPointerException

12.8k52159278




12.8k52159278












  • SWT libraries are different for 32 bit and 64 bit, and different for each platform. That is why there are 32 and 64 bit versions of Eclipse (which is just a very complex SWT program)
    – greg-449
    Nov 13 at 9:05












  • but @greg-449 then this library is for 32 or 64? what should i do?
    – NullPointerException
    Nov 13 at 9:08










  • Looks like you have to have separate version for 32 and 64 bit. Eclipse solve this problem by having two version. If they didn't know solution it means that there is no solution at all.
    – talex
    Nov 13 at 9:17










  • @talex what should i do now to make my runnable jar compatible with 32 bit java and SO?
    – NullPointerException
    Nov 13 at 9:18










  • I can't find where to download a specific 32 bits swt library :S
    – NullPointerException
    Nov 13 at 9:22


















  • SWT libraries are different for 32 bit and 64 bit, and different for each platform. That is why there are 32 and 64 bit versions of Eclipse (which is just a very complex SWT program)
    – greg-449
    Nov 13 at 9:05












  • but @greg-449 then this library is for 32 or 64? what should i do?
    – NullPointerException
    Nov 13 at 9:08










  • Looks like you have to have separate version for 32 and 64 bit. Eclipse solve this problem by having two version. If they didn't know solution it means that there is no solution at all.
    – talex
    Nov 13 at 9:17










  • @talex what should i do now to make my runnable jar compatible with 32 bit java and SO?
    – NullPointerException
    Nov 13 at 9:18










  • I can't find where to download a specific 32 bits swt library :S
    – NullPointerException
    Nov 13 at 9:22
















SWT libraries are different for 32 bit and 64 bit, and different for each platform. That is why there are 32 and 64 bit versions of Eclipse (which is just a very complex SWT program)
– greg-449
Nov 13 at 9:05






SWT libraries are different for 32 bit and 64 bit, and different for each platform. That is why there are 32 and 64 bit versions of Eclipse (which is just a very complex SWT program)
– greg-449
Nov 13 at 9:05














but @greg-449 then this library is for 32 or 64? what should i do?
– NullPointerException
Nov 13 at 9:08




but @greg-449 then this library is for 32 or 64? what should i do?
– NullPointerException
Nov 13 at 9:08












Looks like you have to have separate version for 32 and 64 bit. Eclipse solve this problem by having two version. If they didn't know solution it means that there is no solution at all.
– talex
Nov 13 at 9:17




Looks like you have to have separate version for 32 and 64 bit. Eclipse solve this problem by having two version. If they didn't know solution it means that there is no solution at all.
– talex
Nov 13 at 9:17












@talex what should i do now to make my runnable jar compatible with 32 bit java and SO?
– NullPointerException
Nov 13 at 9:18




@talex what should i do now to make my runnable jar compatible with 32 bit java and SO?
– NullPointerException
Nov 13 at 9:18












I can't find where to download a specific 32 bits swt library :S
– NullPointerException
Nov 13 at 9:22




I can't find where to download a specific 32 bits swt library :S
– NullPointerException
Nov 13 at 9:22

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53277276%2fhow-to-make-my-swt-application-run-on-java-32-bit-and-java-64-bit-machines%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53277276%2fhow-to-make-my-swt-application-run-on-java-32-bit-and-java-64-bit-machines%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to pass form data using jquery Ajax to insert data in database?

National Museum of Racing and Hall of Fame

Guess what letter conforming each word