On 31 January 2016 at 19:17, Leonardo Guilherme <[email protected]> wrote: > > Hello. > > I'm using OpenJDK JVM regularly on my machine instead of Oracle's one, > primarily because of the infinality patches and because I prefer open source > software. > > There are some applications, though, that do not play ball with it (namely, > SenchaCmd) and I have to keep switching back and forth between installed > java-vms just to run it. > > I know nothing about Java or its environment, is there a way to specify the > java-vm just for this application instead of doing "eselect java-vm set user > 1; sencha *stuff*; eselect java-vm set user 3" everytime? > > Is there a set of environment variables that can do this? Shall I wrap the > command in a shell script? Ideas?
Usually, every [well behaved] java application has JAVA_HOME or similar environment variable to tell it where java is. You can find a valid java homes at /usr/lib/jvm/*/jre or if you manually extracted oracle it will probably live in /opt/xxx. What you should do is go over this SenchaCmd startup script and find what it expects. Regards, Alon

