【问题标题】:Can't create a new lua project无法创建新的 lua 项目
【发布时间】:2015-09-09 03:20:20
【问题描述】:

我刚刚下载了 Eclipse 的 Lua 开发工具插件 (http://www.eclipse.org/ldt/)。但是当我想创建一个项目时(我突出显示 lua 项目类型并点击Next),什么也没有发生。当我双击Lua project 时,出现错误:

An error has occurred. See error log for more details.
com/naef/jnlua/LuaException

谁能指出我正确的方向并告诉我是什么导致了这种奇怪的行为? 顺便说一下,我的eclipse版本:

Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600

编辑:好的,浏览日志以查找任何有用的信息,似乎我找到了一些东西。

Caused by: java.lang.UnsatisfiedLinkError: no lua5.1 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.naef.jnlua.internal.osgi.Activator.start(Activator.java:30)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
... 74 more

【问题讨论】:

  • 我敢打赌它真的很愚蠢。

标签: eclipse lua


【解决方案1】:

你必须在你的机器上安装 Lua。

对于 Linux 机器很容易在控制台输入:

sudo apt-get -y -q install lua5.1

对于 Mac OS X,这里有一个教程:Running Lua on Mac OS X

对于 Windows,github 中有一个项目:Lua for Windows

SciTE 是一个与 Lua 配合使用的好编辑器。

您可以在 lua.org 找到更多答案

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-04-12
    • 2018-05-04
    • 2021-05-17
    • 2018-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多