I use firefox version > 3.5 (3.5.,3.6.,4.*) and I try to specify archive
and codebase
property correctly but it doesn't work. My main class for applet is situated in the archive
and some necessary classes that are loaded during runtime are situated in the codebase
. If I specify only the archive
then the applet is loaded but the classes from codebase
are missing. If I specify the archive
and the codebase
then the applet can't be loaded. It looks like applet try to load main class from codebase
folder and doesn't look into the archive
file.
<html>
<body>
<applet width=600 height=300 code="MyClass.class"
type="application/x-java-applet;jpi-version=6"
archive="http://myurl.com/archive/myjar.jar"
codebase="http://myurl.com/classes">
no applet
</applet>
</body>
</html>
Main class is situated in http://myurl.com/archive/myjar.jar and runtime classes are situated in http://myurl.com/classes.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…