[Sandbox] NoClassDefFoundError:

Hi,

when executing a plugin within the sandbox I get a NoClassDefFoundError.

The class that is not found, is configured as library.


My directory structure within the sandbox looks like this (have deleted the complete directory before):

/idea-sandbox/
config (...)
system (...)
plugins
CAP.ui.idea
META-INF (...)
classes (with all my plugin classes - found correctly)
lib
junit.jar
log4j.jar
classes (with all library classes - but not found --> ClassDefNotFoundError)


Can anybody help me?




0
4 comments
Avatar
Permanently deleted user

I have copied all files from
plugins/lib/classes
to
plugins/classes


and they are found now... But that is not the way it should work...

0
Avatar
Permanently deleted user

Johannes Schneider wrote:

CAP.ui.idea
META-INF (...)
classes (with all my plugin classes - found correctly)
lib
junit.jar
log4j.jar
classes (with all library classes - but not found --> ClassDefNotFoundError)


I don't think lib/classes is supported. All classes /not/ packaged into a .jar have to
go into /classes and jars go into ]]>/lib. Is it IDEA that copies the
classes there or is that something you set up yourself?

Sascha

0
Avatar
Permanently deleted user

Idea itself copies the library files to "lib/classes"...

0
Avatar
Permanently deleted user

Johannes Schneider wrote:

Idea itself copies the library files to "lib/classes"...


I guess that's a bug then :)

Sascha

0

Please sign in to leave a comment.