Problem starting RedBox on Windows

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

Post Reply
Virusescu
Posts: 260
Joined: 07 Sep 2005, 09:36
Location: [RO]Bucharest
Contact:

Problem starting RedBox on Windows

Post 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?
function onJoin(usr) {if (usr.getName() == "Lapo") trace ("All Hail Lapo");}
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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)
Lapo
--
gotoAndPlay()
...addicted to flash games
Virusescu
Posts: 260
Joined: 07 Sep 2005, 09:36
Location: [RO]Bucharest
Contact:

Post 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?
function onJoin(usr) {if (usr.getName() == "Lapo") trace ("All Hail Lapo");}
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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)
Lapo
--
gotoAndPlay()
...addicted to flash games
kfblake
Posts: 17
Joined: 27 Feb 2008, 20:28
Location: Seattle, WA, USA

OMG, Solved!

Post 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!
Post Reply