Results 1 to 8 of 8

Thread: eclipse is running in a jre, but a jdk is required

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    2

    Default eclipse is running in a jre, but a jdk is required

    I tried multiple ways and I could not get rid of the Console warning:

    Eclipse is running in a JRE, but a JDK is required
    Some Maven plugins may not work when importing projects or updating source folders.


    1. I have my java_home point to my JDK
    2. I have my STS Eclipse "Installed JRE" configured with JDK JRE
    3. I tried to include -vm C:/MyPrograms/jdk1.6.0_18/bin/javaw in the STS.ini
    4. I tried to bring it up directly using one of the commands. I got an error: Could not find the main class: -v C:\Program. Program will exit. Could not figure out why it is referencing C:\Program because I have been trying to reference everything to C:/MyPrograms.
    stsc -vm C:/MyPrograms/jdk1.6.0_18/bin/javaw.exe
    stsc -vm C:/MyPrograms/jdk1.6.0_18/bin/javaw
    sts -vm C:/MyPrograms/jdk1.6.0_18/bin/javaw.exe
    sts -vm C:/MyPrograms/jdk1.6.0_18/bin/javaw

    Sharing your thoughts are appreciated.

    Thanks,
    Benl

  2. #2
    Join Date
    Nov 2009
    Posts
    3

    Default

    I'm also having this problem. I haven't been able to resolve this and gave up on using STS months ago. I just tried again hoping that it had been resolved.

    I've followed the instructions in the prompts, editing STS.ini to point to a working jdk's javaw.exe file, to just the root of the jdk etc. to no avail.

    I have also configured my installed jre to point to the same jdk. This problem persists.

  3. #3
    Join Date
    Mar 2010
    Posts
    2

    Default

    I continue working with the warnings. It appears that the Maven error is somewhat working. I was able to run some of the apps under Dashboard. However, I ran into some problems and don't know if they are related to the warnings.

  4. #4
    Join Date
    Apr 2010
    Posts
    1

    Default

    I had the problem, and after some digging around found a solution. Put these two lines in your STS.ini:

    -vm
    G:/dev/jdk1.6.0_19/bin/javaw.exe

    Where the second line points to the javaw.exe from your installed JDK. I tried these two lines at the end of the file STS.ini, but that did not work. So they have to be at the beginning, before all the other lines of the .ini file.

    Hope it helps.

  5. #5
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hi,

    if you download the STS platform specific installer, this will be handled for you by the installer and you don't need to mess around with the ini file yourself.

    Regards, Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

  6. #6
    Join Date
    Jun 2010
    Posts
    1

    Default

    In order to make it work, I had to write in STS.ini:

    Code:
    --launcher.XXMaxPermSize
    256M
    -vm
    C:/apps/Java/jdk1.6.0_20/bin/javaw.exe
    -vmargs
    Pay attention to:
    - The position of -vm (after --launcher and before -vmargs)
    - the architecture of your OS... make sure you have an x64 JVM if you are running an x64 STS
    Last edited by gletare; Jun 24th, 2010 at 02:55 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •