The problem with .exe
files is that they typically search the Java runtime on their own and there is no generic way to tell all of them where it is located.
In case of eclipse you can though e.g. by editing the eclipse.ini
file.
Add
-vm
/usr/lib/jvm/java-7-oracle/bin
to the beginning of the file (with your path) and it should now start using the runtime you have specified.
A generic solution would be to figure out how the exe file runs the java code and then run it manually via javaw.exe -jar
- that might not be possible if the exe file has the java code included and extracts it on demand. There are on the other hand versions as plain jar
(often the version for Linux) that don't need all the exe workarounds.