java: not found when installing jira on Ubuntu

When trying to run the bin file the following happens:

$ sudo ./atlassian-jira-6.0.8-x64.bin

Unpacking JRE ...

Starting Installer ...

./atlassian-jira-6.0.8-x64.bin: 466: ~/atlassian-jira-6.0.8-x64.bin.9549.dir/jre/bin/java: not found

System info:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

1 answer

1 accepted

Accepted Answer
4 votes

The installer needs to run some utilities for information about your system. You haven't got them installed.

Try the command "lsb_release" and if it says it's not installed, then try (as root) apt-get install lsb-core

Then try the install again

(sorry, this is just the very first step in the debugging, I actually expect lsb_release to be there and working fine, but if it's not, you can end up going in circles)

If it fails again, then the next problem is who you are. You've run the installer using "sudo", which is a nice idea, but it might not take your paths into account consistently. Try running "sudo bash" and then ./install to make sure it picks up a consistent environment

I installed lsb-core as instructed:

$ lsb_release

LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch

But, I still get the same error.
Also:
~$ sudo bash
~# ./atlassian-jira-6.0.8-x64.bin
Unpacking JRE ...
Starting Installer ...
./atlassian-jira-6.0.8-x64.bin: 466: ~/atlassian-jira-6.0.8-x64.bin.13715.dir/jre/bin/java: not found

Sorry, I was adding to my answer as you were testing. I've added some stuff about sudo and switching to a root shell rather than just using sudo - could you try that as well?

I added to my comment after I saw your update.

Ah, hang on, lsb_release is showing us a 32 bit install, whereas you've got the 64 bit version of Jira. If I'm right, that won't work, you need to install the 32 bit version.

Thanks so much, it was an oversight on my part, sorry.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

24,960 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you