[infinispan-issues] [JBoss JIRA] Created: (ISPN-454) Windows demo classpath needs quotes for classpath with spaces

Chad Hahn (JIRA) jira-events at lists.jboss.org
Fri May 21 11:47:06 EDT 2010


Windows demo classpath needs quotes for classpath with spaces
-------------------------------------------------------------

                 Key: ISPN-454
                 URL: https://jira.jboss.org/browse/ISPN-454
             Project: Infinispan
          Issue Type: Bug
         Environment: Windows
            Reporter: Chad Hahn
            Assignee: Manik Surtani
            Priority: Minor


The classpath of runGuiDemo.bat is set by java -cp %my_classpath%, but it needs quotes around it like java -cp "%my_classpath%" in order to not throw a very confusing error when the classpath contains spaces:

Exception in thread "main" java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: and.  Program will exit.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list