日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

java -Xbootclasspath的用法. - ruruhuang - JavaEy...

 野薔薇1 2010-05-25

昨晚使用eclipse的時(shí)候突然想到eclipse怎樣去區(qū)分使用jdk1.4還是jdk1.5,我使用jdk1.4在eclipse運(yùn)行一個(gè)java程序這時(shí)的command是 C:\j2sdk1.4.2_05\bin\javaw.exe -Xbootclasspath:C:\j2sdk1.4.2_05\lib\tools.jar;C:\j2sdk1.4.2_05\jre\lib\rt.jar;C:\j2sdk1.4.2_05\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_05\jre\lib\jsse.jar;C:\j2sdk1.4.2_05\jre\lib\jce.jar;C:\j2sdk1.4.2_05\jre\lib\charsets.jar;C:\j2sdk1.4.2_05\jre\lib\ext\dnsns.jar;C:\j2sdk1.4.2_05\jre\lib\ext\ldapsec.jar;C:\j2sdk1.4.2_05\jre\lib\ext\localedata.jar;C:\j2sdk1.4.2_05\jre\lib\ext\sunjce_provider.jar -classpath E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\classes;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\jtds-1.0.3.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\poi-2.5.1-final-20040804.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\poi-contrib-2.5.1-final-20040804.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\poi-scratchpad-2.5.1-final-20040804.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\commons-logging-1.0.2.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\log4j-1.2.6.jar -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:1160 com.dengyin.data.transform.DoingTxt 紅色部分后面的那些包是在eclipse重設(shè)置好的.這是使用這些包作為啟動(dòng)類.( set search path for bootstrap classes and resources )然而當(dāng)我使用jdk1.5的時(shí)候的command是  C:\jdk1.5.0_03\bin\javaw.exe -classpath E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\classes;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\jtds-1.0.3.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\poi-2.5.1-final-20040804.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\poi-contrib-2.5.1-final-20040804.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\poi-scratchpad-2.5.1-final-20040804.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\commons-logging-1.0.2.jar;E:\Eclipse_WorkSpace\Eclipse_Work\DateTransform\lib\log4j-1.2.6.jar -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:1635 com.dengyin.data.transform.DoingTxt 我們看到這時(shí)并沒(méi)有-Xbootclasspath參數(shù),我們知道java程序中的所有依賴的類都會(huì)去classpath里面照.這時(shí)我想-Xbootclasspath做的工作應(yīng)該時(shí)被javaw.exe做了,把那些系統(tǒng)必須的那些bootClass設(shè)置到了bootClasspath里面了.(以上想法時(shí)我個(gè)人的猜測(cè),我上網(wǎng)找了但是沒(méi)有找到滿意的答案) 當(dāng)你裝好了jdk1.5時(shí),它會(huì)拷貝一份java.exe到windows(winNt)目錄下面,這樣你就可以不用設(shè)置JAVA_HOME然后把%JAVA_HOME%\bin放到系統(tǒng)的path目錄了, 而且這時(shí)java.exe會(huì)自己設(shè)置好bootClass,這樣你就不用在系統(tǒng)的環(huán)境變量里面設(shè)置ClassPath了.  -Xbootclasspath:<directories and="" zip="" jar="" files="" separated="" by="" ;="">
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and="" zip="" jar="" files="" separated="" by="" ;="">
append to end of bootstrap class path
-Xbootclasspath/p:<directories and="" zip="" jar="" files="" separated="" by="" ;="">
prepend in front of bootstrap class path
 最后給出些%JAVA_HOME%\bin里面一些exe的用法.(網(wǎng)上找的)  java.exe

用法:java [-options] class [args...]
(to execute a class)
或 java -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp -classpath <directories and="" zip="" jar="" files="" separated="" by="" ;="">
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions

java -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and="" zip="" jar="" files="" separated="" by="" ;="">
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and="" zip="" jar="" files="" separated="" by="" ;="">
append to end of bootstrap class path
-Xbootclasspath/p:<directories and="" zip="" jar="" files="" separated="" by="" ;="">
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initialJava heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xrunhprof[:help]|[:

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多