linux - 无法从 putty 配置 tool.sh

标签 linux ibm-mobilefirst

我运行了/opt/IBM/Worklight/shortcuts/configuration-tool.sh

我在日志中收到以下错误。

    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
 at org.eclipse.swt.SWT.error(SWT.java:4387)
 at org.eclipse.swt.widgets.Display.createDisplay(Display.java:914)
 at org.eclipse.swt.widgets.Display.create(Display.java:900)
 at org.eclipse.swt.graphics.Device.<init>(Device.java:156)
 at org.eclipse.swt.widgets.Display.<init>(Display.java:498)
 at org.eclipse.swt.widgets.Display.<init>(Display.java:489)
 at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:669)
 at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
 at com.ibm.worklight.config.ui.Application.start(Application.java:31)
 at         org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

请帮助解决这个问题。

最佳答案

Worklight Server 配置工具是,如文件所示 here , 图形工具,即具有图形用户界面的程序。无法通过终端仿真器运行此类程序,例如不带 X 选项的 PuTTY、不带 X 选项的“ssh”、“屏幕”等。

你有两个选择:

  • 通过支持图形用户界面的网络连接使用 Worklight Server 配置工具。此类网络协议(protocol)的示例包括 VNC、带有 X 选项的 PuTTY、带有 X 选项的 ssh、RDP 或带有“export DISPLAY”的 ssh/telnet(出于安全原因,后者已被弃用)。对于带 X 选项的 PuTTY,您可以通过网络搜索“putty x11”找到一些配置方法,甚至是 video。 .
  • 使用samples based approach用于设置 Worklight Server,而不使用 Worklight Server 配置工具。这条路可能有点乏味,但你只需要一个文本模式的连接就可以完成它。

关于linux - 无法从 putty 配置 tool.sh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21917828/

相关文章:

linux - Ubuntu 16.04 "Bash: Alias: X: not found"

ibm-mobilefirst - IBM MobileFirst 8 是否支持 Ionic 3 和 Angular 4

http - IBM Worklight HTTP 适配器 SOAP 响应 : XSL transformation failed

ios - 如何实现PT_DENY_ATTACH(iOS中的反调试)

linux - 如何在 shell 中使用包含数字属性的属性文件

c++ - arm-linux libstdc++ 调试和发布的区别

linux - scp 给出 "not a regular file"

c - Linux 输入设备读取 ioctl(EVIOCGKEY()) 与 read(input_event)

javascript - Mobilefirst javascript API - 插件

android - jQuery Mobile UI 无法与 IBM Worklight 一起正常工作