You need to get the latest trunk version to use java6 or set your
target_version to 1.5. One of the problems you are having is the switch from
Namespace to Bindings in JSR223 without any kind of deprecation.

Paul

On 2/10/07, Zohar Babin (G) <[EMAIL PROTECTED]> wrote:

 Hi there,



First said - Awesome work with this server! (not to mention the latest
x-wing running on it… J)



I have a problem running the "Ant Server" command.. (Windows XP, Java 1.6,
Apache ANT 1.7) –

When running the command from cmd on the Red5 folder, I get the following:

*C:\Program Files\Red5>ant server*

*Buildfile: build.xml*

*     [echo] java.home is C:\Program Files\Java\jdk1.6.0\jre and the
target version is ${java.target_version}*

* *

*-junit.check:*

* *

*prepare:*

* *

*compile:*

*     [echo] Javac version: 1.5*

*     [echo] Compiler adapter name: ${build.compiler}*

*    [javac] Compiling 1 source file to C:\Program Files\Red5\bin*

* *

*BUILD FAILED*

*C:\Program Files\Red5\build.xml:253: Class not found: ${build.compiler}*

* *

*Total time: 0 seconds*

* *

*…*

I tried a solution that I googled up –

Creating a file : build.properties

Containing the following 2 lines:

build.compiler=modern

java.target_version=1.6



But now the following occurs and it still fails to compile –

*C:\Program Files\Red5>ant server*

*Buildfile: build.xml*

*     [echo] java.home is C:\Program Files\Java\jdk1.6.0\jre and the
target version is 1.6*

* *

*-junit.check:*

* *

*prepare:*

* *

*compile:*

*     [echo] Javac version: 1.6*

*     [echo] Compiler adapter name: modern*

*    [javac] Compiling 1 source file to C:\Program Files\Red5\bin*

*    [javac] Since fork is false, ignoring memoryMaximumSize setting.*

*    [javac] C:\Program
Files\Red5\src\org\red5\server\script\rhino\RhinoScriptUtils.java:76: cannot
find symbol*

*    [javac] symbol  : method createNamespace()*

*    [javac] location: interface javax.script.ScriptEngine*

*    [javac]             Namespace nameSpace = engine.createNamespace();*

*    [javac]                                         ^*

*    [javac] C:\Program
Files\Red5\src\org\red5\server\script\rhino\RhinoScriptUtils.java:83: cannot
find symbol*

*    [javac] symbol  : method setNamespace(javax.script.Namespace,int)*

*    [javac] location: interface javax.script.ScriptEngine*

*    [javac]                     engine.setNamespace(nameSpace,
ScriptContext.ENGINE_SCOPE);*

*    [javac]                           ^*

*    [javac] C:\Program
Files\Red5\src\org\red5\server\script\rhino\RhinoScriptUtils.java:100:
cannot find symbol*

*    [javac] symbol  : method eval(javax.script.Namespace)*

*    [javac] location: class javax.script.CompiledScript*

*    [javac]             Object o = script.eval(nameSpace);*

*    [javac]                              ^*

*    [javac] C:\Program
Files\Red5\src\org\red5\server\script\rhino\RhinoScriptUtils.java:173:
cannot find symbol*

*    [javac] symbol  : method call(java.lang.String,java.lang.Object[])*

*    [javac] location: interface javax.script.Invocable*

*    [javac]                                     o = invocable.call(name,
args);*

*    [javac]                                                  ^*

*    [javac] C:\Program
Files\Red5\src\org\red5\server\script\rhino\RhinoScriptUtils.java:177:
cannot find symbol*

*    [javac] symbol  : method call(java.lang.String,java.lang.Object,
java.lang.Object[])*

*    [javac] location: interface javax.script.Invocable*

*    [javac]                                     o = invocable.call(name,
instance, args);*

*    [javac]                                                  ^*

*    [javac] 5 errors*

* *

*BUILD FAILED*

*C:\Program Files\Red5\build.xml:253: Compile failed; see the compiler
error output for details.*

* *

*Total time: 1 second*



Without using ANT the server (Red5) loads great and works great from the
cmd and as a service.



Have I missed something?





Thanks,

Red5 rocks ;)



                Zohar.

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org




--
The early bird may get the worm, but the second mouse gets the cheese.
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to