Running lscm on Ubuntu causes " Unrecognized option: -Xshareclasses:nonfatal "
Jeff Sloyer (31●4●6)
| asked Jun 17 '14, 4:53 p.m.
edited Jun 18 '14, 2:41 a.m. by Krzysztof Kaźmierczyk (7.5k●4●80●103)
I am trying to use the command line tools (v 5.0) on Ubuntu 12.04 and getting the following error. Does anyone have any idea what is wrong here?
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
showing 5 of 7
show 2 more comments
|
One answer
the eclipse/scm.ini file says
# Uncomment following 2 lines to configure JRE. #-vm #/TODO/path/to/jre/bin
Did the trick and installing the IBM JVM.
|
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.
Comments
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
What envar do I need to set, the PATH or JAVA_HOME one?
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?
usually its in the same folder tree..
I don't know how to pass env var from jenkins to script.
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
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
the eclipse/scm.ini file says
Uncomment following 2 lines to configure JRE.
-vm
/TODO/path/to/jre/bin