config.bat gets class not found error

Hi, I am running JIRA 5.1 from a standalone Windows install and I am having trouble getting config.bat to run.

My JAVA_HOME and JRE_HOME environment variables are set to "C:\PROGRA~2\Atlassian\JIRA\jre\bin"

When I attempt to run config.bat, I get the following message:

"The system cannot find the path specified"

I have verified that Configurator.class is in "C:\Program Files (x86)\Atlassian\JIRA\atlassian-jira\WEB-INF\classes\com\atlassian\jira\configurator"

I have attempted running the app using "java -classpath ../atlassian-jira/WEB-INF/classes;../atlassian-jira/WEB-INF/lib/*;../lib/* com.atlassian.jira.configurator.Configurator"

However, that returns the following error:

C:\PROGRA~2\Atlassian\JIRA\jre\bin>java -classpath ../atlassian-jira/WEB-INF/cla
sses;../atlassian-jira/WEB-INF/lib/*;../lib/* com.atlassian.jira.configurator.Co
Exception in thread "main" java.lang.NoClassDefFoundError: com/atlassian/jira/co
Caused by: java.lang.ClassNotFoundException: com.atlassian.jira.configurator.Con
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
Could not find the main class: com.atlassian.jira.configurator.Configurator. Program will exit.

Any ideas as to what might be going on here and a workaround/solution would be great.

3 answers

1 accepted

I was unable to get config.bat working. Setting up a new testing environment, reinstalling Jira, and restoring from a backup of the original install seemed to allow config.bat to work. However several of the fields on the WebServer tab were missing (I only had access to the connector ports).

The short version of the story is that I gave up and performed all the configuration changes I needed to manually in the server.xml and web.xml files.

0 vote
Ivan Tse Atlassian Team Jun 25, 2013

I think you might have your JAVA_HOME set in the wrong spot. What's the output for "echo %JAVA_HOME%"? What about just "java -version"?

Based off of that article, the definition of JAVA_HOME is a few levels too deep.

Hi Ivan,

I am using the JRE that came bundled with JIRA 5.1.

-- Command Prompt output --

C:\PROGRA~2\Atlassian\JIRA\jre\bin>java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)

C:\PROGRA~2\Atlassian\JIRA\jre\bin>echo %JAVA_HOME%


I have experimented with setting JAVA_HOME to be "C:\PROGRA~2\Atlassian\JIRA" and " C:\PROGRA~2\Atlassian\JIRA\jre" with the same results.

config.bat simply returns "The system cannot find the path specified"

Running the command contained in config.bat results in the same class not found error above.

Where is the answer to this?

Why is there still no response to this?
I have tried everything I can think of, and still get the same error  "The system cannot find the path specified"

I worked it you, I was using the JRE\BIN directory.. removed \BIN and it all started working.


I am sure it would also work to the java directory installed with JIRA,  

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,305 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot