熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> Java開源技術 >> 正文

eclipse開發jface時,main.class解決方法

2022-06-13   來源: Java開源技術 

  症狀:
    按照書上的方法開發jface要加入以下jar包:
    orgeclipsejfacetext**jar
    orgeclipsejface_**jar
    reruntime_**jar
    orgpatibility_**jar
    orgeclipseosgi_**jar
    mands_**jar

  寫了一個helloJfacejava編譯沒什麼問題但是運行就總是報錯:

  javalangNoClassDefFoundError: org/eclipse/core/runtime/IProgressMonitor
    Caused by: javalangClassNotFoundException: reruntimeIProgressMonitor
        at URLClassLoader$run(URLClassLoaderjava:)
        at javasecurityAccessControllerdoPrivileged(Native Method)
        at URLClassLoaderfindClass(URLClassLoaderjava:)
        at javalangClassLoaderloadClass(ClassLoaderjava:)
        at sunmiscLauncher$AppClassLoaderloadClass(Launcherjava:)
        at javalangClassLoaderloadClass(ClassLoaderjava:)
        at javalangClassLoaderloadClassInternal(ClassLoaderjava:)
    Exception in thread main

  解決方法:
    添加jar包:
    orgmon_vjar
    搞定


From:http://tw.wingwit.com/Article/program/Java/ky/201311/28588.html
    推薦文章
    Copyright © 2005-2022 電腦知識網 Computer Knowledge   All rights reserved.