Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÀûÓÃÊý×ÖÇ©Ãû³¬Ô½Java AppletµÄ°²È«ÏÞÖÆ


¡¡¡¡²½ÖèÒ»£º£¨´ò°üclassÎļþ£©
¡¡¡¡ÔÚÃüÁîÐÐÖÐÖ´ÐÐÒÔϵÄÓï¾ä£ºjar -cvf
MyApplet.jar class
¡¡¡¡×¢ÒâÕâÀïµÄËùÓÐ.classÎļþ¾ùÊÇ·ÅÔÚÒ»¸öclassµÄĿ¼Öеġ£±¾²½ÖèÖ´ÐÐÍê±Ïºó£¬½«ÔÚ
c:/adminÖвúÉúÒ»¸öÃûΪMyApplet.jarµÄÎļþ
¡¡²½Öè¶þ£º£¨ÔÚÍøÒ³ÖÐǶÈëApplet£©
¡¡
¡¡Õâ¸öÍøÒ³µÄÃû×Ö½Ð×öFileReaderApplet.html£¬ÏÂÃæÊÇǶÈëApplet²¿·ÖµÄд·¨£º
£¼APPLET
CODEBASE
= "."
CODE = "jcomponent.FileReaderApplet.class"
ARCHIVE
="MyClass.jar"
NAME = "TestApplet"
WIDTH = 400
HEIGHT = 300
HSPACE
= 0
VSPACE = 0
ALIGN = middle
£¾
£¼/APPLET£¾
¡¡
¡¡Íê³ÉÕâ¸ö²½Öèºó£¬Õâ¸öAppletÒѾ­¿ÉÒÔÏÔʾÁË¡£µ«ÊÇ»¹²»ÄܶÁд±¾µØµÄÎļþϵͳ¡£
¡¡¡¡²½ÖèÈý£º£¨Éú³ÉÖ¤Êé¼°Ç©Ãû£©
¡¡
¡¡ÇëÔÚÃüÁîÐл·¾³ÏÂÖ´ÐÐÒÔϵÄÃüÁ
¡¡¡¡ 1¡¢keytool -genkey -keystore pepper.store
-alias pepper
-validity   3650
¡¡¡¡Õâ¸öÃüÁîÓÃÀ´²úÉúÒ»¸öÃܳ׿⣬ִÐÐÍê±Ïºó
Ó¦¸ÃÔÚc:/adminÖвúÉúÒ»¸öpepper.storeµÄÎļþ£¬ÕâÀïµÄpepperÊÇÎÒ×Ô¼ºµÄÃû×Ö£¬Äã¿ÉÒÔ¶ÔËü½øÐÐÐ޸ġ£ÁíÍâÔÚÖ´ÐÐÃüÁîµÄʱºò»¹ÓÐÌá
ʾÄãÊäÈëÃܳ׿âµÄÃÜÂ룬ÕâÀïÄãÒ»¶¨Òª¼Çס£¬·ñÔòºóÃæÒªÓõÄʱºòÎÞ·¨ÊäÈë¡£
       -validity 3650£¬ÓÐЧÆÚ365Ìì
¡¡
¡¡2¡¢keytool -export -keystore pepper.store -alias pepper -file
pepper.cert
¡¡¡¡Õâ¸öÃüÁîÓÃÀ´²úÉúÇ©ÃûʱËùÒªÓõÄÖ¤Ê飬ͬÑùÕâÀïµÄpepperÒ²¿ÉÒÔ»»³ÉÄã×Ô¼ºÐèÒªµÄÃû×Ö¡£Õâ¸öÃüÁîÖ´ÐÐÍêºó
ÔÚc:/adminÖвúÉúÒ»¸öpepper.certµÄÎļþ¡£
¡¡¡¡4¡¢ jarsigner -keystore
pepper.store MyApplet.jar pepper
¡¡¡¡Õâ¸öÃüÁîÓÃÉÏÃæ²úÉúµÄÖ¤Ê齫ÎÒÃǵÄjarÎļþ½øÐÐÁËÇ©Ãû¡£
²½
ÖèËÄ£º£¨ÐÞ¸ÄÎļþ£©
¡¡¡¡1¡¢ ÔÚc:/adminÖвúÉúÒ»¸öÃûΪapplet.policyµÄÎļþ£¬ÆäÄÚÈÝÈçÏ£º
keystore "file:c: /admin/pepper.store", "JKS";
grant signedBy
"pepper"
{ permission java.io.FilePermission "£¼£¼ALL FILES£¾£¾",
"read";
};
¡¡¡¡Õâ¸öÎļþÈÃÓÉpepperÇ©ÃûµÄAppletÓµÓÐ
±¾µØËùÓÐÎļþµÄ¶ÁȨÏÞ¡£
¡¡¡¡2¡¢
ÐÞ¸Ä${java.home}/jre/lib/securityĿ¼ÏµÄjava.security£¬ÕÒµ½ÏÂÃæÕâÁ½ÐУº
policy.url.1=file:${java.home}/lib/security/java.policy
policy.url.2=file:${user.home}/.java.policy


Ïà¹ØÎĵµ£º

JavaÉè¼Æģʽ֮:IteratorÁ´±íģʽ

ÏÈÀ´Á˽âÒ»ÏÂÁ´±íģʽµÄÔ­Àí£º
Ê×ÏÈдһ¸öJavaBean£¬ÄÚÈÝÊÇÒªÌí¼ÓµÄÔªËغ͸ÃÔªËصĽڵ㡣
public class NodeBean implements Serializable
{
   
    private Object data; //ÔªËر¾Éí
    private NodeBean next; //ÏÂÒ»¸ö½Úµã
   
  &n ......

java ¶Áдexcel

public class OperatExcel
{
    private  File file = new File(ParamenterInit.SRCEXCELPATH);
    private  File outfile = new File(ParamenterInit.DESTEXCELPATH);
    private static String sheetName = ParamenterInit.SHEETNAME;
    ......

JAVAÏß³ÌÖ®Áù£ºÏ̵߳ÄͨÐÅ

      ËäÈ»¾­³£´´½¨¶à¸ö²»ÏàͬµÄÏß³ÌÀ´Íê³É²»Ïà¹ØµÄÈÎÎñ£¬È»¶øÓÐʱִÐеÄÈÎÎñ¿ÉÄÜÓÐÒ»¶¨ÁªÏµ£¬ÕâÑù¾ÍÐèҪʹÕâЩÏ߳̽øÐн»»¥¡£±ÈÈçÓÐÒ»¸öË®ÌÁ£¬ÆäÖжÔË®ÌÁ²Ù×÷ÎÞ·Ç°üÀ¨“½øË®”ºÍ“ÅÅË®”£¬ÕâÁ½¸öÐÐΪ¸÷×Ô´ú±íÒ»¸öỊ̈߳¬µ±Ë®ÌÁÖÐûÓÐˮʱ£¬“ÅÅË®”ÐÐΪ²»ÄÜÔÙ½øÐУ ......

JavaÓ¦ÓóÌÐò¹ú¼Ê»¯

¹ú¼Ê»¯£¨Internationalization£¬I18N£©£ºÏ£Íû²úÆ·Êǹ㷺ÊÊÓÃÐÔ
±¾µØ»¯£¨Localization£¬L10N£©£ºÄܹ»·ûºÏµ±µØµÄÏ°¹ß
Ó¦ÓóÌÐò¹ú¼Ê»¯µÄÄ¿±ê£º
±àдÔÚÈκÎÊÜÖ§³ÖµÄÇøÓòÉèÖÃÖж¼Í¬ÑùÄÜÕý³£ÔËÐУ¨ÇÒÍâ¹Û±íÏÖ±¾µØ»¯£©µÄ´úÂë¡£
¹ú¼Ê»¯ÖеÄUnicode±àÂë
·¹ú¼Ê»¯/±¾µØ»¯¹¤×÷µÄ½¹µã£º
ÓïÑÔ¡¢Êý×Ö¸ñʽ¡¢ÈÕÆÚʱ¼ä¸ñʽ¡¢»õ±Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ