Kernel does not start on Windows if classpath contains spaces
-------------------------------------------------------------
Key: SMX4KNL-56
URL: https://issues.apache.org/activemq/browse/SMX4KNL-56
Project: ServiceMix Kernel
Issue Type: Bug
Affects Versions: 1.0-rc1
Environment: Windows
Reporter: Sakke Wiik
Fix For: 1.0-rc2
Attachments: patchfile.txt
When executing the JVM from a bat-file, wrap %CLASSPATH% to avoid problems with
spaces in CLASSPATH environment variable. Otherwise you'll get an error
(CLASSPATH=C:\Program Files (x86)\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar):
apache-servicemix-kernel-1.0.0-rc1\bin>servicemix.bat
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Files. Program will exit.
Take a look at ant.bat for another example.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.