Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-454

Windows demo classpath needs quotes for classpath with spaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 4.1.0.BETA2, 4.1.0.Final
    • 4.0.0.Final, 4.1.0.BETA1
    • None
    • Interactive Demo/Tutorial
    • Hide

      Run from directory without spaces

      Show
      Run from directory without spaces
    • Low

    Description

      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.

      Attachments

        Activity

          People

            manik_jira Manik Surtani (Inactive)
            cjh_jira Chad Hahn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: