Not able to modify startup string for Spotfire S+ Workbench

Not able to modify startup string for Spotfire S+ Workbench

book

Article ID: KB0080959

calendar_today

Updated On:

Products Versions
Spotfire S+ All supported versions

Description

Customer tries to modify the startup string for S+ Workbench but gets the error "Could not create the Java virtual machine."  
Also happens if S+ Workbench is installed in a (longer) non-standard path.

 

Issue/Introduction

Not able to modify startup string for Spotfire S+ Workbench

Environment

Product: TIBCO Spotfire S+ Workbench Version: All supported versions OS: Windows only --------------------

Resolution

This is actually due to a Windows limitation on the length of shortcut startup strings.  There are two ways to handle this:

Option A:
-----------------------------------------------------
The solution is to include the Eclipse commands in an eclipse.ini file under the eclipse directory in the S+ installation directory.  To do that, create file C:\Program Files (x86)\TIBCO\splus82\eclipse\eclipse.ini, and include the following commands in it:

-product com.tibco.statsvc.plugin.platform.splusWorkbench
-vm C:\Program Files (x86)\TIBCO\splus82\java\jre\bin\javaw.exe
-vmargs -Dsplus.shome=C:\Program Files (x86)\TIBCO\splus82
-Xss1280k
-Xmx400m

Then remove all the commands from the end of the shortcut path, so that the shortcut path is just:

"C:\Program Files (x86)\TIBCO\splus82\eclipse\eclipse.exe"


Option B:
-----------------------------------------------------
Install S+ 8.2 into a non-standard location (i.e. not under Program Files (x86)), so that the full shortcut path is shorter in length.
 

Additional Information

This is a limitation of Windows shortcuts. According to:

http://msdn.microsoft.com/en-us/library/bb774944.aspx

the target path of a shortcut is (at most) MAX_PATH characters. According to:

http://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath

MAX_PATH is 260 characters.