JDK1.5 installation

xiaoxiao2021-03-30  245

Download JDK1.5 from the Internet, after installation, set the appropriate environment variable Java_Home and ClassPath.

Then, write the test program to test, find that always report:

Exception in thread "main" java.lang.noclassdefounderror: test1

Check environment variables ClassPath is not wrong, this search online, found that this problem is not in a small number. Located, find an English help, it turns out, add one after classpath =.;

So, I am thinking, why is Sun not set a good environment variable when installing, and the user wants yourself? .NET also sets a certain environment variable, it is set up after installation. Therefore, from the perspective of considerate users, Microsoft has indeed it.

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

New Post(0)