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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
Hi,
Thanks for the help. Turns out i left out a .jar . That was the reason for the crash. Thanks a ton!
Arjun
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
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