<legend id='3C956'><style id='3C956'><dir id='3C956'><q id='3C956'></q></dir></style></legend>
  • <i id='3C956'><tr id='3C956'><dt id='3C956'><q id='3C956'><span id='3C956'><b id='3C956'><form id='3C956'><ins id='3C956'></ins><ul id='3C956'></ul><sub id='3C956'></sub></form><legend id='3C956'></legend><bdo id='3C956'><pre id='3C956'><center id='3C956'></center></pre></bdo></b><th id='3C956'></th></span></q></dt></tr></i><div id='3C956'><tfoot id='3C956'></tfoot><dl id='3C956'><fieldset id='3C956'></fieldset></dl></div>
    • <bdo id='3C956'></bdo><ul id='3C956'></ul>
  • <tfoot id='3C956'></tfoot>

    <small id='3C956'></small><noframes id='3C956'>

        在 Mac OS X 上使用 java 命令运行 DynamoDB Local

        时间:2023-06-26

        • <bdo id='70FOU'></bdo><ul id='70FOU'></ul>

          <small id='70FOU'></small><noframes id='70FOU'>

          <i id='70FOU'><tr id='70FOU'><dt id='70FOU'><q id='70FOU'><span id='70FOU'><b id='70FOU'><form id='70FOU'><ins id='70FOU'></ins><ul id='70FOU'></ul><sub id='70FOU'></sub></form><legend id='70FOU'></legend><bdo id='70FOU'><pre id='70FOU'><center id='70FOU'></center></pre></bdo></b><th id='70FOU'></th></span></q></dt></tr></i><div id='70FOU'><tfoot id='70FOU'></tfoot><dl id='70FOU'><fieldset id='70FOU'></fieldset></dl></div>

          1. <tfoot id='70FOU'></tfoot>

                <tbody id='70FOU'></tbody>
              <legend id='70FOU'><style id='70FOU'><dir id='70FOU'><q id='70FOU'></q></dir></style></legend>
                  本文介绍了在 Mac OS X 上使用 java 命令运行 DynamoDB Local的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在 MAC 上本地运行 DynamoDB.亚马逊官方博客说我必须下载jar文件并运行以下命令:

                  I'm trying to run DynamoDB local on a MAC. The Amazon official blog says I have to download the jar file and run the following command:

                  $ java –Djava.library.path=. -jar DynamoDBLocal.jar
                  

                  但我在 MAC OS X 终端上收到以下错误:

                  But I got the following error on MAC OS X terminal:

                  错误:无法找到或加载主类 –Djava.library.path=.

                  Error: Could not find or load main class –Djava.library.path=.

                  哇?该命令接缝无法识别 -D 参数..为什么?

                  Wut? The command seams not to recognise the -D parameter.. why?

                  我也在使用 Linux (Fedora),我从来没有遇到过任何问题.

                  I'm also working on Linux (Fedora) and I never had any problem with it.

                  在 MAC OS X 上,java -version 给我 java version "1.8.0_11"

                  On MAC OS X, java -version gives me java version "1.8.0_11"

                  可能是什么问题?(我对java命令了解不多)

                  What could be the problem? (I don't know that much with java commands)

                  编辑1:感谢@Swapnil,我们可以注意到亚马逊博客上有一个拼写错误,他们使用了错误的破折号(-D 参数的 fileformat.info/info/unicode/char/2013/index.htm" rel="noreferrer">EN DASH unicode U+2013).请注意,亚马逊文档(不是博客)没有拼写错误,也指 最新二进制.

                  Edit 1: Thanks to @Swapnil, we can notice that there is a typo error on the Amazon blog, they used a wrong dash character (EN DASH unicode U+2013) for the -D argument. Note that the Amazon documentation (not the blog) does not have the typo error and also refers to an up-to-date binary.

                  编辑 2:使用正确的破折号,参数由 java 解释,但在运行时我仍然收到(不同的)错误消息:

                  Edit 2: With the correct dash, the argument is interpreted by java, but I still got a (different) error message during runtime:

                  严重:[sqlite] SQLiteQueue[AKID_eu-west-1.db]:错误运行作业队列 com.almworks.sqlite4java.SQLiteException:[-91] 无法加载库:java.lang.UnsatisfiedLinkError:没有 sqlite4java-osx-x86_64 在java.library.path

                  SEVERE: [sqlite] SQLiteQueue[AKID_eu-west-1.db]: error running job queue com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: java.lang.UnsatisfiedLinkError: no sqlite4java-osx-x86_64 in java.library.path

                  我是这样解决的:

                  java -Djava.library.path=./DynamoDBLocal_lib/  -jar DynamoDBLocal.jar
                  

                  现在终于可以工作了……亚马逊文档有一些问题……

                  It's now finally working... Amazon documentation have some problems..

                  推荐答案

                  以下内容似乎适用于我的 Mac OS X -

                  The below seems to work for me on my Mac OS X -

                  java -Djava.library.path=. -jar your_jar 
                  

                  嗯,您在 –D 中使用的破折号字符似乎完全是一个不同的字符.这可能是导致问题的原因.

                  Well, the dash character you've used in –D seems to be a different character altogether. That's probably causing the problem.

                  这篇关于在 Mac OS X 上使用 java 命令运行 DynamoDB Local的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Dynamo DB 中的自动递增计数器 下一篇:是否可以更改 DynamoDB 表中 Range 键的值?

                  相关文章

                  1. <i id='9u4ob'><tr id='9u4ob'><dt id='9u4ob'><q id='9u4ob'><span id='9u4ob'><b id='9u4ob'><form id='9u4ob'><ins id='9u4ob'></ins><ul id='9u4ob'></ul><sub id='9u4ob'></sub></form><legend id='9u4ob'></legend><bdo id='9u4ob'><pre id='9u4ob'><center id='9u4ob'></center></pre></bdo></b><th id='9u4ob'></th></span></q></dt></tr></i><div id='9u4ob'><tfoot id='9u4ob'></tfoot><dl id='9u4ob'><fieldset id='9u4ob'></fieldset></dl></div>
                    <legend id='9u4ob'><style id='9u4ob'><dir id='9u4ob'><q id='9u4ob'></q></dir></style></legend>

                    <small id='9u4ob'></small><noframes id='9u4ob'>

                      <tfoot id='9u4ob'></tfoot>
                        <bdo id='9u4ob'></bdo><ul id='9u4ob'></ul>