Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我运行以下命令时,我都会收到下面给出的错误。请告诉我需要添加哪个 jar 文件才能在 Matlab 中运行命令。
命令:docBuilder = DocumentBuilderFactory.newInstance();
docBuilder = DocumentBuilderFactory.newInstance();
错误:
未定义的变量“DocumentBuilderFactory”或类“DocumentBuilderFactory.newInstance”。
从评论中,解决方案是改用以下行:
docBuilder = javax.xml.parsers.DocumentBuilderFactory.newInstance();