It's all about the answers!

Ask a question

WorkshopSetup.bat is not running successfully.


Princi Verma (28115) | asked Nov 24 '16, 4:52 a.m.
edited Nov 24 '16, 5:14 a.m.
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...


Accepted answer


permanent link
Ralph Schoon (61.6k33643) | answered Nov 24 '16, 7:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Nov 24 '16, 7:11 a.m.
 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

Comments
Princi Verma commented Nov 24 '16, 7:44 a.m.

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


Princi Verma commented Nov 25 '16, 5:11 a.m.

Hi Ralph,

Yes It's working thanks....

One other answer



permanent link
Ralph Schoon (61.6k33643) | answered Nov 24 '16, 4:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

Comments
Princi Verma commented Nov 24 '16, 5:53 a.m.

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


Ralph Schoon commented Nov 24 '16, 6:01 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 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.


Ralph Schoon commented Nov 24 '16, 6:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 No, that last one won't work.

Your answer


Register or to post your answer.