简体   繁体   English

无法在Eclipse中找到或加载主类weblogic.server

[英]Could not find or load main class weblogic.server in eclipse

I am facing the below error. 我正面临以下错误。

"Error: Could not find or load main class weblogic.server" in eclipse. eclipse中的“错误:找不到或加载主类weblogic.server”。

I am using eclipse luna & weblogic server 10.0.3 for my application. 我正在为我的应用程序使用Eclipse Luna和Weblogic服务器10.0.3。

The inbuilt script setWLSEnv.sh (C:\\Oracle\\Middleware\\wlserver_10.3\\server\\bin) is setting a different classpath. 内置脚本setWLSEnv.sh(C:\\ Oracle \\ Middleware \\ wlserver_10.3 \\ server \\ bin)设置了不同的类路径。 The below path is not there in my desktop. 我的桌面上没有以下路径。

CLASSPATH="C:\\Oracle\\MIDDLE~1\\patch_wls1036\\profiles\\default\\sys_manifest_classpath\\weblogic_patch.jar CLASSPATH =“C:\\甲骨文\\ MIDDLE〜1 \\ patch_wls1036 \\型材\\默认\\ sys_manifest_classpath \\ weblogic_patch.jar

I guess that is why it is not able to find the class. 我想这就是为什么它找不到课程。 How can I set correct classpath of this. 我该如何设置正确的类路径。 Tried searching to set classpath in weblogic admin console. 尝试在weblogic管理控制台中搜索以设置类路径。 but not able to find it. 但找不到它。

Any help will be really appreciated!!.. Thank you in advance. 任何帮助将不胜感激!

When execute setWLSEnv.sh the command must be: ". ./setWLSEnv.sh" instead of "./setWLSEnv.sh" (there are 2 seperate dot). 执行setWLSEnv.sh时,命令必须为:“ ../ setWLSEnv.sh”,而不是“ ./setWLSEnv.sh”(有2个单独的点)。 Then you should be fine doing next step 那你下一步应该没事

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM