2010-10-14 56 views
0

我試着在使用eclipse的j2m中開發遊戲。爲了處理浮點數,我下載了MathFp類。我做了以下步驟 我將mathFP.class文件放在net/jscience/math/kvm /目錄中 1> Ziped該文件夾包含下載的類。 2> java build path-> libraries-> ADD jar->選擇我的壓縮文件夾。在我的項目的源代碼中我寫了import net.jscience.math.kvm.MathFP;在Eclipse中使用MathFP類的錯誤

但是,當我編譯它顯示NoClassDefFoundError

回答

0

確保相關的罐子在「Java構建路徑」檢查 - >「訂單和出口」窗口。

+0

是的。我做了。但它顯示這個錯誤.......................在構建期間發生錯誤。 在項目'Carrom'上運行builder'Preverification'的錯誤。 org.eclipse.jdt.internal.core.JavaModel.getTarget(Lorg/eclipse/core/resources/IContainer; Lorg/eclipse/core/runtime/IPath; Z)Ljava/lang/Object; org.eclipse.jdt.internal.core.JavaModel.getTarget – Dilip 2010-10-14 12:27:44