Reputation: 21654
Giving STS as an example.
I wish to have only one single installation of Eclipse STS 3.9.7. Normally I run more than one session of Eclipse/STS. I need to have
I also have an Eclipse 2018-12 installation. I wish to have only one such installation, from which I wish to start
The only way I know how to specify the JDK is by specifying it on the ini config file. Perhaps there is another way. Therefore, currently I have multiple replicated copies of Eclipse/STS installations, each specified to start up from a different JDK.
Having proliferation of Eclipse/STS installations of the same version is very undesirable and confusing. Especially when I need to install or update modules from the Marketplace across all of them.
Is there a better way than having multiple replicated installations, in order to variously specify the JDK/bin/javaw paths to start up each of my sessions?
Upvotes: 0
Views: 185
Reputation: 34135
As an alternative to --launcher.ini <path>
already mentioned by greg-449, there is a trick that works without any command line argument:
Copy the executable (eclipse.exe
on Windows, eclipse
on macOS and Linux) and the eclipse.ini
files. When you execute the renamed executable file, the correspondingly renamed .ini
file instead of eclipse.ini
is used.
Upvotes: 1
Reputation: 111142
You can use the --launcher.ini <path>
command line option to specify a different 'config.ini' file to use when starting Eclipse.
Upvotes: 1