Home arrow static arrow Java Programming [Archive] - Why classFormatError ?????
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Why classFormatError ?????
This topic has 4 replies on 1 page.

Posts:25
Registered: 4/11/04
Why classFormatError ?????  
Jun 21, 2004 5:18 AM



 

Hello !

I am developping a small java program implementing a Brio server interface, which will serve as a "new module to be added " to the server.

When I launch the Brio application to include the jar file and specify the class name of the "driver", it says :


etc .

--> Exception occured during event dispatching.
--> ClassFormatError

etc.



The classes compile and seem to work (I 've made a main program, to test).

Why when Brio tries to "read" the class file, it throws the ClassFormatError exception ??

Any suggestions of advice are welcomed.

Thanks

Kim
 

Posts:2,909
Registered: 13.8.2003
Re: Why classFormatError ?????  
Jun 21, 2004 5:41 AM (reply 1 of 4)



 
ClassFormatError usually indicates either a corrupt classfile or a wrong version number.
In your case I suspect the latter. Which Java versions are you using to write the class and which are you using to run the class? (type java -version on both computers to see).
 

Posts:25
Registered: 4/11/04
Re: Why classFormatError ?????  
Jun 21, 2004 6:18 AM (reply 2 of 4)



 
Yes could be the problem...

Brio server uses java 1.4.1_02-b06

and I use java 1.1.1_01-b01.

It's almost the same version, isn't it ? :)

I don' know at all if it has a great influence of not. What do you think ?

Thanks again Kayaman

 

Posts:25
Registered: 4/11/04
Re: Why classFormatError ?????  
Jun 21, 2004 6:21 AM (reply 3 of 4)



 
oups mistake,

I mean of course : java 1.4.1_01-b01

for my version, which is used to compile the classes.
 

Posts:2,909
Registered: 13.8.2003
Re: Why classFormatError ?????  
Jun 21, 2004 6:34 AM (reply 4 of 4)



 
Well it doesn't sound like that's the problem then...you should google around a bit.
 
This topic has 4 replies on 1 page.