It's all about the answers!

Ask a question

sdk extensions WorkshopSetup.bat errors


German Ortega (131) | asked Nov 17 '16, 5:51 p.m.
 Ran through all the configuration and everything seems to be fine until we found this. We made some changes based on some of Ralph's blog posts, but we still haven't been able to resolve this. Any ideas?

 

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>set JAVA_HOME=..\jazz\client\eclipse\jdk

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>set PLAIN_JAVA=..\PlainJavaAPI

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>set REPOSITORY="https://localhost:9443/ccm"

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>set USERID="myadmin"

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>set PASSWORD="myadmin"

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>..\jazz\client\eclipse\jdk\jre\bin\java -Djava.ext.dirs=..\PlainJavaAPI;..\jazz\client\eclipse\jdk/jre/lib/ext -cp ..\PlainJavaAPI -jar WorkshopSetup.jar "https://localhost:9443/ccm" "myadmin" "myadmin"

Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.team.repository.common.TeamRepositoryException

        at java.lang.J9VMInternals.verifyImpl(Native Method)

        at java.lang.J9VMInternals.verify(J9VMInternals.java:72)

        at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)

Caused by: java.lang.ClassNotFoundException: com.ibm.team.repository.common.Team

RepositoryException

        at java.net.URLClassLoader.findClass(URLClassLoader.java:423)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:660)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:626)

        ... 3 more

Could not find the main class: com.ibm.js.rtcext.serversetup.ServerSetup. Program will exit.

C:\Users\Administrator\RTC40Dev\installs\WorkshopSetup>pause

Press any key to continue . . .

Comments
Donald Nong commented Nov 17 '16, 7:54 p.m.

Just a sanity check. The folder name is "RTC40Dev" - are you using version 6.0.x or 4.0.x?

Accepted answer


permanent link
Donald Nong (14.5k414) | answered Nov 17 '16, 11:56 p.m.
I guess I know what went wrong - you may have an extra level of folder under /PlainJavaAPI. Those .jar files should reside in the folder directly, not within another folder. Otherwise, the JVM will not be able to find the class com.ibm.team.repository.common.TeamRepositoryException.


German Ortega selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.