Local confluence fails to start with error "Unable to access jarfile C:\Program"

I have just downloaded the latest version of confluence and installed it on my PC (windows 10). I chose not to install it as a service and it did not start up automatically like the documentation suggested it should. I then wnet into the confluence/bin folder and manually ran the startup batch file there but got the following error:

"Using Java: C:\Progra~1\Java\jdk1.8.0_111\bin\java.exe"
Error: Unable to access jarfile C:\Program
Error: Unable to access jarfile C:\Program
Using CATALINA_BASE: "C:\Program Files\Atlassian\Confluence"
Using CATALINA_HOME: "C:\Program Files\Atlassian\Confluence"
Using CATALINA_TMPDIR: "C:\Program Files\Atlassian\Confluence\temp"
Using JRE_HOME: "C:\Progra~1\Java\jdk1.8.0_111"
Using CLASSPATH: "C:\Program Files\Atlassian\Confluence\bin\bootstrap.jar;C:\Program Files\Atlassian\Confluence\bin\tomcat-juli.jar"

 I originally had a problem with my JAVA_HOME path and a space, which I have now fixed using the tilda as you can see above. But it is now not able to handle spaces for the jar files it is trying to run. Any help with this would be great thanks.

2 answers

Did you find a solution to this?  I'm hitting the same error when I try to use the stop-confluence batch file.

0 vote

Windows does not handle spaces in directory names well, and installers fall down when they're used.

Either install the software in one of the recommended paths (one with no spaces in the name), or change the environment so that the actual paths are used instead of the names.

In the question, you can see the JRE_HOME uses an actual path, but the rest of the lines use the names.  Change set-env.bat (and others in the bin directory) so that they use Progra~1 instead of Program Files

Thanks Nic, I figured it out after I posted.  Shame that not all the variables are set in the set-env.bat.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

869 views 23 12
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