2 Replies Latest reply on Oct 8, 2004 7:30 AM by Chris White

    Spaces in install path and run.bat and Jboss 4.0.0

    Chris White Newbie

      The run.bat file fails to start JBoss 4.0.0 with a NoClassDefFound error if JBoss is installed in a path that contains any spaces in the path.

      Changing the following line in the run.bat fixes the problem.

      "%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs=%JBOSS_ENDORSED_DIRS% -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %*


      Putting quotes around JBOSS_ENDORSED_DIRS fixes the problem.

      "%JAVA%" %JAVA_OPTS% -Djava.endorsed.dirs="%JBOSS_ENDORSED_DIRS%" -classpath "%JBOSS_CLASSPATH%" org.jboss.Main %*