Eclipse is probably the most used and de-facto standard IDE for any development for ARM Cortex or any other devices. It is very easy these days to construct an unlimited and unrestricted IDE (see “Breathing with Oxygen: DIY ARM Cortex-M C/C++ IDE and Toolchain with Eclipse Oxygen“). Up to the point that I can pack it into a .zip file and pass it around e.g. in a class room environment, so no installer at all is needed with the exception of the debug probe USB drivers. As Eclipse is using a Java Virtual Machine (VM), it is a good idea to bundle the VM with the IDE, and this article is about how to do this.
First, I need to find the Java VM. Usually it is already installed on the host machine (otherwise install it from https://java.com). Usually on Windows it is in
or I can use the Java control panel and the ‘View’ button to see where it is running:
Copy that Java folder into the Eclipse folder:
Open the Eclipse.ini and add the following two lines right after –launcher.appendVmargs:
Then launch Eclipse. I can check which Java VM is used using the Help > About menu item. Clicking in the dialog on the ‘Installation Details’ gives me the Java VM used:
That’s it! I’m running now Eclipse with a local Java VM and do not depend on one installed otherwise on the host :-).
That of course potentially duplicates the Java VM on a machine. But on the other end it makes the Eclipse IDE very self-contained which is a good thing in many ways.
Happy Javing 🙂