[Original] talk about ClassPath variable settings

xiaoxiao2021-03-06  19

Author: dazern to 2,005,326 early in the morning.

Classpath, my dear classpath! You make me annoying and let me love!

I haven't used JDK to debug the program in DOS for a long time. Yesterday because I want to upgrade JDK1.4 to J2SE5.0, I will reset the system environment variable! After setting up, I will test it in DOS, and it is coming: "I can compile with Javac in it, but when I use Java to run error (wrong, I have encountered it) - Can't find the class!: ("Continue to check if the system variable is set correctly? Press my previous method, I can affirm my system variable is not wrong! Just go, I almost got an hour. ! (Hey, I am really annoyed! Oh ...) Oh, mygod! Not good, school stop power pull! I have to stop, but my mind is still thinking, the problem is where, what is it? I wash my face two times. Out of information you have seen, I'm throwing in bed! (Oh ... I want to do what, I am going to fight in the end!) OK, go to bed, point candles continue ...

After some fierce look, it seems to go to the head or a conclusion - my setting is definitely no mistake! Oh, bad book! (Oh, in my heart, my classmates are sleeping!)

Sleep in a big head, continue tomorrow! ........................................................

OK, today should be a good weather, the original cold seems to have no trace! Ha, please! Oh, the problem has not been solved!

Thinking .............................................................................

Well, yes, that's it, the problem is definitely here!

Quickly get up to open the computer - brush your teeth to wash your face - shampoo! (Oh ... computer is waiting for me)

OK, everything will continue!

According to the method you want, pass through a fierce test in DOS -> Test pass -> The problem is successfully solved!

Oh, happying!

The problem is finally solved. The reason is actually very simple: I have been learning XML recently. I have installed a software used to view XML in the process of learning XML, and this software is in my user variables Set a ClassPath variable! It is because I spent so long: (kill! (Oh, killing it is still a bit can't bear, because it is a good tool I learned XML!) In fact, this may be my misunderstanding, before setting up When the ClassPath variable is only set in the system variable, I don't know the classpath variables set in the user variable. I then delete the classpath variables set in the system variable, all set to the ClassPath variable of the user variable! Open DOS Test everything!

Summary: Maybe this is that I often encounter problems in learning Java, but here I want to remind everyone that when setting the ClassPath variable in the future, pay attention to your previously installed software automatically changed you. System variable, if you are then paying attention to pulling, don't commit the same mistake I made (the key is to waste time)! OK! I am here today! I wish you a happy Java study!

Please don't forget to pay attention to my blog: http://blog.9cbs.net/dazern

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

New Post(0)