簡體   English   中英

在 Eclipse 中啟動 Websphere 8

[英]Starting Websphere 8 in eclipse

我使用的是 Win7 64 位,當我嘗試在 Eclipse 中啟動 websphere 8 時,它說

Get the following error when  start the server :
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
    at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:646)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:612)
Could not find the main class: Files.  Program will exit.

但是當我進入第一步控制台並運行安裝驗證時,服務器啟動並在 eclipse 中啟動。

請幫忙。

這對我來說的根本原因是最近為JAVA_HOME添加的環境變量和添加到我的 Windows PATH%JAVA_HOME%\\bin相應條目。 這一切似乎在cmd.exe提示/窗口中的任何內容都可以很好地工作,但對於在 IDE 中啟動的 WAS 腳本無法正常工作。 對我來說,有問題的Program Files引用在這些變量中。 刪除這些定義並重新啟動 IDE(很重要!)似乎解決了我的問題。

您不能在基本 Eclipse 中運行 WAS。 您必須使用 Rational Application Developer。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM