Re: How do I set different JAVA_HOME for different users?

2016-04-07 Thread Thomas Schmitt
Hi, > The trouble is, often you need to know where to look, The collective brain here always has interesting proposals. :)) > A shell script exactly like that was what what I started out with! > It worked ONLY for that terminal. You'd need to put start of the whole android development into tha

Re: How do I set different JAVA_HOME for different users?

2016-04-07 Thread Jaimz Fairfax
From: Thomas Schmitt To: debian-user@lists.debian.org Sent: Wednesday, 6 April 2016, 16:50 Subject: Re: How do I set different JAVA_HOME for different users? Hi, Jaimz Fairfax wrote: > The internet seemed to be convinced that it had to be done via systemd > user.conf.

Re: How do I set different JAVA_HOME for different users?

2016-04-06 Thread Thomas Schmitt
Hi, Jaimz Fairfax wrote: > The internet seemed to be convinced that it had to be done via systemd > user.conf. That opinion does not have to be wrong. It depends on the level of software which you want to influence. Environment variables are a very fundamental feature. Programs can see them even

Re: How do I set different JAVA_HOME for different users? SOLVED

2016-04-06 Thread Mark Fletcher
On Wed, Apr 6, 2016 at 11:03 PM Jaimz Fairfax wrote: > The internet seemed to be convinced that it had to be done via systemd > user.conf. > > Unfortunately the Internet frequently talks bollocks, with great confidence... Mark

Re: How do I set different JAVA_HOME for different users? SOLVED

2016-04-06 Thread Jaimz Fairfax
From: Thomas Schmitt To: debian-user@lists.debian.org Sent: Wednesday, 6 April 2016, 9:59 Subject: Re: How do I set different JAVA_HOME for different users? I have most of my personal preferences in ~/.bashrc .Stuff like:   export LC_COLLATE="C"   export HISTCONTROL=&

Re: How do I set different JAVA_HOME for different users?

2016-04-06 Thread Thomas Schmitt
Hi, assuming you are running bash as shell, there are the startup files for login and shell start. >From man bash: /etc/profile The systemwide initialization file, executed for login shells /etc/bash.bashrc The systemwide per-interactive-shell startup fil

How do I set different JAVA_HOME for different users?

2016-04-06 Thread Jaimz Fairfax
I am running debian unstable, systemd version 229.I am learning Android development. Android Studio uses JAVA_HOME = /usr/java/jdk1.8.0_66.Some of the code I want to investigate uses Apache maven and that wants JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64 I setup user2 so that when logging in