HP printer driver modified JDK problem - phenomenon: Javac can't use

xiaoxiao2021-03-06  64

The machine is installed on the machine, then install the driver of the HP LaserJet 1300 PCL 6 on it, everything is normal, you can print, you can also compile files with JAVAC.

After restarting the machine, I found that Javac could not be used. Tip is: Error: couldk1.4.2_04/jre/lib/jvm.cfg '

After verification, this is because the HP printer installer replaces two files of JDK: C: /J2SDK1.4.2_04/bin/javac.exc, c: /j2sdk1.4.2_04/lib/tools.jar

Get these two files from the other machines installed in the same version of JDK and overwritten the two files replaced by the HP, the problem is resolved.

Recommendation: After installing the HP printer driver, back up these two files before installing, install the driver, restart the machine, and then restore the backup back.

Because the HP printer installer automatically installs Tomcat 4.0 and runs automatically, the machine installed Tomcat also needs to do this.

Editing File C: / Program Files / Hewlett-Packard / Toolbox2.0 / Apache Tomcat 4.0 / conf / server.xml, replacing 8005 is 18005, replacing 8008 18008. Restart the machine

Note: The slope of Windows cannot be published, replaced by UNIX.

On some machines, if the PATH setting is wrong, Javac will have problems. It is recommended to add% java_home% / bin at the top of PATH.

转载请注明原文地址:https://www.9cbs.com/read-119845.html

New Post(0)