Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )

后端 未结 13 1483
深忆病人
深忆病人 2020-11-30 07:34

I\'m trying to debug this problem but not sure where exactly i need to replace SWT jar file for Eclipse.

Current System Config:

Ecl         


        
相关标签:
13条回答
  • 2020-11-30 08:02

    Install a JDK.

    It's possible to get Eclipse to run with a JRE, or at least it used to be, but why bother? Eclipse is much happier with a JDK.

    Remember that the JRE that is used to run Eclipse does not have to be the JRE that Eclipse uses to run an application.

    PS. I'm assuming here that the original poster's problem was getting Eclipse to start, and not (as some other Answers seem to address) getting Eclipse to start an application.

    0 讨论(0)
  • 2020-11-30 08:03

    Go to Path C:\ProgramData\Oracle\Java\javapath (This path is in my case might be different in your case). Rename the folder ORACLE with other name line ORACLE_OLD. And Restart the STS/IDE . This works for me

    0 讨论(0)
  • 2020-11-30 08:04

    I also faced the same problem a long time ago.

    Here is the Solution

    In Eclipse Click on "Windows"-->"Preferences"---->"Java"---> "Installed JREs"---->Select the JDK, click on "Edit".

    Check your JDK path, is it according to your path in environmental variables defined in system. if not then change it to "path" defined directory.

    0 讨论(0)
  • 2020-11-30 08:05

    i removed C:\ProgramData\Oracle\Java\javapath from my path, and it worked for me.

    and make sure you include x64 JDK and JRE addresses in your path.

    0 讨论(0)
  • 2020-11-30 08:06

    So , just make sure that you are on the right environment i.e 32 bit SWT LIBRARIES should match 32 bit JVM , vice versa.

    I solved this problem by installing 64-bit jdk ,64-bit jre and finally by adding setting the jdk path in environment variables adn adding jre to the eclipse.

    0 讨论(0)
  • 2020-11-30 08:07

    I just replaced the swt.jar in my package with the 64bit version and it worked straight away. No need to recompile the whole package, just replace the swt.jar file and make sure your application manifest includes it.

    0 讨论(0)
提交回复
热议问题