Menu

#2 how to run the test?

open
nobody
None
5
2003-06-11
2003-06-11
Anonymous
No

when i run the examples with the file:
F:\javaonly\html_parser\src-htmlparser0.3a-7
\functionaltests\org\acmsl\htmlparser\html\HTMLProcesso
rTest.java
i use command:java
functionaltests.org.acmsl.htmlparser.html.HTMLProcessor
Test 1 index.htm
it response:

Compiler instantiation error.
Iteration 1
Compiler instantiation error.
Compiler instantiation error.
Compiler instantiation error.
Could not find compiler.
org.acmsl.regexpplugin.RegexpEngineNotFoundException
Compiler instantiation error.
Compiler instantiation error.
Could not find compiler.
org.acmsl.regexpplugin.RegexpEngineNotFoundException
Compiler instantiation error.
Compiler instantiation error.
Compiler instantiation error.
Compiler instantiation error.
Compiler instantiation error.
java.lang.ClassNotFoundException:
org.acm.regexpplugin.jakartaoro.Perl5MatcherOR
OAdapter
Could not find engine:
Jakarta Oro Perl 5
Processing time:0.1
Exception in thread "main"
java.lang.ArrayIndexOutOfBoundsException
at
functionaltests.org.acmsl.htmlparser.html.HTMLProcessor
Test.main(HTML
ProcessorTest.java:166)

so ,how can i run it?
really thanks

Discussion

  • Nobody/Anonymous

    Logged In: NO

    also
    i can't find the
    class:org.acm.regexpplugin.jakartaoro.Perl5MatcherOR
    OAdapter in the jar files

     
  • Nobody/Anonymous

    Logged In: NO

    I suffered the same problem a few days ago. As we Spanish
    say, I remembered all the family of the author. But, don't
    worry, for this bug there is a fast solution, although not for
    some others. Make sure you have all the needed libraries (
    gnu.regexp, jakarta-ORO, jakarta-regexp and junit) and the
    provided dependencies. Now, as you can see, the
    org.acm.regexpplugin.jakartaoro.Perl5MatcherOROAdapter
    class has a little mistake. It has to be
    org.acmsl.regexpplugin.jakartaoro.Perl5MatcherOROAdapter
    (just add "sl" in ...acm..., in spanish is like add Inc to Sun)
    Well, you have to change it in the source file
    org.acmsl.regexpplugin.RegexpManager.java and will work
    Besides, I must to tell you that further bugs made me chage
    to http://htmlparser.sourceforge.net. Good luck whatever you
    choose.

     
  • Jose San Leandro Armendáriz

    Logged In: YES
    user_id=349759

    Thanks for including the error details.
    It'll be fixed in the upcoming next release.

    Anyway, I'd like to remember that this is a LGPL, with L of Lesser.
    The reasons of using such license are mainly that the functionalities
    this library tries to offer are already provided by other alternatives,
    like, as it's been said, htmlparser. The GNU movement tries to make
    software better by including all contributions from the free software
    community.
    Of course it shouldn't seem good for me to see that people prefers
    other implementations. But it doesn't seem so bad. I mean, I publish
    this to share the effort this library took, and maybe to save your time.
    My intention is not to take money from you by any means. But you
    cannot blame me either of anything: lack of documentation, bugs,
    support or whatever. That would improve the library, and maybe be
    more useful for more people, but it works for itself, no other intention
    is behind the development of this parsing library.

    Maybe some of you should consider paying for software, till you really
    understand what free software movement is about.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.