You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Sakke Wiik (JIRA)" <ji...@apache.org> on 2008/06/23 13:48:01 UTC
[jira] Created: (SMX4KNL-56) Kernel does not start on Windows if
classpath contains spaces
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.
[jira] Resolved: (SMX4KNL-56) Kernel does not start on Windows if
classpath contains spaces
Posted by "Gert Vanthienen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMX4KNL-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen resolved SMX4KNL-56.
------------------------------------
Resolution: Fixed
Thanks to Sakke Wiik for providing the patch!
http://svn.apache.org/viewvc?view=rev&revision=670530
> 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
>
> Original Estimate: 5 minutes
> Remaining Estimate: 5 minutes
>
> 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.