2

I'm trying to open a file from the filesystem with css-validator.jar. I tried:

java -jar css-validator.jar C:\filename and
java -jar css-validator.jar file:\\\filename

but neither worked.

What am I doing wrong?

1
  • 1
    I'll say that this question could have been worded in a way making it much easier to read, but it certainly isn't too broad if you actually take the time to read it. Jun 30, 2014 at 16:23

1 Answer 1

10

Figured it out on my own: command used in directory of jar is like this:

java -jar css-validator.jar -output gnu file:///"Directory of file"\"name of css file".css

You can then add > or >> and a text type file extension (.txt, .html, .xml, .doc[but not .docx]) to output to file. the gnu can also be text, xml, or a couple other formats.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.