It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

"NoClassDefFoundError" exception using the atlas-version command

Hi everyone, I am a newbie in atlassian JIRA and I would like to create my first plugin for it. While following the instructions of the tutorial, as for setting up the SDK prerequisites on a Windows System, I was in the following step (Installation of Atlassian SDK). After an installation of the SDK and restarting the computer, I used the "atlas-version" command. The result is pasted below: ======================================================================== ATLAS Version: 4.2.3 ATLAS Home: C:\Users\Omar.Khaldi\atlassian-plugin-sdk ATLAS Scripts: C:\Users\Omar.Khaldi\atlassian-plugin-sdk\bin ATLAS Maven Home: C:\Users\Omar.Khaldi\atlassian-plugin-sdk\apache-maven -------- Executing: "C:\Users\Omar.Khaldi\atlassian-plugin-sdk\apache-maven\bin\mvn.bat" --version -gs C:\Users\Omar.Khaldi\atlassian-plugin-sdk\apache-maven/conf/settin gs.xml Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classwor lds/Launcher Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher at$ at Method) at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( Could not find the main class: org.codehaus.classworlds.Launcher. Program will exit. ======================================================================== Can someone help me or give me a tip about what's going on. Here are some other information that can be useful: - I am actually using Windows 7 (64-bit) with Java 1.6. - I have already installed maven, the version is 3.0.5 Thanks in advance for your help, Omar.

2 answers

1 accepted

2 votes
Answer accepted
Yilin Atlassian Team Jun 30, 2013

You need to follow the procedure here to let SDK running on Maven 3

Short summary of the procedure in the URL above: set the environment variable ATLAS_MVN to the executable of mvn three. In my Windows installation:

set ATLAS_MVN=C:\apps\apache-maven-3.0.4\bin\mvn.bat

After this setting atlas-version worked as expected.

Thanks for your help Yilin MO, I found the solution just before to see your answer.

Here is it if someone will have the same problem in the future: I already had another version of Maven of my computer provided by the company, I think that it's getting confused with the 2 different versions. So I deleted Maven 3 and JIRA works without any problem.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

271 views 5 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you