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...
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
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% %* pauseDon't ask me why Java behaves the way it does......
One other answer
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
%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
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.