在mssql上运行批处理时出现Java Perl错误

在mssql上运行批处理时出现Java Perl错误,java,sql-server,Java,Sql Server,在mssql上运行批处理时出现Java Perl错误 开发人员使用了19y旧代码。。。 Cmd提示符ex: C:\batch>Rem Run Java program which notifies by email. C:\batch>set CLASSPATH=PerlTools.jar;.;mail.jar;activation.jar;SIMP_Components.jar;sqljdbc.jar C:\batch>java Notify notify\report

在mssql上运行批处理时出现Java Perl错误 开发人员使用了19y旧代码。。。 Cmd提示符ex:


C:\batch>Rem Run Java program which notifies by email.

C:\batch>set CLASSPATH=PerlTools.jar;.;mail.jar;activation.jar;SIMP_Components.jar;sqljdbc.jar

C:\batch>java Notify notify\report5.txt
Writing to file notify\report5.txt
Fetching notifications.
Done with fetching notifications.

Exception in thread "main" java.lang.IllegalAccessError: class com.oroinc.text.regex.Perl5Compiler tried to access private field com.oroinc.text.regex.CharStringPointer.__offset (com.oroinc.text.regex.Perl5Compiler and com.oroinc.text.regex.CharStringPointer are in unnamed module of loader 'app')
        at com.oroinc.text.regex.Perl5Compiler._getNextChar(Perl5Compiler.java)
        at com.oroinc.text.regex.Perl5Compiler._parseAlternation(Perl5Compiler.java)
        at com.oroinc.text.regex.Perl5Compiler._parseExpression(Perl5Compiler.java)
        at com.oroinc.text.regex.Perl5Compiler.compile(Perl5Compiler.java)
        at com.oroinc.text.perl.Perl5Util.__compilePatterns(Perl5Util.java)
        at com.oroinc.text.perl.Perl5Util.<init>(Perl5Util.java)

        at se.lazybee.simp.SIMP_StoredProcedure.addString(SIMP_StoredProcedure.java:88)
        at Notify.main(Notify.java:195)


C:\batch>Rem运行通过电子邮件通知的Java程序。
C:\batch>set CLASSPATH=PerlTools.jar;。;mail.jar;激活.jar;SIMP_Components.jar;sqljdbc.jar
C:\batch>java Notify\report5.txt
写入文件notify\report5.txt
获取通知。
完成获取通知。
线程“main”java.lang.IllegalAccessError中出现异常:类com.oroinc.text.regex.perl5编译器试图访问私有字段com.oroinc.text.regex.CharStringPointer.\uu偏移量(com.oroinc.text.regex.perl5编译器和com.oroinc.text.regex.CharStringPointer位于加载器“app”的未命名模块中)
位于com.oroinc.text.regex.Perl5Compiler.\u getNextChar(Perl5Compiler.java)
位于com.oroinc.text.regex.Perl5Compiler.\u parseAlternation(Perl5Compiler.java)
位于com.oroinc.text.regex.Perl5Compiler.\u parseExpression(Perl5Compiler.java)
位于com.oroinc.text.regex.Perl5Compiler.compile(Perl5Compiler.java)
在com.oroinc.text.perl.Perl5Util.\uu compilePatterns(Perl5Util.java)上
位于com.oroinc.text.perl.Perl5Util.(Perl5Util.java)
在se.lazybee.simp.simp_StoredProcedure.addString(simp_StoredProcedure.java:88)
在Notify.main(Notify.java:195)

有什么想法吗???

这与Perl无关。Java库,
com.oroinc.text.regex.Perl5Compiler
有问题。(我碰巧实现了对regex的支持,据说与Perl的regex语法匹配,但这与问题无关。)=-那么FIX是如何显示错误的呢?在我看来,它就像模块中的bug一样,但我已经20年没有使用Java了……嘿,我刚刚注意到你说它是19年前的代码。我认为较新版本的Java加强了一些检查或增加了19年前没有的限制。您可能需要较新的
com.oroinc.text.regex.perl5编译器
(或较旧的
java.exe
)thxs。怎么做?