Your Own SourceProgramIs in F:/parser/parserdemo. Java,
Use the command line: javac-classpath stanford-parser.jar;. parserdemo. Java compilation,
Command Line: Java-CP stanford-parser.jar;. parser run
No problem.
But when I use the command line (Java-CP stanford-parser.jar;. parser) in the C ++ program to call the change program, it will go wrong. Tip: Java. Lang. noclassdeffounderror :...
Later I found that an error occurred when changing the current path of the command line. I guessSource codeThere are not many paths. Add a path
Java-cp f: // parser // stanford-parser.jar;F: // parser;Parserdemo
Try again.
Note: If a relative file is used in the program, such as aaa.txt, which is in the F:/parser directory, when you run the program from the command line, if the current path is not F:/parser, an error will be reported, the system prompts that the file cannot be found, so it is best to use the absolute path to call the program elsewhere.