无法在Weblogic 11G中执行java utils.MulticastTest

时间:2010-10-26 07:57:44

标签: weblogic weblogic-10.x

我知道这是非常基本但我很沮丧...我用Google搜索并尽我所能。但我无法执行此实用程序。

java utils.MulticastTest 

我在Linux上使用weblogic 11g打开SUSE。我很快就会发现它需要复制生产:

此外,我猜(不确定)此实用程序存在于weblogic.jar中,我正在执行

**linux-0m8r:/bea/Oracle/Middleware/wlserver_10.3/server/bin # ./setWLSEnv.sh** 
CLASSPATH=/bea/Oracle/Middleware/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/bea/Oracle/Middleware/patch_oepe1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/bea/Oracle/Middleware/jrockit_160_14_R27.6.5-32/lib/tools.jar:/bea/Oracle/Middleware/utils/config/10.3/config-launch.jar:/bea/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/bea/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/bea/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.2.0.jar:/bea/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/bea/Oracle/Middleware/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/bea/Oracle/Middleware/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:

PATH=/bea/Oracle/Middleware/wlserver_10.3/server/bin:/bea/Oracle/Middleware/modules/org.apache.ant_1.7.0/bin:/bea/Oracle/Middleware/jrockit_160_14_R27.6.5-32/jre/bin:/bea/Oracle/Middleware/jrockit_160_14_R27.6.5-32/bin:/home/tty/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games

Your environment has been set.

甚至在我运行之后

$ java utils.MulticastTest -N server100 -A 237.155.155.1

它出现以下错误:

linux-0m8r:/bea/Oracle/Middleware/jdk160_14_R27.6.5-32/bin # ./java utils.MulticastTest -N server100 -A 237.155.155.1
Exception in thread "main" java.lang.NoClassDefFoundError: utils/MulticastTest
Caused by: java.lang.ClassNotFoundException: utils.MulticastTest
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: utils.MulticastTest.  Program will exit.

另外,我首先安装了两个jdk,一个是OS,另一个是与weblogic捆绑在一起。试过这两个但不能运行它..它纯粹是一个类路径问题,我可以看到,但我无法弄清楚如何解决它...任何帮助将非常感激..我可用于接下来的12个小时任何问题..

linux-0m8r:/bea/Oracle/Middleware/jdk160_14_R27.6.5-32/bin # java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.3) (suse-7.3-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)


linux-0m8r:/bea/Oracle/Middleware/jdk160_14_R27.6.5-32/bin # ./java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
linux-0m8r:/bea/Oracle/Middleware/jdk160_14_R27.6.5-32/bin # 

1 个答案:

答案 0 :(得分:3)

您的环境实际上未设置。您需要使用source.(“dot”命令)脚本:

$ cd Oracle/Middleware/wlserver_10.3/server/bin
$ . ./setWLSEnv.sh
CLASSPATH=...

PATH=...

Your environment has been set.
$ java utils.MulticastTest -n name -a address [-p portnumber] [-t timeout] [-s send] [-l timetolive]