It's all about the answers!

Ask a question

Running lscm on Ubuntu causes " Unrecognized option: -Xshareclasses:nonfatal "


Jeff Sloyer (3146) | asked Jun 17 '14, 4:53 p.m.
edited Jun 18 '14, 2:41 a.m. by Krzysztof Kaźmierczyk (7.4k373103)
 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


Comments
sam detweiler commented 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 commented Jun 17 '14, 5:17 p.m.

What envar do I need to set, the PATH or JAVA_HOME one?


Jeff Sloyer commented 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 commented 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 commented 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 commented 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 commented 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



showing 5 of 7 show 2 more comments

One answer



permanent link
Jeff Sloyer (3146) | answered Jun 17 '14, 5:41 p.m.
 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


Register or to post 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.