[Red5] red5.bat file gives error

durga prasad ddprasad at gmail.com
Thu Mar 11 06:06:49 PST 2010


how many jar files are there in your Red5 Home?

On Thu, Mar 11, 2010 at 7:20 PM, daka daka <dakasadakared5 at gmail.com> wrote:

> I tried but next the same error:
>
> The system cannot find the path specified.
> Starting Red5
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/red5/server/Boots
> trap
> Caused by: java.lang.ClassNotFoundException: org.red5.server.Bootstrap
>         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)
>
> Could not find the main class: org.red5.server.Bootstrap.  Program will
> exit.
> Press any key to continue . . .
>
> Can I meke new user and all new things for new user? to escape &...
> I'm trying now to install centos on vista
>
> http://www.lifehack.org/articles/technology/beginners-guide-run-linux-like-any-other-program-in-windows.html
> to do it with centos, just because doesn't work on vista
>
>
> On Thu, Mar 11, 2010 at 2:39 PM, durga prasad <ddprasad at gmail.com> wrote:
>
>> try adding
>> FOR /F "skip=2 tokens=2*" %%A IN ('REG QUERY "HKLM\Software\JavaSoft\Java
>> Runtime Environment" /v CurrentVersion') DO set CurVer=%%B
>> FOR /F "skip=2 tokens=2*" %%A IN ('REG QUERY "HKLM\Software\JavaSoft\Java
>> Runtime Environment\%CurVer%" /v JavaHome') DO set JAVA_HOME=%%B
>>
>> before SETLOCAL
>> after @echo off
>>
>>
>> On Thu, Mar 11, 2010 at 7:06 PM, durga prasad <ddprasad at gmail.com> wrote:
>>
>>> Not sure tough,* m&d* might cause problem.
>>>
>>>
>>>
>>> On Thu, Mar 11, 2010 at 6:32 PM, daka daka <dakasadakared5 at gmail.com>wrote:
>>>
>>>> Ok thanks,
>>>> hier is how I checked all:
>>>> 1. I'm running red5 server from my
>>>> c:\Users\m&d\workspace\red5_server\dist\r1 directory
>>>> 2. RED_HOME environment variable pointing to good direction; I don't
>>>> know! Hier is my red5.bat:
>>>>
>>>> @echo off
>>>>
>>>> SETLOCAL
>>>>
>>>> if NOT DEFINED RED5_HOME set RED5_HOME=%CD%
>>>>
>>>> if NOT DEFINED RED5_MAINCLASS set
>>>> RED5_MAINCLASS=org.red5.server.Bootstrap
>>>>
>>>> if NOT DEFINED JAVA_HOME goto err
>>>>
>>>> REM JAVA options
>>>> REM You can set JAVA_OPTS to add additional options if you want
>>>> REM Set up logging options
>>>> set
>>>> LOGGING_OPTS=-Dlogback.ContextSelector=org.red5.logging.LoggingContextSelector
>>>> -Dcatalina.useNaming=true
>>>> REM Set up security options
>>>> REM set SECURITY_OPTS= -Djava.security.debug=failure
>>>> -Djava.security.manager -Djava.security.policy=%RED5_HOME%/conf/red5.policy
>>>> set SECURITY_OPTS=-Djava.security.debug=failure
>>>> set JAVA_OPTS=%LOGGING_OPTS% %SECURITY_OPTS% %JAVA_OPTS%
>>>>
>>>> set JYTHON_OPTS=-Dpython.home=lib
>>>>
>>>> set RED5_CLASSPATH=%RED5_HOME%\boot.jar;%RED5_HOME%\conf;%CLASSPATH%
>>>>
>>>> if NOT DEFINED RED5_OPTS set RED5_OPTS=
>>>>
>>>> goto launchRed5
>>>>
>>>> :launchRed5
>>>> echo Starting Red5
>>>> "%JAVA_HOME%\bin\java" %JYTHON_OPTS% %JAVA_OPTS% -cp "%RED5_CLASSPATH%"
>>>> %RED5_MAINCLASS% %RED5_OPTS%
>>>> goto finally
>>>>
>>>> :err
>>>> echo JAVA_HOME environment variable not set! Take a look at the readme.
>>>> pause
>>>>
>>>> :finally
>>>> ENDLOCAL
>>>>
>>>> pause
>>>>
>>>>
>>>>
>>>> if I go to cmd.exe and type: set JAVA_HOME    i get path to java jdk.
>>>>
>>>>
>>>> So what can it be???
>>>>
>>>> tnx.
>>>> Davor
>>>>
>>>>
>>>>
>>>> On Thu, Mar 11, 2010 at 7:29 AM, Trevor Burton <
>>>> worldofpaper at googlemail.com> wrote:
>>>>
>>>>> Java can't find the Bootstrap class.
>>>>>
>>>>> check you're running the server from the correct location (ie NOT the
>>>>> root red5 directory but the working directory - /dist or whatever).
>>>>>
>>>>> otherwise check if you have a RED5_HOME environment variable pointing
>>>>> to the wrong location.
>>>>>
>>>>> lastly check your path environment variable to see if something there
>>>>> is pointing Red5 in the wrong direction.
>>>>>
>>>>> T
>>>>>
>>>>> On Wed, Mar 10, 2010 at 4:03 PM, daka daka <dakasadakared5 at gmail.com>wrote:
>>>>>
>>>>>> Hello there,
>>>>>> I'm watching the tutorials on the youtube:
>>>>>> http://www.youtube.com/watch?v=bplO44DQmvA&feature=related
>>>>>> One video before I had to run as ant and it was failure, but after
>>>>>> shuthing down red5 and doing procces again it builded succesfull.
>>>>>> After this I needed to start red5.bat and it gives me next error:
>>>>>> The system cannot find the path specified.
>>>>>> Starting Red5
>>>>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>>>>> org/red5/server/Boots
>>>>>> trap
>>>>>> Caused by: java.lang.ClassNotFoundException: org.red5.server.Bootstrap
>>>>>>         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: org.red5.server.Bootstrap.  Program
>>>>>> will exit.
>>>>>> Press any key to continue . . .
>>>>>>
>>>>>> So what can it be???
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Red5 mailing list
>>>>>> Red5 at osflash.org
>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Trevor Burton
>>>>> http://www.flashmonkey.org
>>>>> http://www.infrared5.com
>>>>>
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanking You,
>>> Yours Sincerely.
>>>
>>> D DURGA PRASAD
>>> Jr Technical Staff,
>>> Computer Science Engineering Department.,
>>> Indian Institute of Technology, Kharagpur, INDIA
>>>
>>> Contact:
>>> ddprasad at iitkgp.ac.in,ddprasad at cse.iitkgp.ernet.in, ddprasad at gmail.com
>>> Mobile: +91 9474756471
>>> Success is not final, failure is not fatal: it is the courage to continue
>>> that counts!!
>>>
>>>
>>
>>
>> --
>> Thanking You,
>> Yours Sincerely.
>>
>> D DURGA PRASAD
>> Jr Technical Staff,
>> Computer Science Engineering Department.,
>> Indian Institute of Technology, Kharagpur, INDIA
>>
>> Contact:
>> ddprasad at iitkgp.ac.in,ddprasad at cse.iitkgp.ernet.in, ddprasad at gmail.com
>> Mobile: +91 9474756471
>> Success is not final, failure is not fatal: it is the courage to continue
>> that counts!!
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>


-- 
Thanking You,
Yours Sincerely.

D DURGA PRASAD
Jr Technical Staff,
Computer Science Engineering Department.,
Indian Institute of Technology, Kharagpur, INDIA

Contact:
ddprasad at iitkgp.ac.in,ddprasad at cse.iitkgp.ernet.in, ddprasad at gmail.com
Mobile: +91 9474756471
Success is not final, failure is not fatal: it is the courage to continue
that counts!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20100311/73be7c96/attachment.html>


More information about the Red5 mailing list