Menu

Problem with SimpleBrowser and BoxBrowser exampl

2012-12-21
2015-03-17
  • Arjun Raman

    Arjun Raman - 2012-12-21

    Hi,

    I was trying out the example code. There seems to be an exception thrown at the line

    DOMSource parser = new DOMSource(is);

    After including the CSSBox jar and copying the code, for the exact above line, it told that imports weren't made and gave me two choices of imports. 1) org.fit.cssbox.demo.DOMSource 2) javax.xml.transform.dom.DOMSource

    I chose the first one. In both the examples, the code seems to crash at the exact same point. Can you help me out with this.

    Thanks,
    Arjun

     
  • Radek Burget

    Radek Burget - 2012-12-21

    Hi,
    do you have all the jar files from /lib in your classpath? Colud you please provide the exception details? (error message, stack trace, etc.)
    Thanks
    Radek

     
    • Arjun Raman

      Arjun Raman - 2012-12-24

      Hi,

      Thanks for the help. Turns out i left out a .jar . That was the reason for the crash. Thanks a ton!

      Arjun

       
  • Rutishauser

    Rutishauser - 2015-03-16

    Hello,

    What is the recommended way to build the project? I have thought that it were Eclipse IDE. I have installed Eclipse, but it complains that CSSParser project is missing. And I have to remove the CSSParser project from the Java Build Path tab. Is this correct?

    Faithfully,
    Oliver

     

    Last edit: Rutishauser 2015-03-16
  • Radek Burget

    Radek Burget - 2015-03-17

    Hi,
    yes, it should be sufficient to remove non-existing projects from build path; maven should download the dependencies automatically. However, if you are going to play with CSS analysis, it's better to clone the jStyleParser repository to your workspace as well; it contains the referenced CSSParser project.
    Radek

     

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.