Why do I get a "java.lang.NoClassDefFoundError" when using the convert30 utility to convert a ruleBase from 2.x format to 3.1 format?
book
Article ID: KB0089029
calendar_today
Updated On:
TIBCO Hawk
|
-
|
Not Applicable
|
-
|
Description
Resolution:
A possible reason is that you have to add the $HAWK_ROOT/java/config.jar and $HAWK_ROOT/java/perltools.jar into your classpath.
There are two ways to add these. One way is:
- Set the classpath in the shell/command window:
- On Unix in csh enter the command:
setenv classpath $classpath:$HAWK_ROOT/java/config.jar:$HAWK_ROOT/java/perltools.jar
- On Windows in the DOS prompt enter:
set classpath=%classpath%;%HAWK_ROOT%/java/config.jar;%HAWK_ROOT%/java/perltools.jar
Another way is to modify the convert30 and convert30.bat files.
- Find where the JARFILES is defined in the convert30 or convert30.bat files. (It is safe to add these lines to both files).
- On Unix modify the following:
JARFILES=$JARFILES:$HAWK_ROOT/java/config.jar
JARFILES=$JARFILES:$HAWK_ROOT/java/perltools.jar
- On Windows add the lines:
JARFILES=%JARFILES%;%HAWK_ROOT%/java/config.jar
JARFILES=%JARFILES%;%HAWK_ROOT%/java/pertools.jar
The modified convert30 or convert30.bat example files are attached.
If you get an error similar to the one below when running the new updated convert30 utility, just ignore it.
ERROR : Failed to convert rulebase <rulebase name>..
Found 0 occurance of loadRuleBase in <rulebase path>/<rulebase name>
Issue/Introduction
Why do I get a "java.lang.NoClassDefFoundError" when using the convert30 utility to convert a ruleBase from 2.x format to 3.1 format?
Attachments
Why do I get a "java.lang.NoClassDefFoundError" when using the convert30 utility to convert a ruleBase from 2.x format to 3.1 format?
get_app
Why do I get a "java.lang.NoClassDefFoundError" when using the convert30 utility to convert a ruleBase from 2.x format to 3.1 format?
get_app
Feedback
thumb_up
Yes
thumb_down
No