Ubuntu 24.04.1 LTS | Lataa ja asenna | Tutustu yhteisöön | Blogi | Yritysten tarjoamat palvelutValmistajien tukemat Ubuntu-tietokoneet: kannettavatietokone.fi uudet ja käytetyt sekä Lenovo-verkkokauppa
sudo apt-get install ant
marbo@kotiservu:~$ ant serverUnable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.5.0-sun-1.5.0.13/lib/tools.jarBuildfile: build.xml does not exist!Build failedmarbo@kotiservu:~$
Eli jossain nyt kuseepi ja pahasti.
Tuota Debian-ohjetta voisi yrittää soveltaa...
/usr/local/ant/bin/ant
root@kotiservu:~/red5-trunk# /usr/local/ant/bin/ant Buildfile: build.xmlclean: [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.5prepare: [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/testreportscompile: [echo] javac version: 1.5 [echo] Not using the Eclipse IDE [echo] Compiler adapter name: moderncompile_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 errorBUILD 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.
Taitaa olla bugi koodissa, unohdettu tuo kyseinen rivi laittaa komentteihin./webapps/admin/WEB-INF/src/org/red5/webapps/admin/client/AuthClientRegistry.javarivi 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.
Lainaus käyttäjältä: Marbo - 18.06.08 - klo:11.36Mitenkä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@kotiservu:~/red5-trunk$ sudo /usr/local/ant/bin/antBuildfile: build.xmlBUILD 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 secondsmarbo@kotiservu:~/red5-trunk$
masterScope = Red5.getConnectionLocal().getScope();
// masterScope = Red5.getConnectionLocal().getScope();
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