Running lscm on Ubuntu causes " Unrecognized option: -Xshareclasses:nonfatal "
jenkins@jenkins-se:~/rtc/5.0/jazz/scmtools/eclipse$ ./lscm
Unrecognized option: -Xshareclasses:nonfatal
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Scm:
JVM terminated. Exit code=1
/usr/bin/java
-Xmx512m
-Xshareclasses:nonfatal
-Xquickstart
-Dosgi.requiredJavaVersion=1.6
-Xdump:system:events=systhrow,filter=java/lang/OutOfMemoryError,request=exclusive+prepwalk
-jar /var/lib/jenkins/rtc/5.0/jazz/scmtools/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /var/lib/jenkins/rtc/5.0/jazz/scmtools/eclipse/scm
-name Scm
--launcher.library /var/lib/jenkins/rtc/5.0/jazz/scmtools/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.2.R36x_v20101019_1345/eclipse_1310.so
-startup /var/lib/jenkins/rtc/5.0/jazz/scmtools/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
-exitdata 68000
-data @noDefault
--config /var/lib/jenkins/.jazz-scm daemon start
--connection-timeout 120000
--inactive-timeout 7200000
-vm /usr/bin/java
-vmargs
-Xmx512m
-Xshareclasses:nonfatal
-Xquickstart
-Dosgi.requiredJavaVersion=1.6
-Xdump:system:events=systhrow,filter=java/lang/OutOfMemoryError,request=exclusive+prepwalk
-jar /var/lib/jenkins/rtc/5.0/jazz/scmtools/eclipse//plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
Comments
sam detweiler
Jun 17 '14, 5:11 p.m.the IBM SCM tools for RTC usually use the IBM JVM supplied in the scm folder.
they use extended options not supported by the oracle jvms.
so, make sure the path is right
Jeff Sloyer
Jun 17 '14, 5:17 p.m.What envar do I need to set, the PATH or JAVA_HOME one?
Jeff Sloyer
Jun 17 '14, 5:18 p.m.If you look up at the top it says its trying to use /usr/bin/java. Do I need to download and install the IBM JVM instead?
sam detweiler
Jun 17 '14, 5:20 p.m.usually its in the same folder tree..
I don't know how to pass env var from jenkins to script.
Jeff Sloyer
Jun 17 '14, 5:22 p.m.It doesnt look like java was included.
jenkins:~/rtc/5.0/jazz/scmtools$ ls eclipse/
about_files CommandLine_Readme.txt features libcairo-swt.so plugins scm.ini scm.sh.zos
about.html configuration fec lscm scm scm.sh scripts
Jeff Sloyer
Jun 17 '14, 5:35 p.m.I downloaded and installed the IBM JVM and still getting the same error.
jenkins@jenkins:~/rtc/5.0/jazz/scmtools/eclipse$ ls -lah /bin/java
lrwxrwxrwx 1 root root 32 Jun 17 17:31 /bin/java -> /opt/ibm/java-x86_64-71/bin/java
sam detweiler
Jun 17 '14, 5:39 p.m.the eclipse/scm.ini file says
Uncomment following 2 lines to configure JRE.
-vm
/TODO/path/to/jre/bin