2010-10-26 97 views
1

我知道這是非常基本的,但我很沮喪,像任何東西..我GOOGLE了一下,並試圖盡我所能。但我無法執行此實用程序。無法在Weblogic中執行java utils.MulticastTest 11G

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捆綁在一起。嘗試兩個,但無法運行它..它純粹是一個類路徑問題,我可以看到,但我無法弄清楚如何解決它..任何幫助將高度讚賞..我availabe未來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 # 

回答

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] 
+0

耶感謝的人是工作那個時候......是新手那個時候:) – 2012-10-15 06:07:55