have you tried it. don't put everything in single line.
need to put the folder that contains the javaw or java executable. under ubuntu 18 with eclipse 4.7.1 i was able to get it to run with:
if it doesn't work then please confirm you have added above lines before
reinstall java and choose a destination folder without a space
-vm c:\program files\java\jdk1.6.0_07\bin\javaw.exe
try to escape the space with back slash.. like
go to c drive root in cmd type dir /x this will list down the directories name with ~.use that instead of program files in your jdk path
sometimes spaces in path create a problem. you can add e.g. -vm c:\progra~1\java\jre1.8.0_112\bin\javaw.exe
windows-vm "c:\program files\java\jdk1.6.0_07\jre\bin\javaw.exe"
i have windows 8.1 and my jdk under "program files" as well. what worked for me was replacing the name of the folder by the 8-digit internal ms-dos name.
i realized what was going on after running this in cmd.exe
dir p* /x
<dir> progra~1 program files
<dir> progra~2 program files (x86)
so we can find out how to use a path containing spaces
even if your %java_home% contains spaces, you can directly put entire string over there.
c:\program files (x86)\java\jdk1.8.0_162\bin
also, you don't have to specify javaw.exe in the path, just mention it till bin it will find javaw.exe in bin folder by itself. just keep one thing in mind that the jdk version you provide should match with the eclipse version you are using.
if you are using a 64 bit java then download 64 bit eclipse. if you are using a 32 bit java then download 32 bit eclipse.
solution in:how do i set the eclipse.ini -vm option?
must be the first thing in eclipse.ini
all above answers didn't work for me. my eclipse mars is x64 but i need to set registry dll to x86 for another software.
at the end i put -vm argument at the end of shortcut and this did the trick.
d:\mars\eclipse\eclipse.exe -vm "c:\program files\java\jre7\bin\server\jvm.dll"
according to this doc jvm.dll also work for some cases.
if you are using mac, proceed with following steps:
move to following directory:
add the java home explicitly in sts.ini file:
-vm /library/java/javavirtualmachines/jdk1.8.0_144.jdk/contents/home/bin -vmargs
make sure not to add all the statements in single line
i was facing the same issue but was unable to solve, until i try this:
- please make sure you put
- then press
- and then paste
-vm option must occur after the other eclipse-specific options (such as
--launcher.*, etc), but before the
-vmargs option, since everything after
-vmargs is passed directly to the jvm. add the
-vm option on its own line and the path to your jdk executable on the following line; e.g.
- the path is on a new line below the
- there is no need to escape any characters or use slashes (back-slashes are fine)
- the path points to the
bindirectory, not to
when you don't specify a virtual machine in your
eclipse.ini file, you may think that the
java_home environment variable is used, but this is not the case!
eclipse does not consult the java_home environment variable.
instead the windows search path will be scanned.
you may think it is a good idea to use the search path, because it is flexible.
while this is true, it also has the downside that the search path may be altered by installing or updating programs.
thus, i recommend to use the explicit setting in the
finding a vm
the reason why you should specify the
bin directory and not the
javaw.exe (as proposed by many other answers), is that the launcher can then dynamically choose which is the best way to start the jvm. see details of the launcher process for all details:
we look in that directory for: (1) a default.ee file, (2) a java launcher or (3) the jvm shared library.
you can verify which vm is used by your running eclipse instance in the configuration dialogue.
in eclipse oxygen go to help - about eclipse - installation details - configuration
you will see which vm path eclipse has chosen, e.g.:
add the entry of vm above the vm args else it will not work..! i.e `
-vm c:\program files\java\jdk1.7.0_75\bin\javaw.exe --launcher.appendvmargs -vmargs -dosgi.requiredjavaversion=1.6 -xms40m -xmx512m
- How to specify jdk path in eclipse.ini on windows 8 when path contains space
- How to specify the order of class members when formatting in Eclipse
- How to specify arguments when starting Android emulator in Eclipse (to wipe data)
- How to automatically change Eclipse build path when I check out Git branches
- How do I step into JDK source code when debugging remotely in Eclipse
- Windows 7 64, Eclipse 64, JDK 64 and specified DSN contains an architecture mismatch
- How to change default build directory path in Eclipse CDT when "Generate makefiles automatically" is enabled?
- How to find out which JDK (not JRE) an installation of Eclipse on Windows is using
- How to config maven pom.xml when my don't want src/test/java present in my eclipse java build path source category when update project?
- how to execute c program in windows command prompt when run from eclipse cdt
- How to start Eclipse when Windows 10 starts
- How to specify CLIENT when doing SQL SELECT statement against a Calculation View in Eclipse HANA View?
- How do I specify an old JDK compliance in an Eclipse project?
- eclipse how to add the windows which contains my functions
- How to make a jar in Eclipse that contains HTML files that need to run when the jar is started?
- How to specify path to property files in Eclipse via Run Configurations?
- How to reference libraries in jdk without hardcoding path in Eclipse project file?
- How do I set default file path location in windows builder eclipse (java)
- How to specify command line arguments for my C program when running it from the Eclipse IDE
- How to create qt application in eclipse cdt when qt plugin not working in windows
- How do I retain git history and project location in eclipse on windows when moving from 2 drives to 1?
- How can I bind sources of 3rd party jar to eclipse for debugging when jar is not on the class path
- How to output messages to the Eclipse console when developing for Android
- How to configure Eclipse build path to use Maven dependencies?
- How to open windows explorer on selected resource in Eclipse
- How to make Eclipse behave well in the Windows 7 taskbar?
- How to change JDK version for an Eclipse project
- Eclipse can't find XML related classes after switching build path to JDK 10
- How to reference javadocs to dependencies in Maven's eclipse plugin when javadoc not attached to dependency
- How do I run Eclipse using Oracle's new 1.7 JDK for the Mac?
More Query from same tag
- Scroll function doesn't work properly with hyperlink
- Warning on sip.xml in Eclipse
- Eclipse fails to start via an application launcher
- subclipse override and commit?
- Cannot upgrade Android SDK
- Eclipse, is there a reason to chose it over emacs or vi?
- ScalaTest HTML report using Eclipse plugin
- Removing a plugin for Webbrowsers (MyEclipse)
- How to reload same fragment from within itself in android
- How to hide Eclipse DevStyle vertical line (page separator?)
- Running multiple run configurations
- How do you run JUnit tests in Flatpak Eclipse?
- Eclipse Gradle Project No JUnit Tests found
- Here's a challenge: I can display a long .txt file just fine in the emulator, but the text gets cut off when I read it on my phone
- Maven Integration for Eclipse JDK Warning
- Type 'uint32_t' could not be resolved
- The executable generated by install4j doesnt start
- Create one exe file with buil-in static libraries
- Exception using apache derby
- Eclipse Error with Java 7
- Getting HTTP-404 error while running spring MVC application in Eclipse - Tutorials point hello world example
- How to populate table with specific values instead of pseudo-random?
- maven-scala-spring-jetty servlet not initialized
- Maven multimodule projects linking in eclipse
- How do I eliminate libs in Maven ear build?
- How do I import project by creating another project and then pasting it over it?
- How can I make two columns with a RecylcerView?
- design app for tablets eclipse google play
- Eclipse : switch workspace from svn to git (code already migrated)
- Import maven project into Eclipse/Android project