Home >Web Front-end >JS Tutorial >A js and css code compression tool [with JAVA environment configuration method]_javascript skills
The installation of TBCompressor is very simple, just click install.cmd. After installation, the "Compress CSS or JS" option will appear in the right-click menu. When you need to compress a file, just select the target file and right-click "Compress" CSS or JS" instantly. The compressed file will be automatically renamed.
Here is a compression test of jQuery1.3 Development version, the effect is as follows:
You can see that the effect is still very good:)
TBCompressor download
It should be noted that using TBCompressor must have the support of JAVA environment, and JDK version 1.4 or above needs to be installed.
You can go to Official Download Select Java SE Development Kit (JDK) JDK 6 Update 14
After downloading, proceed to install. After the installation is complete, you need to configure the JAVA_HOME environment variable.
The configuration method is as follows:
1. Right-click My Computer>Properties>Advanced>Environment Variables>System Variables
2. Create a new variable, variable name JAVA_HOME path: C:Program FilesJavajdk1.6.0_14 (default installation path)
3. Find the path variable and add the path after it: ;C:Program FilesJavajdk1.6.0_14bin (there is a semicolon in front)
OK, confirm all the way and close the window.
Open CMD and enter java -version If you can see the version information, it means the configuration is successful