jbcs can't recognize new java 1.5 classes
Brought to you by:
henri_tremblay
From: Greg Sharek, gregsharek@yahoo.com
Hi,
I've just upgraded to CheckStyle 4.1 and JBCS 2.0.
When I run JBCS from within JBuilder I encounter the
following error:
0: Got an exception - java.lang.NoClassDefFoundError:
java/lang/StringBuilder
No more errors are reported.
When I run checkstyle from the command line I don't see
this error and the rest of the errors for the file are
reported.
Everything else works fine. Might you have some
suggestions?
thanks,
Greg
gregsharek@yahoo.com
Logged In: YES
user_id=893525
When running from the command line are you using JDK 5? And
JBuilder is running JDK 1.4?
If yes, then you probably have a check doing reflection:
RedundantThrowsCheck or JavadocMethodCheck.
However, other errors should be shown. Which JBuilder
version are you using? Can you launch JBuilder from a
cmd.exe (shell) and try it again. You might get an exception
and that would be really useful.
Logged In: NO
Henri,
Thanks for looking into this. I'm using JDK 5 on my system.
I'm running JBuilder 2005 Enterprise 11.0.320.0 Update 4.
How do I determine what exact version of java JBuilder is using?
Here's another wrinkle: When I hit the NoClassDefFoundError
exception, some other checkstyle errors are reported, but
not all.
For example, here is jbcs output:
0: Got an exception - java.lang.NoClassDefFoundError:
java/lang/StringBuilder
56: Missing a Javadoc comment.
60: Missing a Javadoc comment.
65: Static variable definition in wrong order.
69: Static variable definition in wrong order.
73: Static variable definition in wrong order.
78: Static variable definition in wrong order.
When I run checkstyle from the command line I get the above
errors and the following as well:
../EDA/src/com/arm/eda/AppAdapter.java:84: 'String' variable
'sAutomatedProcessName' needs to be prepended with 's'.
../EDA/src/com/arm/eda/AppAdapter.java:84:5: Static variable
definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:87:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:87:5: Variable access
definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:90:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:90:5: Variable access
definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:93:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:93:5: Variable access
definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:96:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:96:5: Variable access
definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:99:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:99:5: Variable access
definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:100:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:100:5: Variable
access definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:103:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:106:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:109:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:112:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:115:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:118:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:121:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:128:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:134:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:137:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:140:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:143:5: Instance
variable definition in wrong order.
../EDA/src/com/arm/eda/AppAdapter.java:169:5: Constructor
definition in wrong order.
Any thoughts?
thanks again,
Greg