Announcement Announcement Module
Collapse
No announcement yet.
STS 2.1.0.SR01 unable to change JDK using -vm STS.ini on Mac Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS 2.1.0.SR01 unable to change JDK using -vm STS.ini on Mac

    Mac OS X 10.5.8
    STS 2.1.0.SR01
    Latest JDK 1.6

    The CurrentJDK, Current, A all of them point to the 1.6 version.
    java -version on the command line uses this as well.

    STS is using JDK 1.5 as shown by configuration in the About information dialog.

    If I specify
    -vm
    /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
    It still uses JDK 1.5.
    Even explicitly setting it to
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0
    Does Not Work.

    Is STS ignoring STS.ini file?

    How do I make STS run on JDK 1.6 and not JDK 1.5?

    Thanks
    md

  • #2
    md,

    where do you put the STS.ini file or are you editing the existing file in STS.app/Contents/MacOS/STS.ini?

    Please try the following command option:

    Code:
    -vm
    /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
    I just tried add the -vm option to the existing STS.ini and it works fine for me.

    Christian

    Comment


    • #3
      Christian,

      I modified the STS.ini in STS.app with the exact same -vm line that you specified.

      Even after this change was made to the STS.ini, the Configuration tab of the Installation Details dialog shows the following:

      java.version=1.5.0_20 in
      java.vm.version=1.5.0_20-141
      java.runtime.version=1.5.0_20-b02-315

      which tells me STS is using JDK 1.5.

      Note:
      I used Java Preferences to change the default Java to J2se6, i.e., runing java -version shows a Java 1.6.0_15 vm. However, the /System/Library/Frameworks/JavaVM.Framework/Versions/CurrenttJDK symlinks to 1.5. Even with this change the above three system properties do not change.

      I am using the carbon release of STS.

      Am I missing something?

      Could you please also tell me if STS failure on start up logs to <workspace>/.metadata/.log or somewhere else?

      Thanks
      md

      Comment


      • #4
        md,

        Looking through your posts I realize that you are using Mac OS X Leopard which only comes with a 64-bit Java 6 JDK. This 64-bit JDK is not supported by the Carbon port of Eclipse SWT. You need to get the Cocoa ports to use STS with Java 6 or update to Snow Leopard which ships a new 32-bit Java 6 JVM.

        Christian

        Comment


        • #5
          Christian,

          Yeah!! you are right. I figured it out when -d32 jvm switch on Leopard for JDK 6 did not work.

          It would be great if some sort of message or notification is logged or displayed.

          How stable are the Cocoa ports, I saw notable concerns on STS download page regarding it.

          Thanks
          md

          Comment

          Working...
          X