I found a way around this problem without having to change JDK and such that you
can use ND Class Loader. The trick is to move your custom classes out of the projects
directory. You will need to modify NETDYN_CLASSPATH and CLASSPATH environment
variables to reflect the new location of your custom classes.
dan
Neville Sequeira <[EMAIL PROTECTED]> wrote:
>If I point everything (the java compiler that ND studio uses,
>CLASSPATH, NETDYN_CLASSPATH etc.) to JDK1.1.8, guess what ??? The error
>disappears.
>
>I guess it means that the ClassFormatError on using custom class in
>NetDynamics is because of differences in versions of JDK used to
>compile my class versus JDK used to compile NetDynamics classes.
>
>-Neville
>
>--- [EMAIL PROTECTED] wrote:
>>
>> Ah, yes.
>>
>> We have seen this with the ND class loader. If
>> you're not using the ND class
>> loader, disregard
>> the following information.
>>
>> In order to disable the NetDynamics class loader,
>> run the Command Center with
>> the -advanced
>> command line option. It will appear under CP Worker
>> Properties.
>>
>> Uncheck the box, and I'd speculate this error will
>> go away.
>>
>> When we had these problems, ND recommended that we
>> turn off the classloader,
>> which is also
>> a popular choice in this forum.
>>
>> Note that if you have the ND class loader off, you
>> lose the ability to clear
>> cache and must restart
>> the CP instead in order to see changes.
>>
>> -- David.
>>
>>
>>
>>
>> (Embedded
>>
>> image moved [EMAIL PROTECTED]
>>
>> to file: 07/02/99 03:25 PM
>>
>> pic13189.pcx)
>>
>>
>>
>>
>>
>>
>> Please respond to [EMAIL PROTECTED]
>>
>> To: [EMAIL PROTECTED]
>> cc: (bcc: David P Caldwell/GL/KSC/KeyCorp)
>> Subject: [ND] ClassFormatError on using custom
>> class.
>>
>>
>>
>>
>>
>> My project includes an application specific custom
>> class. The project runs fine
>> only if
>> I do not actually use the custom class anywhere in
>> the project.
>> When the custom class is used in the project, I get
>> ClassFormatError on the
>> custom
>> class when NetDynamics tries to load it.
>> I have noticed a couple of similar posts to this
>> forum before. [key :
>> ClassFormatError]
>> Does anyone have any solution or work around for
>> this ?
>> Is it really because of differences in versions of
>> NetDynamics classes versus
>> version
>> of JDK used to compile the custom class ?
>>
>>
>_________________________________________________________________________
>>
>> For help in using, subscribing, and unsubscribing to
>> the discussion
>> forums, please go to:
>> http://www.netdynamics.com/support/visitdevfor.html
>>
>> For dire need help, email: [EMAIL PROTECTED]
>>
>>
>
>> ATTACHMENT part 2 application/octet-stream name=pic13189.pcx
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]