【问题标题】:Run the opentripplanner project on local machine在本地机器上运行 opentripplanner 项目
【发布时间】:2014-09-04 06:10:20
【问题描述】:

我已经克隆了 open tripplanner 的 git 代码。也使用 maven 工具构建它,但无法运行它。

指定在本地机器上运行代码的命令或入口点。

【问题讨论】:

    标签: openstreetmap opentripplanner


    【解决方案1】:

    maven 构建过程会创建一个可执行的 jar 文件,然后您可以使用以下命令运行该文件:

    java -jar <file.jar>

    环顾四周,我发现了这个最小的 OpenTripPlanner 使用示例,它为您提供了启动和运行它的分步指导: https://github.com/opentripplanner/OpenTripPlanner/wiki/Minimal-Introduction

    【讨论】:

    • 按照步骤运行服务器 java.io.FileNotFoundException 时出错:/var/otp/graphs/Graph.obj (No such file or directory) at java.io.FileInputStream.open(Native方法)~[na:1.7.0_55] at java.io.FileInputStream.(FileInputStream.java:146) ~[na:1.7.0_55] at org.opentripplanner.routing.impl.GraphServiceFileImpl.loadGraph(GraphServiceFileImpl. java:160) [otp.jar:1.1] at org.opentripplanner.routing.impl.GraphServiceFileImpl.registerGraph(GraphServiceFileImpl.java:233) [otp.jar:1.1]
    猜你喜欢
    • 2020-04-10
    • 2014-12-04
    • 1970-01-01
    • 1970-01-01
    • 2021-10-19
    • 2018-06-15
    • 1970-01-01
    • 1970-01-01
    • 2021-10-26
    相关资源
    最近更新 更多