The script that is executed by "service jenkins start" is likely explicitly
declaring a java version by its path to the java executable.  If you're on
a Red Hat derivative, you could look at /etc/sysconfig/jenkins to see if it
calls for a specific java version.  If you're on a Debian dreivative, you
could look at /etc/defaults/jenkins to see if it calls for a specific java
version.

Mark Waite

On Thu, May 21, 2015 at 7:04 AM <[email protected]> wrote:

> jenkins master: Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09
> UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> When upgrading from the 1.611 war file with 1.612 and running "service
> jenkins start" in my shell indicates I need java 7 and I'm running java
> 6. I see that 1.612 now requires Java 7. However, running "java -version"
> I see:
>
> java version "1.7.0_65"
>
> How can I fix the discrepancy between which version of Java Jenkins is
> looking at, and which version of Java my server is looking at? In other
> words: I want to tell Jenkins to use Java 7, which is already installed on
> my server. All the java variables under System Properties on my Jenkins
> page point to Java 6.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/17da5b2e-6153-4015-8a0f-ce3a60362aeb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEUrWq50vw3yhx%3Dz6ez2L8v8z6qhmisNc83iwv5vJPuqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to