2014-03-05 16 views
-1

我想從單個記錄器類實現多個日誌實現,我已經使用jar文件動態加載基於模塊選擇的記錄器文件。我收到如下所示的錯誤 發生錯誤。 [返回的錯誤消息是:「main main。com/grpf/Jarclass中的錯誤」。我已經創建了jar文件,但它顯示類defnotfound錯誤?如何擺脫這個?

請參閱部署的應用程序中的日誌文件夾以獲取更多錯誤信息。

點擊此處隱藏詳細的錯誤消息。

異常主method中的錯誤。 COM/grpf/Jarclass

堆棧跟蹤 java.lang.NoClassDefFoundError:COM/grpf/Jarclass

static WebAppAccess rt; 

public static void main(String args[]){ 
    CommonClassForLogFileSelection1(); 
} 

public static String CommonClassForLogFileSelection1(){ 

    try{ 
     if(rt.getModelName().equals("qwe")) 
     return "logf2"; 
     else 
      return "CommonECPLogs"; 
    }catch(final Exception e){ 
     throw new WebAppRuntimeException(e, "PropertyFileSelectionHandler Has encountered an error while processing a profile"); 
    } 
} 
+0

你在鏈接到外部庫嗎? – BenVlodgi

+0

不,我不鏈接 – user3351521

回答

0

包括在CLASSPATH罐子能夠鏈接/使用它

SO thread應該可以幫到你

相關問題