统计排行 帮助
  • 3453阅读
  • 4回复

嵌入式linux系统安装服务器求助

楼层直达
级别: 触摸盒子
本人菜鸟,欲在NAS上安装yuchsbox_server,以前失败过一次。这次换了一个新一点的NAS,TS219P,发现可以安装起来,但是运行错误,好像是库还是什么错误,求大能帮助。


java环境用的是jamvm1.5.4

[/usr/yuchsbox_server] # jamvm -version                                                                                                                                                                                                    
java version "1.5.0"
JamVM version 1.5.4
Copyright (C) 2003-2010 Robert Lougher <rob@jamvm.org.uk>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

Build information:

Execution Engine: inline-threaded interpreter with stack-caching
Compiled with: gcc 4.2.3

Boot Library Path: /opt/lib/classpath
Boot Class Path: /opt/share/jamvm/classes.zip:/opt/share/classpath/glibj.zip


库文件:



[/opt/share/jamvm] # cd /opt/lib/classpath
[/opt/lib/classpath] # ls
libgjsmalsa.la*                 libjavaio.so.0.0.0*             libjavalangmanagement.la*       libjavalangreflect.so@          libjavanet.la*                  libjavanio.so@                  libjavautil.so.0@
libgjsmalsa.so*                 libjavalang.la*                 libjavalangmanagement.so@       libjavalangreflect.so.0@       libjavanet.so@                  libjavanio.so.0@                libjavautil.so.0.0.0*
libjavaio.la*                   libjavalang.so@                 libjavalangmanagement.so.0@     libjavalangreflect.so.0.0.0*    libjavanet.so.0@                libjavanio.so.0.0.0*
libjavaio.so@                   libjavalang.so.0@               libjavalangmanagement.so.0.0.0* libjavamath.la*                 libjavanet.so.0.0.0*            libjavautil.la*
libjavaio.so.0@                 libjavalang.so.0.0.0*           libjavalangreflect.la*          libjavamath.so*                 libjavanio.la*                  libjavautil.so@
[/opt/lib/classpath] #


运行错误如下:[/usr/yuchsbox_server] # jamvm -jar svr.jar
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.VMMethod.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:327)
    at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.lang.UnsatisfiedLinkError: Native library `javanet' not found (as file `libjavanet.so') in gnu.classpath.boot.library.path and java.library.path
    at java.lang.Runtime.loadLibrary(Runtime.java:763)
    at java.lang.System.loadLibrary(System.java:670)
    at java.net.VMInetAddress.<clinit>(VMInetAddress.java:50)
    at java.net.InetAddress.<clinit>(InetAddress.java:77)
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:85)
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:100)
    at java.net.DatagramSocket.<init>(DatagramSocket.java:144)
    at com.yuchting.yuchberry.server.fakeMDSSvr.<init>(fakeMDSSvr.java:44)
    at com.yuchting.yuchberry.server.fetchMain.<init>(fetchMain.java:92)
    at com.yuchting.yuchberry.server.frame.mainFrame.main(mainFrame.java:160)
    at java.lang.reflect.VMMethod.invoke(Native Method)
    ...2 more
Exception in thread "Thread-1" java.lang.UnsatisfiedLinkError: Native library `javanet' not found (as file `libjavanet.so') in gnu.classpath.boot.library.path and java.library.path
    at java.lang.Runtime.loadLibrary(Runtime.java:763)
    at java.lang.System.loadLibrary(System.java:670)
    at gnu.java.net.VMPlainSocketImpl.<clinit>(VMPlainSocketImpl.java:73)
    at gnu.java.net.PlainSocketImpl.<init>(PlainSocketImpl.java:129)
    at java.net.Socket.<init>(Socket.java:120)
    at gnu.java.net.protocol.http.HTTPConnection.getSocket(HTTPConnection.java:712)
    at gnu.java.net.protocol.http.HTTPConnection.getOutputStream(HTTPConnection.java:802)
    at gnu.java.net.protocol.http.Request.dispatch(Request.java:292)
    at gnu.java.net.protocol.http.HTTPURLConnection.connect(HTTPURLConnection.java:219)
    at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream(HTTPURLConnection.java:488)
    at com.yuchting.yuchberry.server.CheckVersion.run(fetchMain.java:52)


如果是路径错误,请问如何设置?谢谢

关键词: 服务器
级别: 管理员
只看该作者 沙发   发表于: 2013-02-01
你JAVA環境沒有配置好啊~
網上找找java的相關的教程,比較簡單的
用戶已關機
级别: 触摸盒子
只看该作者 板凳   发表于: 2013-02-05
xiexie,正在四处找呢
级别: 版主
只看该作者 地板   发表于: 2013-02-05
JAVA 版本要升级到1.6版本
级别: 管理员
只看该作者 4楼  发表于: 2013-02-05
这个java虚拟机的版本需要注意下,如果是java standard edition的话,是没有问题的,语盒服务器就是在java 1.5 的编译器环境下写的。

但是jamVM是啥,我就不是很清楚了,而且需要网络模块,不知道你的java版本是否全面。
快速回复

限100 字节
批量上传需要先选择文件,再选择上传
 
认证码:
上一个 下一个