OS: Windows Vista 64bit
Steps to reproduce:
Double click red5.bat
Error:
Code: Select all
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.
Press any key to continue . . .The problem seems to come from the way the QTJava.zip path is set in the Environmental variables. red5 does not handle the spaces in the classpath.
Solution:
- Option 1: Put quotes around the QTJava path in your Systems Environment Variables. (may need to check after QT updates)
Option 2: Remove %CLASSPATH% from red5.bat.
I am not using RedBox extensively (yet) so I would recommend a thorough testing of any changes that are made.
I hope this is helpful to anyone running into this issue.
- Mike