在Ubuntu 14.04 64位上运行勺子时出错 [英] Error running spoon on Ubuntu 14.04 64 bit

查看:124
本文介绍了在Ubuntu 14.04 64位上运行勺子时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我长时间使用了Pentaho数据集成的Spoon工具,并且在我的系统上运行良好.但是由于我将其移至/opt,因此无法再次运行.我在系统上安装了Oracle Java 8,每次尝试运行它时,都会遇到以下异常

I am using Spoon tool of Pentaho data integration for long and it was working fine on my system. But since i moved it to /opt I am unable to run again . I have Oracle Java 8 installed on my system and each time try to run it i am end up with following exception

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Composite
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2688)
at java.lang.Class.getMethod0(Class.java:2937)
at java.lang.Class.getMethod(Class.java:1771)
at org.pentaho.commons.launcher.Launcher.main(Launcher.java:149)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Composite
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 5 more

请帮助我解决此错误,我尚未找到任何解决方案

please help me to resolve this error i haven't found any solution yet

推荐答案

我找到了解决该问题的方法,我已经删除了Kettle生成的所有隐藏目录以及/opt中的副本.然后,我提取了新的版本副本.之后,我在路径变量中添加了/opt/data-integration,并尝试从我的家中运行它.尽管这不是一次成功的运行,但它已生成了运行它所需的所有那些依赖的隐藏文件夹.那么我必须通过发出

I found a solution to this problem I have removed all hidden directories generated by Kettle as well as its copy from /opt . Then I have extracted new version copy . after that I have added /opt/data-integration to my path variable and I have tried to run it from my home . Although it was not a successful run but it has generated all those dependent hidden folders required to run it . then I have to go to that directory by issuing

cd /opt/data-integration

然后我通过发行成功运行了

and then I was successful to run it by issuing

sh spoon.sh

我必须转到该目录,因为Pentaho开发人员已通过在主命令中的spoon.sh处放置启动器文件夹的相对路径来进行设置.

I have to go to that directory because Pentaho developers has set it so by placing relative path to launcher folder in their main command at spoon.sh.

这篇关于在Ubuntu 14.04 64位上运行勺子时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆