Could not find or load main class WorkshopSetup.jar
I am following this article https://jazz.net/library/article/1000
I used Installation managers to install CLM 5.0.2 and RTC eclipse client. However directory in my system is same as the one shown in workshop. When I open WorkshopSetup.bat in notepad first line I see is
"set JAVA_HOME=..\TeamConcert\jazz\client\eclipse\jdk"
but in my system jdk folder is directly under TeamConcert folder therefore in WorkshopSetup.bat file I changed first line as
"set JAVA_HOME=..\TeamConcert\jdk"
When I try to run WorkshopSetup.bat file it is showing me error as "Could not find or load main class WorkshopSetup.jar" How do I resolve this problem I am performing this workshop on CLM version 5.0.2
2 answers
The issue is, that for whatever reason the java version that ships with the IM package does not work correctly with the order of the parameters. Especially the parameter -jar
It wants the command line to use:
Note, I just moved the parameter -jar in front of the JAR file.
The original in the files was:
I will fix that, but this would be something for a new version of the workshop.
It wants the command line to use:
%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, I just moved the parameter -jar in front of the JAR file.
The original in the files was:
%JAVA_HOME%\jre\bin\java -jar -Djava.ext.dirs=%PLAIN_JAVA%;%JAVA_HOME%/jre/lib/ext -cp %PLAIN_JAVA% WorkshopSetup.jar %REPOSITORY% %USERID% %PASSWORD%
I will fix that, but this would be something for a new version of the workshop.
It is very unlikely that this is a result of the JDK path, since Java seems to be starting up.
Maybe this is due to using a 32 bit version of Java?
I am not sure. I have seen questions like this in the past, but I have never been able to reproduce this. I don't use the Installation Manager version of the client, I always use the zip version (64 bit).
I would need to know exactly which Client you installed and how to may be reproduce this. I have very few time available this week, however.
Maybe this is due to using a 32 bit version of Java?
I am not sure. I have seen questions like this in the past, but I have never been able to reproduce this. I don't use the Installation Manager version of the client, I always use the zip version (64 bit).
I would need to know exactly which Client you installed and how to may be reproduce this. I have very few time available this week, however.
Comments
Sajjad Ali Khan
Oct 13 '15, 3:01 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 13 '15, 3:03 a.m.Sajjad Ali Khan
Oct 13 '15, 6:31 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 13 '15, 7:29 a.m.Sajjad Ali Khan
Oct 13 '15, 8:32 a.m.