Page 1 of 1

Problem starting RedBox on Windows

Posted: 08 May 2008, 11:02
by Virusescu
Hello boys. Long time no see.
You've catch my eyes with the new release containing RedBox.

I'm very enthusiastic about this, but I've encountered a problem installing / starting up the module.
It might be a trivial problem with Java... but it beats me.

I'm hoping for some help.

Here's the output when I run red5.bat

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: Files\QuickTime\QTSystem\QTJava/zip
Caused by: java.lang.ClassNotFoundException: Files\QuickTime\QTSystem\QTJava.zip

        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Press any key to continue . . .
set CLASSPATH in cmd
Was returning
CLASSPATH=.;C:\Program Files\QuickTime\QTSystem\QTJava.zip

I've unset it and tried changing it to point to the lib folder from Java/Jre... .

No luck

Any pointers?

Posted: 09 May 2008, 06:54
by Lapo
I fear that quicktime has screwed your Java classpath in the system.
Red5 uses the JRE installed in the system not the one embedded with SFS. To resolve this simply open the red5.bat file and substitute java with "..\..\jre\bin\java.exe" (including the quotes)

Posted: 09 May 2008, 11:16
by Virusescu
Ughh... :oops:
I've still have troubles.
Exception in thread "main" java.lang.NoClassDefFoundError: Files\QuickTime\QTSystem\QTJava/zip
Might it be from the %CLASSPATH% also specified in the red5.bat?
What should the CLASSPATH point to?

Posted: 09 May 2008, 12:13
by Lapo
I remember having this problem 4-5 years ago. Each time I would install QuickTime on Windows it would screw the java installation, LOL

Simple solution? Reinstall the JRE, it will fix the problem :)
(and should not affect QT)

OMG, Solved!

Posted: 11 Jul 2008, 23:06
by kfblake
Wow, this was a pain of a problem that I had as well.

Reinstalling JRE wouldn't work.
Setting CLASSPATH, PATH or QTJAVA vars didn't work (still was looking in the wrong place).

The solution?? Edit the red5.bat file and remove %CLASSPATH% and put in your actual path (no spaces, so C:\Progra~1\) to the QTJava.zip file. For me this was actually in \Progra~1\QuickTime\QTSystem\QTJava.zip.

Wow, this really sucked. But thanks to this post I finally figured it out!

Thanks!