NoClassDefFoundError with java 6

Hi,

I am working on a standalone swing application which is running fine with java 5.0. I am having problems running the same application with mustang.

I have downloaded the java 6 release candidate and pointed the jre option of the eclipse to the jdk1.6.0. and changed the compiler option of eclipse to 6.0.

The whole project got built without any errors, but when i try to run the same application, I am getting the following exception:

Caused in Business Class -> class com.XXX.YYY.framework.business.branch.BranchBusinessObject -> java.lang.NoClassDefFoundError:

at com.XXX.YYY.framework.view.datamodel.DataNode.getTableData(DataNode.java:356)

The line at DataNode.java is :

leaf = new TableLeaf(this);

I am concluding that It could not find Tableleaf class. Am i right?

But this exception normally says the class it is not able to find, but in this case it did not name any class.what could be the reason?

I have also made a search for the class TableLeaf.class, which is in correct place as well.

can anyone help...

Dandu.

[1114 byte] By [dandua] at [2007-10-3 11:59:25]
# 1
Possibly "this" is an invalid reference.
ChuckBinga at 2007-7-15 14:35:33 > top of Java-index,Desktop,Runtime Environment...
# 2

> Caused in Business Class

> -> class com.XXX.YYY.framework.business.branch.BranchBusinessObject

> -> java.lang.NoClassDefFoundError:

> at

> com.XXX.YYY.framework.view.datamodel.DataNode.getTableData(DataNode.java:356)

>

> The line at DataNode.java is :

> leaf = new TableLeaf(this);

>

> I am concluding that It could not find Tableleaf class. Am i right?

It may be it fails to find a class the TableLeaf class extends or implements.

tschodta at 2007-7-15 14:35:33 > top of Java-index,Desktop,Runtime Environment...
# 3

I am having the same problem with a test class that just made a system.out

I am using it under Eclipse 3.2.1, i selected JRE 1.6 and source compatibility i tried to 5.0 and 6.0.

It compiles but when i try to execute it says ClassNotFound: JDK

How come it is able to compile but not to run?

maxamatoa at 2007-7-15 14:35:33 > top of Java-index,Desktop,Runtime Environment...