Hi, This is my first attempt at using this package. I am getting the following run time error:
Exception in thread "main" java.lang.NoClassDefFoundError: = org/apache/oro/text/regex/MalformedPatternException It compiles without error. Can anyone tell me what's wrong? The following code is in my parent class: public String createSourceID( String inputfilename ) { String day = "([0-3]\\d)"; String hour = "([0-5]\\d)"; String minutes = "([0-5]\\d)"; String zspace = "Z\\s"; String month = "(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)"; String space = "\\s"; String year = "([0-9]{2})"; String optional_one_up = "?(_[1-9])"; String extension = "(\\.xml)"; String regexp = day + hour + minutes + zspace + month + space + year + optional_one_up + extension; PatternCompiler compiler = new Perl5Compiler(); try { Pattern pattern = compiler.compile(regexp); PatternMatcher matcher = new Perl5Matcher(); System.out.println( "Debug: In method createSourceID" ); if ( matcher.contains(inputfilename, pattern) ) { MatchResult result = matcher.getMatch(); System.out.println( "Debug: Input file name matches regular expression" ); System.out.println( "Debug: Day: " + result.group(1) ); System.out.println( "Debug: Hour: " + result.group(2) ); System.out.println( "Debug: Minutes: " + result.group(3) ); System.out.println( "Debug: Month: " + result.group(4) ); System.out.println( "Debug: Year: " + result.group(5) ); System.out.println( "Debug: One_up: " + result.group(6) ); System.out.println( "Debug: Extension: " + result.group(7) ); } else { System.out.println( "Debug: Input file name does not match regular expression" ); } } catch (MalformedPatternException e) { e.printStackTrace(); } return "New Source ID"; } This is being called from a sub class: netOwl.createSourceID( "141350Z JAN 03_1.xml" ); TIA, Neil Neil Hainer Booz Allen & Hamilton JIVA System Integration Project 703-289-3881 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]