Java?е?classpath
???????????? ???????[ 2013/2/18 10:14:05 ] ????????
????CLASSPATH??Java???????????????????????????????????classpath???????java??ζ?λ??????????
????CLASSPATH????????????????Java??λ????????????Windows?У?????????????->???->??????????????????
????Windows???????? echo %CLASSPATH%?????á?
???????г?????????????????? -cp??????-classpath?????????classpath?????????????????л??????????ò??????ó?????ò????classpath???????
???????磬????
????java -classpath c:classes;c:jarabc.jar;c:zipabc.zip;c:src abc
????????CLASSPATH??????·??????????·???μ???
??????????ж??????????CLASSPATH?????У?Java?????????????в?????????????????δ????????????????????????????????????????????????磺
?????????CLASSPATH=/home/tester/first:/home/tester/second??
??????????2??????汾??test????first??second???У????????java Test?????????java??????????????????first??????????????test??????????????second???в??????
?????????first?????????test????????second???в??????
?????????-jar????????????????????????? CLASSPATH???????????????-cp??-classpath????????????????????£????????META-INF/MANIFEST.MF?????Class-Path attribute ????classpath
?????????????????????????????CLASSPATH??????????“.”????testing?????????class?Test??????????????C:project estingTest.class???????C:project esting????????????“java Test”??????????
???????????????У???????????????in thread "main" java.lang.NoClassDefFoundError: Test?????????????Test?????? testing.Test ??????classpath??????????????
?????????C:project esting???£?????????java testing.Test?????????? in thread "main" java.lang.NoClassDefFoundError: testing/Test
?????????????????"."????????testing?????????Test????????????????????C:project esting??????testing??????·????
????????г??????????C:project???£?????C:project>java testing.Test ?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11