Question: I am playing with some sensors which are made to be used on cell phone's headphone jack. Using sensors on iPhone or specific Android phones (Galaxy III for example) is no problem, but on other Android phones (for example Nexus S, Nexus, ...) output voltage is to low... 

Is it by any chance possible to control output voltage using software solution?

Answer: 
Try `exec -a Java_Process_1 java <classname>`
If you're using bash, you should accept hwatkins's answer.
Otherwise you can use one of several small programs made exectly for this purpose, like argv0 from <http://cr.yp.to/ucspi-tcp.html>, runit's chpst (<http://smarden.org/runit/chpst.8.html>) etc