# How to explicitly define JAVA version to be used in starting of Nexus\_IQ 1.56v?

**URL:** <https://community.sonatype.com/t/how-to-explicitly-define-java-version-to-be-used-in-starting-of-nexus-iq-1-56v/1033>\
**Category:** Sonatype Lifecycle & Firewall\
**Tags:** help\
**Created:** [January 11, 2019, 10:10pm UTC](https://community.sonatype.com/t/how-to-explicitly-define-java-version-to-be-used-in-starting-of-nexus-iq-1-56v/1033 "2019-01-11T22:10:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnagashreeb.b](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@bnagashreeb.b](https://community.sonatype.com/u/bnagashreeb.b)\
**Post date:** [January 11, 2019, 10:10pm UTC](https://community.sonatype.com/t/how-to-explicitly-define-java-version-to-be-used-in-starting-of-nexus-iq-1-56v/1033/1 "2019-01-11T22:10:38Z")

</div>

Team,  
I had recently upgraded Nexus-IQ from 1.24v to 1.44v in our Production & will be upgrading it further to 1.56 version in next week.for the same ,i did edit in ~/.bashrc for exporting JAVA\_HOME variable and sourced it before starting the new instance.Instance has started very well & running but later when i logged out of server & logged in back ,i could see the JAVA\_HOME variable for the same user is older .Could you please let me know how to explicitly make Nexus-IQ instance of 1.56v to use New JAVA version while starting ?

Thanks,  
Nagashree.B

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [January 11, 2019, 10:34pm UTC](https://community.sonatype.com/t/how-to-explicitly-define-java-version-to-be-used-in-starting-of-nexus-iq-1-56v/1033/2 "2019-01-11T22:34:16Z")

</div>

It depends on how you’re starting IQ Server. If you’re using our service script here then just specify the full path to the java executable in the “do\_start()” method, rather than just “java”:

[https://help.sonatype.com/display/NXIQ/Running+IQ+Server+as+a+Service](https://help.sonatype.com/display/NXIQ/Running+IQ+Server+as+a+Service)

---

<div class="post-metadata">

**Author:** ![bnagashreeb.b](https://avatars.discourse-cdn.com/v4/letter/b/ecc23a/32.png) [@bnagashreeb.b](https://community.sonatype.com/u/bnagashreeb.b)\
**Post date:** [January 12, 2019, 1:45am UTC](https://community.sonatype.com/t/how-to-explicitly-define-java-version-to-be-used-in-starting-of-nexus-iq-1-56v/1033/3 "2019-01-12T01:45:40Z")

</div>

Thank you .That helped a lot 🙂
