Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

WorkshopSetup.bat is not running successfully.

Hi,

I am trying to run my WorkshopSetup.bat file(installs\WorkshopSetup folder) but I am getting the following message-

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set JAVA_HOME=..\Team
Concert\jazz\client\eclipse\jdk

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set PLAIN_JAVA=../Pla
inJavaAPI

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set REPOSITORY="https
://localhost:9443/ccm"

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set USERID="myadmin"


C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set PASSWORD="myadmin
"

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>..\TeamConcert\jazz\c
lient\eclipse\jdk\jre\bin\java -jar -Djava.ext.dirs=../PlainJavaAPI;..\TeamConce
rt\jazz\client\eclipse\jdk/jre/lib/ext -cp ../PlainJavaAPI WorkshopSetup.jar "ht
tps://localhost:9443/ccm" "myadmin" "myadmin"
The system cannot find the path specified.


I didn't rename my Client(RTC-Client-Win-5.0.2) name as TeamConcert after coping it into installs folder so is this the issue?

Now I tried to rename it and again ran the WorkshopSetup.bat file but I was getting below error-


C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set JAVA_HOME=..\Team
Concert\jazz\client\eclipse\jdk

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set PLAIN_JAVA=../Pla
inJavaAPI

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set REPOSITORY="https
://localhost:9443/ccm"

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set USERID="myadmin"


C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>set PASSWORD="myadmin
"

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>..\TeamConcert\jazz\c
lient\eclipse\jdk\jre\bin\java -jar -Djava.ext.dirs=../PlainJavaAPI;..\TeamConce
rt\jazz\client\eclipse\jdk/jre/lib/ext -cp ../PlainJavaAPI WorkshopSetup.jar "ht
tps://localhost:9443/ccm" "myadmin" "myadmin"
Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.team.reposito
ry.common.TeamRepositoryException
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java:73)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:135)
Caused by: java.lang.ClassNotFoundException: com.ibm.team.repository.common.Team
RepositoryException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:677)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
        ... 3 more
Could not find the main class: com.ibm.js.rtcext.serversetup.ServerSetup. Progra
m will exit.

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>pause
Press any key to continue . . .

C:\Users\A622734\SSCProject\RTC5Dev\installs\WorkshopSetup>pause
Press any key to continue . . .

Please provide some solution.



I also checked by modifying WorkshopSetup.bat file with absolute path(C:\Users\A622734\SSCProject\RTC5Dev\installs\RTC-Client-Win-5.0.2\jazz\client\eclipse\jdk) for JAVA_HOME but still it's showing

Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.team.reposito
ry.common.TeamRepositoryException
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java:73)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:135)
Caused by: java.lang.ClassNotFoundException: com.ibm.team.repository.common.Team
RepositoryException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:677)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
        ... 3 more
Could not find the main class: com.ibm.js.rtcext.serversetup.ServerSetup. Progra
m will exit.


Please help...


0 votes


Accepted answer

Permanent link
 I have played around and another way to start the class is this:
set JAVA_HOME=..\TeamConcert\jazz\client\eclipse\jdk
set PLAIN_JAVA=../PlainJavaAPI
set REPOSITORY="https://localhost:9443/ccm"
set USERID="myadmin"
set PASSWORD="myadmin"

%JAVA_HOME%\bin\java -cp %PLAIN_JAVA%/*;./* com.ibm.js.rtcext.serversetup.ServerSetup %REPOSITORY% %USERID% %PASSWORD% %*
pause
Don't ask me why Java behaves the way it does......
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

ok thanks Ralph, I'll try this....

Hi Ralph,

Yes It's working thanks....


One other answer

Permanent link
Try this line:

%JAVA_HOME%\jre\bin\java -Djava.ext.dirs=%PLAIN_JAVA%;%JAVA_HOME%/jre/lib/ext -cp %PLAIN_JAVA% -jar WorkshopSetup.jar %REPOSITORY% %USERID% %PASSWORD%

Note the command -jar is moved in front of the jar file

0 votes

Comments

Hi Ralph,

Even after doing the above changes I am still getting the same error.

I also tried by giving the absolute path to PLAIN_JAVA=C:\Users\A622734\SSCProject\RTC5Dev\installs\PlainJavaAPI

but still not running successfully.

Please suggest

 Last option I see is


%JAVA_HOME%\bin\java -Djava.ext.dirs=%PLAIN_JAVA%;%JAVA_HOME%/lib/ext -cp %PLAIN_JAVA%;./ com.ibm.js.rtcext.serversetup.ServerSetup %REPOSITORY% %USERID% %PASSWORD% %

If that is not working, I can't help.

 No, that last one won't work.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Nov 24 '16, 4:52 a.m.

Question was seen: 1,914 times

Last updated: Nov 25 '16, 5:11 a.m.

Confirmation Cancel Confirm