Yes, you need to assure that the JDK 7 java is the first one found by that
start script.

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

> That got me thinking though, the jenkins script in /etc/init.d does have a
> for loop:
>
> for candidate in /usr/lib/jvm/java-1.6.0/bin/java
> /usr/lib/jvm/jre-1.6.0/bin/java /usr/lib/jvm/java-1.5.0/bin/java
> /usr/lib/jvm/jre-1.5.0/bin/java /usr/bin/java
>
>
> Could I add in the path to my java 7 (which does exists)? /usr/lib/jvm
> /jre-1.7.0/java
>
>
> On Thursday, May 21, 2015 at 9:53:00 AM UTC-4, [email protected]
> wrote:
>>
>> Oh interesting thanks.
>>
>> So the only thing I see in there that MIGHT be close to that is this:
>>
>> JENKINS_JAVA_OPTIONS="-Djava.io.tmpdir=/var/lib/jenkins/tmp
>> -Djava.awt.headless=true
>> -Djavax.net.ssl.trustStore=/var/lib/jenkins/cacerts.jks -Xmx1024m
>> -XX:PermSize=32m -XX:MaxPermSize=256m"
>>
>>
>>
>> On Thursday, May 21, 2015 at 9:44:58 AM UTC-4, Mark Waite wrote:
>>>
>>> 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/4172a16e-8dfa-4556-a567-4418ff138803%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/4172a16e-8dfa-4556-a567-4418ff138803%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/CAO49JtHFHycU8t4_Hqb_WinQUYt_j-xua6QwgTBgmCCDMDT8PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to