2014-03-05 15 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应该可以帮到你

相关问题