1 |
If all what script is doing is executing "java", just add the right |
2 |
JRE to your PATH as first element. |
3 |
|
4 |
On 3 February 2016 at 01:04, Leonardo Guilherme |
5 |
<leonardo.guilherme@×××××.com> wrote: |
6 |
> Problem is, the SenchaCmd script runs java directly, which resolves to |
7 |
> /usr/bin/java, which itself is a script that checks the user choice |
8 |
> regarding the selected java-vm: setting JAVA_HOME does nothing to fix that. |
9 |
> I can edit the SenchaCmd script to run java directly, that would be the |
10 |
> quickfix. |
11 |
> |
12 |
> Thanks for the input. |
13 |
> |
14 |
> Em seg, 1 de fev de 2016 às 13:41, Alon Bar-Lev <alonbl@g.o> |
15 |
> escreveu: |
16 |
>> |
17 |
>> On 31 January 2016 at 19:17, Leonardo Guilherme |
18 |
>> <leonardo.guilherme@×××××.com> wrote: |
19 |
>> > |
20 |
>> > Hello. |
21 |
>> > |
22 |
>> > I'm using OpenJDK JVM regularly on my machine instead of Oracle's one, |
23 |
>> > primarily because of the infinality patches and because I prefer open source |
24 |
>> > software. |
25 |
>> > |
26 |
>> > There are some applications, though, that do not play ball with it |
27 |
>> > (namely, SenchaCmd) and I have to keep switching back and forth between |
28 |
>> > installed java-vms just to run it. |
29 |
>> > |
30 |
>> > I know nothing about Java or its environment, is there a way to specify |
31 |
>> > the java-vm just for this application instead of doing "eselect java-vm set |
32 |
>> > user 1; sencha *stuff*; eselect java-vm set user 3" everytime? |
33 |
>> > |
34 |
>> > Is there a set of environment variables that can do this? Shall I wrap |
35 |
>> > the command in a shell script? Ideas? |
36 |
>> |
37 |
>> Usually, every [well behaved] java application has JAVA_HOME or |
38 |
>> similar environment variable to tell it where java is. |
39 |
>> You can find a valid java homes at /usr/lib/jvm/*/jre or if you |
40 |
>> manually extracted oracle it will probably live in /opt/xxx. |
41 |
>> |
42 |
>> What you should do is go over this SenchaCmd startup script and find |
43 |
>> what it expects. |
44 |
>> |
45 |
>> Regards, |
46 |
>> Alon |
47 |
>> |
48 |
> |