How to reconfigure eclipse to use a 64 bit JVM

前端 未结 7 1201
忘了有多久
忘了有多久 2021-01-05 07:42

I\'m using eclipse on what I thought were all 64 bit runtime environments. The current settings Java>installed JREs and Execution Environment all point to jdk1.6.0_30 which

相关标签:
7条回答
  • 2021-01-05 07:54

    Add the -vm tag to eclipse.ini or the shortcut to explicitly specify a JRE. Note that the default for Windows XP is to use the CRAPPY JRE that comes with Windows.

    -vm "%JAVA_HOME%/bin/javaw.exe"

    0 讨论(0)
  • 2021-01-05 07:55

    In eclipse.ini add:

    -Xmx8g
    -d64
    
    0 讨论(0)
  • 2021-01-05 08:01

    For me its working properly! . Make sure your path is c:\Program File not c:\Program File(X86) ( if you installed 64 bit JDK it should store in c:\ Program Files)

    0 讨论(0)
  • 2021-01-05 08:02

    The "installed JREs" (better use JDKs) are used for building and running your code and can be of different architecture or Java version. The JVM used for running Eclipse is defined in the eclipse.ini file. You should use the version for the architecture of the JVM.

    0 讨论(0)
  • 2021-01-05 08:02

    I think there is a bug in the Run Configuration page.

    I had to add the 64-bit JRE in run configuration, select it, and DELETE the 32-bit entry (even though it was already deselected).

    eclipse.ini didn't work for me.

    This is Eclipse Luna.

    0 讨论(0)
  • 2021-01-05 08:07

    Okay. This has been rather headache inducing, but I believe I have a solution. After changing the eclipse.ini, Go to your project properties. Under the Run/Debug settings, edit the launch configuration for your project. Under the JRE tag, click installed JREs. When that dialog comes up, click search. Go to your program files folder, NOT the x86 one, and let it search for your JREs. When the latest comes up, deselect the JRE that was currently selected and select the most recent JRE that it found. I renamed mine JRE7-64 just so I could identify a difference. This solved the issue on my end. Good luck

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