Kirjoittaja Aihe: Apache Ant ei asennu. [Ratkaistu]  (Luettu 3832 kertaa)

Marbo

  • Käyttäjä
  • Viestejä: 427
    • Profiili
    • Toimi.org
Apache Ant ei asennu. [Ratkaistu]
« : 17.06.08 - klo:15.15 »
Oon asentanu koneelleni apache ant:n näin:
Koodia: [Valitse]
sudo apt-get install ant ja se asentui. kai, mutta kun kirjoitan ant server niin tuleepi näin:

Koodia: [Valitse]
marbo@kotiservu:~$ ant server
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/lib/tools.jar
Buildfile: build.xml does not exist!
Build failed
marbo@kotiservu:~$

Eli jossain nyt kuseepi ja pahasti.
« Viimeksi muokattu: 18.06.08 - klo:14.36 kirjoittanut Marbo »

Linux user #460798

Asmo Koskinen

  • Käyttäjä
  • Viestejä: 4443
    • Profiili
Vs: Apache Ant ei asennu.
« Vastaus #1 : 17.06.08 - klo:15.51 »
Eli jossain nyt kuseepi ja pahasti.

Eli yrität jotain tällaista - aikamoinen kakku - apache ant, red5 ja flash?

http://osflash.org/red5/debian
http://osflash.org/red5/fc4

Tuota Debian-ohjetta voisi yrittää soveltaa...

Ystävällisin terveisin Asmo Koskinen.

Asmo Koskinen

  • Käyttäjä
  • Viestejä: 4443
    • Profiili
Vs: Apache Ant ei asennu.
« Vastaus #2 : 17.06.08 - klo:16.24 »
Tuota Debian-ohjetta voisi yrittää soveltaa...

http://www.red5tutorials.net/index.php/Main_Page

Ystävällisin terveisin Asmo Koskinen.

Marbo

  • Käyttäjä
  • Viestejä: 427
    • Profiili
    • Toimi.org
Vs: Apache Ant ei asennu.
« Vastaus #3 : 18.06.08 - klo:09.32 »
yritän asentaa tän ohjeen mukaan: http://osflash.org/red5/debian

mutta kohdassa
Koodia: [Valitse]
/usr/local/ant/bin/ant
tulee tälläinen:

Koodia: [Valitse]
root@kotiservu:~/red5-trunk# /usr/local/ant/bin/ant                             Buildfile: build.xml

clean:
   [delete] Deleting directory /home/marbo/red5-trunk/bin
   [delete] Deleting directory /home/marbo/red5-trunk/dist
   [delete] Deleting directory /home/marbo/red5-trunk/cluster

-library.check:
     [echo] Java: java.home is /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre and the target version is 1.5
     [echo] Ant: ant.home is /usr/local/ant and the target version is Apache Ant version 1.7.0 compiled on December 13 2006

-java6.check:
     [echo] Using Java 1.5

prepare:
    [mkdir] Created dir: /home/marbo/red5-trunk/bin
    [mkdir] Created dir: /home/marbo/red5-trunk/dist
    [mkdir] Created dir: /home/marbo/red5-trunk/cluster
    [mkdir] Created dir: /home/marbo/red5-trunk/cluster/origin
    [mkdir] Created dir: /home/marbo/red5-trunk/cluster/edge
    [mkdir] Created dir: /home/marbo/red5-trunk/bin/testcases
    [mkdir] Created dir: /home/marbo/red5-trunk/bin/testcases/testreports

compile:
     [echo] javac version: 1.5
     [echo] Not using the Eclipse IDE
     [echo] Compiler adapter name: modern

compile_core:

compile_core_compatibility:

retrieve:
[ivy:settings] :: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
[ivy:settings] :: loading settings :: file = /home/marbo/red5-trunk/ivysettings.xml
     [echo] Ivy conf name: java5
[ivy:resolve] :: resolving dependencies :: red5#server;working@kotiservu
[ivy:resolve]   confs: [java5]
[ivy:resolve]   found tomcat#jasper;6.0.16 in googlecode
[ivy:resolve]   found tomcat#jasper-jdt;6.0.16 in googlecode
[ivy:resolve]   found tomcat#jasper-el;6.0.16 in googlecode
[ivy:resolve]   found tomcat#tomcat-juli;6.0.16 in googlecode
[ivy:resolve]   found tomcat#tomcat-juli-adapters;6.0.16 in googlecode
[ivy:resolve]   found tomcat#el-api; in googlecode
[ivy:resolve]   found javax#jsp-api;2.1 in googlecode
[ivy:resolve]   found javax#servlet-api;2.5 in googlecode
[ivy:resolve]   found javax#ejb3-persistence; in googlecode
[ivy:resolve]   found red5#naming-factory; in googlecode
[ivy:resolve]   found red5#naming-resources; in googlecode
[ivy:resolve]   found spring#spring-aop;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-orm;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-beans;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-context;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-core;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-web;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#aopalliance; in googlecode
[ivy:resolve]   found tomcat#catalina;6.0.16 in googlecode
[ivy:resolve]   found tomcat#tomcat-coyote;6.0.16 in googlecode
[ivy:resolve]   found tomcat#annotations-api; in googlecode
[ivy:resolve]   found commons#commons-modeler;2.0.1 in googlecode
[ivy:resolve]   found jetty#jetty;6.1.9 in googlecode
[ivy:resolve]   found jetty#jetty-util;6.1.9 in googlecode
[ivy:resolve]   found jetty#jetty-xbean;6.1.9 in googlecode
[ivy:resolve]   found red5#slf4j-api;1.5.2 in googlecode
[ivy:resolve]   found red5#jcl-over-slf4j;1.5.2 in googlecode
[ivy:resolve]   found red5#log4j-over-slf4j;1.5.2 in googlecode
[ivy:resolve]   found red5#jul-to-slf4j;1.5.2 in googlecode
[ivy:resolve]   found red5#logback-core;0.9.9 in googlecode
[ivy:resolve]   found red5#logback-classic;0.9.9 in googlecode
[ivy:resolve]   found cglib#cglib-nodep;2.1_3 in googlecode
[ivy:resolve]   found commons#commons-beanutils;1.8.0-BETA in googlecode
[ivy:resolve]   found commons#commons-codec;1.3 in googlecode
[ivy:resolve]   found commons#commons-collections;3.2.1 in googlecode
[ivy:resolve]   found commons#commons-httpclient;3.1 in googlecode
[ivy:resolve]   found commons#commons-lang;2.4 in googlecode
[ivy:resolve]   found commons#commons-pool;1.3 in googlecode
[ivy:resolve]   found javax#jpda; in googlecode
[ivy:resolve]   found red5#quartz;1.5.2 in googlecode
[ivy:resolve]   found javax#jta;1.0.1B in googlecode
[ivy:resolve]   found red5#ehcache;1.4.1 in googlecode
[ivy:resolve]   found red5#xercesImpl;2.9.0 in googlecode
[ivy:resolve]   found red5#xml-apis;2.9.0 in googlecode
[ivy:resolve]   found red5#xmlrpc;2.0.1 in googlecode
[ivy:resolve]   found javax#activation;1.1 in googlecode
[ivy:resolve]   found jmx#jmxremote; in googlecode
[ivy:resolve]   found jmx#jmxtools; in googlecode
[ivy:resolve]   found jmx#rmissl; in googlecode
[ivy:resolve]   found mina#mina-core;1.1.7 in googlecode
[ivy:resolve]   found mina#mina-filter-ssl;1.1.7 in googlecode
[ivy:resolve]   found mina#mina-integration-spring;1.1.7 in googlecode
[ivy:resolve]   found mina#mina-integration-jmx;1.1.7 in googlecode
[ivy:resolve]   found asm#asm;2.2.3 in googlecode
[ivy:resolve]   found asm#asm-commons;2.2.3 in googlecode
[ivy:resolve]   found antlr#antlr;2.7.6 in googlecode
[ivy:resolve]   found red5#bsh;2.0b4 in googlecode
[ivy:resolve]   found red5#groovy;1.0 in googlecode
[ivy:resolve]   found red5#jruby;1.0.3 in googlecode
[ivy:resolve]   found red5#jython;2.2 in googlecode
[ivy:resolve]   found spring#spring-context-support;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-webmvc;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-tx;2.5.5-20080609 in googlecode
[ivy:resolve]   found spring#spring-jdbc;2.5.5-20080609 in googlecode
[ivy:resolve]   found commons#standard;1.1.2 in googlecode
[ivy:resolve]   found spring#spring-security-core;2.0.2 in googlecode
[ivy:resolve]   found red5#derby;10.4.1.3 in googlecode
[ivy:resolve]   found rhino#js;1.6R7 in googlecode
[ivy:resolve]   found red5#jsr173_1.0_api; in googlecode
[ivy:resolve]   found red5#jsr-223;1.0 in googlecode
[ivy:resolve]   found red5#js-engine; in googlecode
[ivy:resolve]   found red5#jython-engine; in googlecode
[ivy:resolve]   found red5#groovy-engine; in googlecode
[ivy:resolve]   found red5#jruby-engine; in googlecode
[ivy:resolve] :: resolution report :: resolve 2287ms :: artifacts dl 532ms
[ivy:resolve]   :: evicted modules:
[ivy:resolve]   red5#jruby;1.0.1 by [red5#jruby;1.0.3] in [java5]
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |       java5      |   75  |   0   |   0   |   1   ||   74  |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: red5#server
[ivy:retrieve]  confs: [java5]
[ivy:retrieve]  0 artifacts copied, 74 already retrieved (0kB/132ms)
    [javac] Compiling 478 source files to /home/marbo/red5-trunk/bin
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

compile_demos:
     [echo] Webapps dir: webapps
     [echo] Webapps build dir: dist/webapps
     [copy] Copying 23 files to /home/marbo/red5-trunk/dist/webapps/root
     [copy] Copying 23 files to /home/marbo/red5-trunk/dist/webapps/root
    [mkdir] Created dir: /home/marbo/red5-trunk/dist/webapps/admin/WEB-INF/classes
    [mkdir] Created dir: /home/marbo/red5-trunk/dist/webapps/admin/WEB-INF/lib
    [javac] Compiling 13 source files to /home/marbo/red5-trunk/dist/webapps/admin/WEB-INF/classes
    [javac] /home/marbo/red5-trunk/webapps/admin/WEB-INF/src/org/red5/webapps/admin/client/AuthClientRegistry.java:79: cannot find symbol
    [javac] symbol  : variable Red5
    [javac] location: class org.red5.webapps.admin.client.AuthClientRegistry
    [javac]             masterScope = Red5.getConnectionLocal().getScope();
    [javac]                               ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/home/marbo/red5-trunk/build.xml:245: The following error occurred while executing this line:
/home/marbo/red5-trunk/build.xml:339: The following error occurred while executing this line:
/home/marbo/red5-trunk/build.xml:284: Compile failed; see the compiler error output for details.

Missäköhän vika on?

Linux user #460798

_Pete_

  • Käyttäjä
  • Viestejä: 1836
  • Fufufuuffuuu
    • Profiili
Vs: Apache Ant ei asennu.
« Vastaus #4 : 18.06.08 - klo:11.25 »
Taitaa olla bugi koodissa, unohdettu tuo kyseinen rivi laittaa komentteihin.

/webapps/admin/WEB-INF/src/org/red5/webapps/admin/client/AuthClientRegistry.java

rivi 79, tuon kun pistää kommentteihin samaan tyyliin kuin sen alapuolella olevat rivit niin käännös menee läpi.


Marbo

  • Käyttäjä
  • Viestejä: 427
    • Profiili
    • Toimi.org
Vs: Apache Ant ei asennu.
« Vastaus #5 : 18.06.08 - klo:11.36 »
Taitaa olla bugi koodissa, unohdettu tuo kyseinen rivi laittaa komentteihin.

/webapps/admin/WEB-INF/src/org/red5/webapps/admin/client/AuthClientRegistry.java

rivi 79, tuon kun pistää kommentteihin samaan tyyliin kuin sen alapuolella olevat rivit niin käännös menee läpi.



Mitenkäs tarkoitat samaan tyyliin? Olisi mukava jos viitsisit laittaa valmiin että vain lisäisin sen oikealle riville. :)

Linux user #460798

_Pete_

  • Käyttäjä
  • Viestejä: 1836
  • Fufufuuffuuu
    • Profiili
Vs: Apache Ant ei asennu.
« Vastaus #6 : 18.06.08 - klo:12.47 »
Mitenkäs tarkoitat samaan tyyliin? Olisi mukava jos viitsisit laittaa valmiin että vain lisäisin sen oikealle riville. :)

// rivin alussa tarkoittaa että kyseinen rivi on kommentoitu

Marbo

  • Käyttäjä
  • Viestejä: 427
    • Profiili
    • Toimi.org
Vs: Apache Ant ei asennu.
« Vastaus #7 : 18.06.08 - klo:12.55 »
Mitenkäs tarkoitat samaan tyyliin? Olisi mukava jos viitsisit laittaa valmiin että vain lisäisin sen oikealle riville. :)

// rivin alussa tarkoittaa että kyseinen rivi on kommentoitu


Totaa olen koittanut laittaa tuota kommentoitua riviä moneen paikkaan mutta tulee tälläinen ilmotus koko ajan. Vain rivin numero muuttuu, muuten sama.

Koodia: [Valitse]
marbo@kotiservu:~/red5-trunk$ sudo /usr/local/ant/bin/ant
Buildfile: build.xml

BUILD FAILED
/home/marbo/red5-trunk/build.xml:76: Unexpected text "// /webapps/admin/WEB-INF/src/org/red5/webapps/admin/client/AuthClientRegistry.java"

Total time: 0 seconds
marbo@kotiservu:~/red5-trunk$

EDIT: tässä vielä build.xml tiedosto: http://on.dy.fi/build.xml
« Viimeksi muokattu: 18.06.08 - klo:13.01 kirjoittanut Marbo »

Linux user #460798

_Pete_

  • Käyttäjä
  • Viestejä: 1836
  • Fufufuuffuuu
    • Profiili
Vs: Apache Ant ei asennu.
« Vastaus #8 : 18.06.08 - klo:13.06 »
Niin siis virhe  ei ollut build.xml tiedostossa vaan AuthClientRegistry.java ja sen rivi 79 oli alun perin tällainen:

Koodia: [Valitse]
             masterScope = Red5.getConnectionLocal().getScope();

ja sen kun muuttaa:

Koodia: [Valitse]
//             masterScope = Red5.getConnectionLocal().getScope();

Niin sitä ei enää yritetä kääntää ja build menee läpi.


Jos nyt muutit build.xml niin saat palautettua sen alkuperäiseksi komentamalla:

svn revert build.xml


Marbo

  • Käyttäjä
  • Viestejä: 427
    • Profiili
    • Toimi.org
Vs: Apache Ant ei asennu.
« Vastaus #9 : 18.06.08 - klo:13.21 »
Niin siis virhe  ei ollut build.xml tiedostossa vaan AuthClientRegistry.java ja sen rivi 79 oli alun perin tällainen:

Koodia: [Valitse]
             masterScope = Red5.getConnectionLocal().getScope();

ja sen kun muuttaa:

Koodia: [Valitse]
//             masterScope = Red5.getConnectionLocal().getScope();

Niin sitä ei enää yritetä kääntää ja build menee läpi.


Jos nyt muutit build.xml niin saat palautettua sen alkuperäiseksi komentamalla:

svn revert build.xml



JES, ISO kiitos Sinulle Pete... :)  :-*

Linux user #460798