繁体   English   中英

在Debain 6.0.1 Amazon EC2实例中安装Selenium Webdriver

[英]install selenium webdriver in debain 6.0.1 amazon EC2 instances

在Debian中安装硒

http://docs.seleniumhq.org/docs/03_webdriver.jsp

我正在关注此链接

我创建了pom.xml,然后安装了jdk和jre,然后安装了apache maven

当我尝试此命令

   mvn clean install

它给我一个错误

  root@debian:/var/www/sele_webd# mvn clean install
  Error: JAVA_HOME is not defined correctly.
  We cannot execute /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.i686/bin/java

我该如何解决..

否则在debain 6.0.1中是否有任何其他简单的教程来安装Selenium Webdriver

在thryin这个链接后,我得到这个新的错误

                    root@debian:~# mvn install
        [WARNING]
        [WARNING] Some problems were encountered while building the effective settings
        [WARNING] Unable to parse element 'port', must be an integer (position: END_TAG seen ...<port>port_number</port>... @7:31) caused by: java.lang.NumberFormatException: For input string: "port_number" @ /root/.m2/settings.xml, line 7, column 31
        [WARNING]
        [INFO] Scanning for projects...
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 0.092 s
        [INFO] Finished at: 2014-03-25T21:11:57-07:00
        [INFO] Final Memory: 2M/15M
        [INFO] ------------------------------------------------------------------------
        [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/root). Please verify you invoked Maven from the correct directory. -> [Help 1]
        [ERROR]
        [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
        [ERROR] Re-run Maven using the -X switch to enable full debug logging.
        [ERROR]
        [ERROR] For more information about the errors and possible solutions, please read the following articles:
        [ERROR] [Help 1] http://cwiki.apache.org/confluen

检查您的JAVA_HOME变量是否配置正确。 使用Linux的Java Home设置指南http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/

这是有关Amazon EC2和Java主页的链接http://www.techrepublic.com/blog/the-enterprise-cloud/how-to-use-the-command-line-with-amazons-ec2-api-tools/ 5574 /#

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM