That's great news.  Looks like the difference is something to do with the
JDK and JRE - the development kit you need to compile the server, but the
runtime environment is the only one you need to run the server.  Perhaps
these two things were cancelling each other out at the wrong points?

On Thu, 12 Apr 2007, Mateus Reis wrote:

> 1. I install red5 with this java Path (at configuration window):

C:\Arquivos de programas\Java\jre1.5.0_10

2. I let JAVA_VERSION and JAVA_HOME as 1.6

JAVA_HOME=C:\Arquivos de programas\Java\jdk1.6.0_01
JAVA_VERSION=1.6

3. I build ANT and my app (broadMax) works fine...

H:\Red5>ant server
Buildfile: build.xml
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

server:
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

-java6.check:

-junit.check:

prepare:

compile:
     [echo] Javac version: 1.6
     [echo] Compiler adapter name: modern
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_core:
    [javac] Since fork is true, ignoring compiler setting.
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_core_compatibility:
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_demos:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Since fork is true, ignoring compiler setting.
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_script:
    [javac] Since fork is true, ignoring compiler setting.
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_script_compatibility:

server_java5:
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

-java6.check:

-junit.check:

prepare:

compile:
     [echo] Javac version: 1.6
     [echo] Compiler adapter name: modern
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_core:
    [javac] Since fork is true, ignoring compiler setting.
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

compile_core_compatibility:
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

-snip -

     [java] [INFO] 13328 main:( org.mortbay.log.invoke ) Started 
SelectChannelConnector @ 0.0.0.0:5080
     [java] [INFO] 13328 main:( org.red5.server.Standalone.info ) Startup done 
in: 13328 ms

 
---- 
Mateus Reis
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.ovelhaeletrica.com

----- Mensagem original ----
De: Nathan P. Johansen <[EMAIL PROTECTED]>
Para: Mateus Reis <[EMAIL PROTECTED]>
Enviadas: Quinta-feira, 12 de Abril de 2007 15:00:40
Assunto: Re: Res: [Red5] Res:  red5-0.6rc3 build error

When you change your environment variables - are you closing off your
previous command line windows and opening up a fresh one?  Otherwise it
will still be using the previous environment variable settings.

Nice to know that the "ARQUIV~1" was the right path though.

On Thu, 12 Apr 2007, Mateus Reis wrote:

> Hi Nathan, using "C:\ARQUIV~1\..." works. 



C:\>dir /x /n

 Pasta de C:\

06/04/2007  14:27    <DIR>                       ant

08/04/2007  08:55    <DIR>          ARQUIV~1     Arquivos de programas



So, I set this:



JAVA_HOME=C:\ARQUIV~1\Java\jdk1.6.0_01

JAVA_VERSION=1.6



Same error. 



I try installing RED5 with these JAVA PATHS:



C:\Arquivos de programas\Java\jre1.6.0_01

C:\Arquivos de programas\Java\jdk1.6.0_01

C:\Arquivos de programas\Java\jdk1.6.0_01\jre



Same error. 



I try changing build.xml:



<property name="java.home" value="C:\Arquivos de programas\Java\jdk1.6.0_01"/>
or

<property name="java.home" value="C:\ARQUIV~1\Java\jdk1.6.0_01"/>



Same error.



I try changing build.properties:



# Defaults to current version. Valid options are 1.6, or 1.5. Note 1.4 is not 
supported.

java.target_version=1.6



Same error. 



Everytime I get this line. That '\jre' loads... at my java home..

[echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6.

BUT, I turn back to 1.5 and works fine... :D
 
---- 
Mateus Reis
[EMAIL PROTECTED]

----- Mensagem original ----
De: Nathan P. Johansen <[EMAIL PROTECTED]>
Para: Mateus Reis <[EMAIL PROTECTED]>
Enviadas: Quinta-feira, 12 de Abril de 2007 14:11:57
Assunto: Re: [Red5] Res:  red5-0.6rc3 build error

When you do a "cd c:\arquiv~1\Java\jdk1.6.0_01" does it actually put you
in that directory?  Like I said, I was just taking a guess on what the
path name might be.

If you do a "dir /x /n" it will show you what the 8.3 name for your
"Arquivos de programas" folder is.  Is it what I suggested, or something
different?

I'll think about some other solutions ... :)

Nate

On Thu, 12 Apr 2007, Mateus Reis wrote:

> Hi Nathan, I have this Environment Variables:

C:\>set

JAVA_HOME=C:\Arquivos de programas\Java\jdk1.6.0_01
JAVA_VERSION=1.6

I try with:

JAVA_HOME=c:\arquiv~1\Java\jdk1.6.0_01

JAVA_VERSION=1.6

With:


JAVA_HOME=c:\Arquiv~1\Java\jdk1.6.0_01


JAVA_VERSION=1.6

And:


JAVA_HOME=C:\Arquivos de programas\Java\jdk1.5.0_01


JAVA_VERSION=1.5

Same error. 

I install red5 3 times. With Java path pointing to:
C:\Arquivos de programas\Java\jre1.6.0_01
C:\Arquivos de programas\Java\jdk1.6.0_01
C:\Arquivos de programas\Java\jdk1.6.0_01\jre

Same error.

My new app folder is there, ready to go, but ant doesn't compile. 


---- 
Mateus Reis
[EMAIL PROTECTED]

----- Mensagem original ----
De: Nathan P. Johansen <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED]
Enviadas: Quinta-feira, 12 de Abril de 2007 12:58:19
Assunto: Re: [Red5] red5-0.6rc3 build error

Hi Mateus,

I'd suggest changing your Environment Variables (this is under your
Control Panel -> System -> Advanced Tab) for JAVA_HOME to remove the
spaces in the path.  For example:

    Variable Name:     JAVA_HOME
    Variable Value:    C:\progra~1\Java\jdk1.6.0_01

Your system's language is different, so perhaps it is something like:

    C:\arquiv~1\Java\jdk1.6.0_01

Next, set your JAVA_VERSION environment variable to "1.6" - save that,
open up a new command line window, and give it another try.

I've noticed that when compiling under windows, it doesn't handle the
blank spaces in the path to Java, so just remove them by using the eight
dot three (8.3) style of syntax instead.  Also notice that you're pointing
to the "jre" folder - ANT needs the JDK version to compile.


Nathan


On Thu, 12 Apr 2007, Mateus Reis wrote:

> Help me please.. :D

I'm using: Ant 1.6 & jdk1.6.0_01 & red5-0.6rc3:

H:\Red5>ant server
Buildfile: build.xml
     [echo] java.home is C:\Arquivos de programas\Java\jdk1.6.0_01\jre and the 
target version is 1.6

- clip -


_______________________________________________
Red5 mailing list
[EMAIL PROTECTED]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to