Forum Discussion

pf's avatar
pf
Occasional Contributor
17 years ago

classpath too long

Hi

soaupUI-Pro 2.5 does not startup on my Windows 2000 PC. I got an error message saying that the classpath gets too long.

I had to change the classpath setting in the soapui-pro.bat file (remove the SOAPUI_HOME in front of the libraries).

Does anybody had a similar problem, is there a more elegant work around for this classpath problem?

Regards,
Erhard

6 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Erhard,

    we are aware of this (which is due to a limit in win2k) and hope to have it fixed in 2.5.1. I wonder if you could try something for me:

    - Restore the bat file to its original (non-working) state
    - Change the last line in it from

    "%JAVA%" %JAVA_OPTS% -cp "%CLASSPATH%" com.eviware.soapui.SoapUIPro %*

    to

    "%JAVA%" %JAVA_OPTS% com.eviware.soapui.SoapUIPro %*

    and please let me know if this works also!

    Huge thanks in advance!

    regards,

    /Ole
    eviware.com
  • pf's avatar
    pf
    Occasional Contributor
    Hi Ole

    I tried your proposal, but it did not help. The error occures during the set classpath commands. Windows 2000 limits the command lenth to 2k (2048 characters). As soon as this lenght is reached, the next "set command" fails.

    I even tried to install the soapui directly under c:\so in order to shorten the classpath, but the classpath setting did still not get through all the libraries.

    Best regards,
    Erhard
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Erhard,

    Ok, thanks for testing, we'll have to figure something out (the reason we added this is that we wanted it to be possible to run the command-line tools from any directory).

    Sorry for the inconvenience..

    regards!

    /Ole
    eviware.com
  • Robert_Nemet's avatar
    Robert_Nemet
    Occasional Contributor
    Here is possible solution. You have to have java 6 so this script could work.
    So, this should be new soapui-pro.bat:

    @echo off


    set SOAPUI_HOME=%~dp0
    set JAVA=%SOAPUI_HOME%..\jre\bin\java
    cd %SOAPUI_HOME%
    rem init classpath

    rem JVM parameters, modify as appropriate
    set JAVA_OPTS=-Xms128m -Xmx384m -Dsoapui.properties=soapui.properties -Dgroovy.source.encoding=iso-8859-1 "-Dsoapui.home=%SOAPUI_HOME%\"

    if "%SOAPUI_HOME%\" == "" goto START
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext"
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners"
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions"

    :START

    set CLASSPATH=%SOAPUI_HOME%soapui-pro-2.5.jar;%SOAPUI_HOME%..\lib\*;

    echo %CLASSPATH%
    rem ********* run soapui ***********

    "%JAVA%" %JAVA_OPTS% com.eviware.soapui.SoapUIPro %*

  • pf's avatar
    pf
    Occasional Contributor
    Hi Robert

    Your proposed solution works perfect, thanks 

    br
    Erhard
  • omatzura's avatar
    omatzura
    Super Contributor
    Great!

    Thanks for helping us test, this will be in the upcoming nightly-builds.

    regards!

    /Ole
    eviware.com