📄 version.html
字号:
Use the <CODE>-sysclasspath</CODE> option to force the Java VM to
use the <CODE>CLASSPATH</CODE> supplied on the command line only:
<CODE>java -sysclasspath c:\java\lib\classes.zip;. myapp</CODE>
</FONT>
</TD>
</TR>
</TABLE>
<TABLE BORDER="0" CELLPADDING="2">
<TR>
<TH ALIGN=LEFT><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Product</FONT></TH>
<TH><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Deployment</FONT></TH>
</TR>
<TR>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Java 2 Platform</FONT>
</TD>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
The platform is split into a Java Runtime Environment (JRE) and Java compiler.
The JRE is included as a subdirectory in the release, and the traditional
<CODE>java</CODE> and <CODE>javac</CODE> programs in the <CODE>bin</CODE>
directory invoke the real program in the <CODE>jre/bin</CODE> directory.
The separate <CODE>jre</CODE> launcher is no longer provided, and
the java program is solely used instead.
<P>
The Java ARchive (JAR) files containing the core Java platform system
classes, <CODE>rt.jar</CODE> and <CODE>i18.jar</CODE>,
are located in the <CODE>jre/lib</CODE> directory with a relative search path.
<P>
<STRONG>Side Effects:</STRONG>
<BR>
If applications previously used the <CODE>classes.zip</CODE>
file to load the core Java platform systems, they might still try
to load an additional set of classes in error.
<P>
<STRONG>Diagnostics:</STRONG>
<BR>
Use the <CODE>-Xbootclasspath</CODE> option to force the Java VM to use
the <CODE>CLASSPATH</CODE> supplied on the command line only:
<CODE>java -Xbootclasspath:c:\java\jre\lib\rt.jar;<BR>
c:\java\jre\lib\i18n.jar;. myapp</CODE>
<P>
You might need to supply this as a runtime option as follows:
<CODE>javac -J-Xbootclasspath:c\java\lib\tools.jar;c:<BR>
\java\jre\lib\rt.jar;c:\java\jre\lib\i18n.jar;. myapp.java</CODE>
</FONT>
</TD>
</TR>
</TABLE>
<TABLE BORDER="0" CELLPADDING="2">
<TR>
<TH ALIGN=LEFT><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Product</FONT></TH>
<TH><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Deployment</FONT></TH>
</TR>
<TR>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Java Plug-In</FONT>
</TD>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
On Windows 95 and Windows NT uses the registry
to find installed plug-in Java platform releases.
<P>
<STRONG>Side Effects:</STRONG>
<BR>
Registry can become corrupted, or plug-in removed physically but
not from the registry.
<P>
<STRONG>Diagnostics:</STRONG>
<BR>
Display the <CODE>java.version</CODE> and <CODE>java.class.path</CODE>
property in your code and display it on the Java Plug-in Console
</FONT>
<PRE>
System.out.println("version="+System.getProperty(
"java.version"
));
System.out.println("class path="+System.getProperty(
"java.class.path"
));
</PRE>
<FONT FACE="Verdana, Arial, Helvetica, sans-serif">
If there is a conflict, check the registry with the <CODE>regedit</CODE>
command, search for the word <EM>VM</EM> and if it exists,
delete it and reinstall the plug-in
</FONT>
</TD>
</TR>
</TABLE>
<TABLE BORDER="0" CELLPADDING="2">
<TR>
<TH ALIGN=LEFT><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Product</FONT></TH>
<TH><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Deployment</FONT></TH>
</TR>
<TR>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Netscape</FONT>
</TD>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Uses <CODE>.jar</CODE> files such as <CODE>java40.jar</CODE>
in <CODE>netscape</CODE> directory.
<P>
<STRONG>Side Effects:</STRONG>
<BR>
Not all Netscape releases are fully JDK 1.1 compliant. You can get
upgrade patches at
<A HREF="http://www.netscape.com">http://www.netscape.com</A>.
<P>
<STRONG>Diagnostics:</STRONG>
<BR>
Start the browser on the command line with the <CODE>-classes</CODE>
option.
</FONT>
</TD>
</TR>
</TABLE>
<TABLE BORDER="0" CELLPADDING="2">
<TR>
<TH ALIGN=LEFT><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Product</FONT></TH>
<TH><FONT FACE="Verdana, Arial, Helvetica, sans-serif">Deployment</FONT></TH>
</TR>
<TR>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Internet<BR>Explorer</FONT>
</TD>
<TD VALIGN="TOP"><FONT FACE="Verdana, Arial, Helvetica, sans-serif">
Uses <CODE>.cab</CODE> files to contain system classes.
Also uses system registry on Windows 95/NT.
<P>
<STRONG>Side Effects:</STRONG>
<BR>
Use the <CODE>regedit</CODE> command to search for the word
<EM>VM</EM>. There is a
<CODE>CLASSPATH</CODE> entry to which you can add your own classes.
<P>
<STRONG>Diagnostics:</STRONG>
<BR>
The registry can become corrupted. Search for CLASSPATH using the regedit
program and edit the value that CLASSPATH points to.
</FONT>
</TD>
</TR>
</TABLE>
<P>
<P ALIGN="RIGHT">
<FONT SIZE="-1">[<A HREF="#top">TOP</A>]</FONT>
</FONT>
</TD>
</TR>
</TABLE>
<!-- ================ -->
<!-- End Main Content -->
<!-- ================ -->
</TD>
</TR>
</TABLE>
<!-- Copyright Insert -->
<BR CLEAR="ALL">
<FORM ACTION="/cgi-bin/search.cgi" METHOD="POST">
<TABLE WIDTH="100%" CELLPADDING="0" BORDER="0" CELLSPACING="5">
<TR>
<TD VALIGN="TOP">
<P ALIGN=CENTER>
<FONT SIZE="-1" COLOR="#999999" FACE="Verdana, Arial, Helvetica, sans-serif">
[ This page was updated: <!-- new date --> 13-Oct-99 ]</font></P>
</TD>
</TR>
<TR>
<TD BGCOLOR="#CCCCCC">
<IMG SRC="/images/pixel.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
</TR>
<TR>
<TD>
<CENTER>
<FONT SIZE="-2" FACE="Verdana, Arial, Helvetica, sans-serif">
<A HREF="http://java.sun.com/products/">Products & APIs</A> |
<A HREF="/developer/index.html">Developer Connection</A> |
<A HREF="/developer/infodocs/index.shtml">Docs & Training</A> |
<A HREF="/developer/support/index.html">Online Support</A><BR>
<A HREF="/developer/community/index.html">Community Discussion</A> |
<A HREF="http://java.sun.com/industry/">Industry News</A> |
<A HREF="http://java.sun.com/solutions">Solutions Marketplace</A> |
<A HREF="http://java.sun.com/casestudies">Case Studies</A>
</FONT>
</CENTER>
</TD>
</TR>
<TR>
<TD BGCOLOR="#CCCCCC">
<IMG SRC="/images/pixel.gif" HEIGHT="1" WIDTH="1" ALT=""></TD>
</TR>
<TR>
<TD ALIGN="CENTER">
<FONT SIZE="-2" FACE="Verdana, Arial, Helvetica, sans-serif">
<A HREF="http://java.sun.com/docs/glossary.html">Glossary</A> -
<A HREF="http://java.sun.com/applets/">Applets</A> -
<A HREF="http://java.sun.com/docs/books/tutorial/">Tutorial</A> -
<A HREF="http://java.sun.com/jobs/">Employment</A> -
<A HREF="http://java.sun.com/nav/business/">Business & Licensing</A> -
<A HREF="http://java.sun.com/javastore/">Java Store</A> -
<A HREF="http://java.sun.com/casestudies/">Java in the Real World</A>
</FONT>
</TD>
</TR>
<TR>
<TD>
<CENTER>
<FONT SIZE="-2" FACE="Verdana, Arial, Helvetica, sans-serif">
<a href="/siteinfo/faq.html">FAQ</a> |
<a href="/feedback/index.html">Feedback</a> |
<a href="http://www.dynamicdiagrams.net/mapa/cgi-bin/help.tcl?db=javasoft&dest=http://java.sun.com/">Map</a> |
<A HREF="http://java.sun.com/a-z/index.html">A-Z Index</A>
</FONT>
</CENTER>
</TD>
</TR>
<TR>
<TD>
<TABLE WIDTH="100%" CELLPADDING="0" BORDER="0" CELLSPACING="0">
<TR>
<TD WIDTH="50%">
<FONT SIZE="-2" FACE="Verdana, Arial, Helvetica, sans-serif">
For more information on Java technology<BR>
and other software from Sun Microsystems, call:<BR>
</FONT>
<FONT SIZE="-1" FACE="Verdana, Arial, Helvetica, sans-serif">
(800) 786-7638<BR></FONT>
<FONT SIZE="-2" FACE="Verdana, Arial, Helvetica, sans-serif">
Outside the U.S. and Canada, dial your country's
<A HREF="http://www.att.com/business_traveler/attdirecttollfree/">AT&T Direct Access Number</A> first.<BR>
</FONT>
</TD>
<TD ALIGN="RIGHT" WIDTH="50%">
<A HREF="http://www.sun.com"><IMG SRC="/images/lgsun.gif" width="64" height="30" border="0" ALT="Sun Microsystems, Inc."></A><BR>
<FONT SIZE="-2" FACE="Verdana, Arial, Helvetica, sans-serif">
Copyright © 1995-99
<A HREF="http://www.sun.com">Sun Microsystems, Inc.</A><BR>
All Rights Reserved.
<a href="http://www.sun.com/share/text/SMICopyright.html">Legal Terms</a>.
<A HREF="http://www.sun.com/privacy/">Privacy Policy</A>.
</FONT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</FORM>
<!-- End Copyright Insert -->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -