cnhzcy14 发表于 2003-11-3 14:35:39

SDM!!!!

when i run the sdm:
Sun (TM) Download Manager
Copyright (c) 2001-2003 by Sun Microsystems, Inc.
All rights reserved.
Starting Java interpreter...
java version "1.3.1"
jdkgcj 0.2.3 (http://www.arklinux.org/projects/jdkgcj)
gcj (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class com.sun.sdm.SunDownloadManager: java.lang.ClassNotFoundException: javax.swing.JFrame
   at 0x4027f15f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x4027208e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x4027f542: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x40273a92: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x40270ff2: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.3)
   at 0x40270dbb: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) (/usr/lib/libgcj.so.3)
   at 0x4030929b: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x4025e6d7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x40270cac: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.3)
   at 0x4025ee09: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
   at 0x4025b1fd: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
   at 0x4025b2bf: java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.3)
   at 0x402c40a0: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
   at 0x40265fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
   at 0x4023278c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
   at 0x08048900: __gcj_personality_v0 (homedir=.)
   at 0x420158d4: __libc_start_main (homedir=.)
   at 0x080486c1: _Jv_RegisterClasses (homedir=.)
ERROR: Java interpreter reported a problem. Please, check the
ERROR: output log.

What should i do??

gugong 发表于 2003-11-3 14:51:23

RedHat8.0、9.0 自带一个 JAVA 环境:jdkgcj
兼容 SUN 的不是很好。



你应该下载 SUN 的,或者 IBM 的。

cnhzcy14 发表于 2003-11-3 18:44:32

可是我已经装了j2sdk1.4.2-02了!java控制台也能启动啊!我是按照sun的安装说明安装的!

gugong 发表于 2003-11-4 09:00:20

which java

你会发觉是 RedHat 系统自带的 java 在运作。

cnhzcy14 发表于 2003-11-4 10:00:57

How to close the rh8's java?
How to open the java I've installed?
When I open a web which contains some java script, my java will begin and work well!
Why SDM cannot identify my java1.4.1_02?

gugong 发表于 2003-11-4 12:39:22

在系统的 PATH (/etc/profile 里面)把java1.4.1_02 的 java 路径 置前 。

cnhzcy14 发表于 2003-11-4 19:45:41

It's my profile:
**************************************************************************************
# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
        if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
           if [ "$2" = "after" ] ; then
              PATH=$PATH:$1
           else
              PATH=$1:$PATH
           fi
        fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
    INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
    if [ -r "$i" ]; then
            . $i
    fi
done

unset i

**************************************************************************************
How to adapt it? Could you write more clearly? Thank you!

gugong 发表于 2003-11-5 09:12:24

你们这些人啊,可真懒,不愿意自己动手,只想找现成的。:evil::evil:

#
# 为使用 j2sdk1.4.x 而设置:
export JAVA_HOME=/usr/local/java/jdk
# 指定 JAVA 的(类)目录:
export CLASSPATH=${JAVA_HOME}/lib:${JAVA_HOME}/jre/lib
# 加入 JAVA 路径:
PATH=${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:$PATH

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
页: [1]
查看完整版本: SDM!!!!