java desktop application°²×°³ÌÐòµÄÖÆ×÷
×î½üÐèÒªÖÆ×÷java desktop applicationµÄ°²×°³ÌÐò¡£
ºÃ²»ÈÝÒ×ÔÚÍøÉÏdownÁ˸öinstallanywhere9°²×°²¢Æƽ⣬ ÓÃÆðÀ´»¹Í¦Ë³Àû£¬¹¦ÄܱȽÏÇ¿´ó£¬Ðí¶àµØ·½¿ÉÒÔ¶¨ÖÆ£¬µ±È»×ö³öÀ´µÄ³ÌÐòÔÚ°²×°Ê±Ò²Ëæ´¦¿É¼ûinstallanywhereµÄÉíÓ°£¬ÉÌÒµÈí¼þÂû°ì·¨¡£
ºóÀ´³ÌÐòÔÚÔËÐйý³ÌÖУ¬·¢ÏÖ×ÔÒÔΪÉèÖýøÈ¥ÁËjava desktop applicationµÄjreµÄ-xmsºÍ-xmx¸ù±¾Ã»ÉúЧ£¬ÀÏÊǵ¼ÖÂOutOfMemoryError¡£ÔÚ¶à¸öµØ·½ÊÔÑ飬°üÀ¨installanywhereµÄ½çÃæÉÏÉèÖÃminimum heap sizeºÍmaximum heap size£¬ÔÚinstallanywhereµÄ°²×°Ä¿Â¼ÏÂÉèÖúó׺ÃûΪLAXµÄxmlÎļþÀïµÄÏàÓ¦Öµ£¬¶¼´ï²»µ½Ô¤ÆÚµÄÄ¿µÄ¡£×îºóÔÚÆäÖÆ×÷µÄ°²×°³ÌÐò°²×°ÊͷųöÀ´µÄÒ»¸öºó׺ÃûΪLAXµÄÎļþÀïÉèÖÃÏìÓ¦Öµµ¹ÊǺÃÁË£¬µ«Õâ±Ï¾¹ÊÇÂíºóÅÚ¡£Ö»ÄÜ»³ÒÉÉÏÃæ´ï²»µ½Ô¤ÆÚ²½ÖèµÄÔÒòÊÇÄÇЩµØ·½ÉèÖÃ-xmsºÍ-xmxÊǸøÖÆ×÷°²×°³ÌÐòʱµÄjvmÉèÖõģ¬µ±È»²¢²»ÄÜÈ·¶¨¡£
ºóÀ´×ÉѯÒÔÇ°µÄÁìµ¼£¬ËûÍƼöinnoÕâÒ»°²×°³ÌÐòÖÆ×÷Èí¼þ£¬ºÜºÃ£¬ÊÇÃâ·ÑÈí¼þ£¬µ«Óе㲻ˬµÄÊÇËü±ØÐëÖ¸¶¨Ò»¸öexe³ÌÐò¡£ÓÚÊǺõ£¬Ð´ÁËÒ»¸öÖ´ÐÐjava³ÌÐòµÄbatÎļþ£¬ÔÚÕâ¸öbatÀïÉèÖúÃ-xmsºÍ-xmx£¬È»ºóÓÃvc×öÁËÒ»¸öÖ´ÐиÃbatµÄexeÎļþ¡£¼¸ºõÊÇ¿ÉÒÔÔËÐÐÁË£¬µ«ÊÇÓÐЩÎÊÌ⣬±ÈÈçbatÀïʹÓÃÁËjavawÃüÁÿ´ÎÖ´ÐеÄʱºòdosºÚ´°¿Ú×ÜÒªflashһϣ¬ÌåÑéºÜ²î£»javawºóÃæÖ¸¶¨jre·¾¶±È½Ï·±Ëö¡£Î´ÖªÕâÀïÊÇ·ñÄܽâ¾ö£¬°ÓÚʱ¼ä£¬²»ÄÜһ̽¾¿¾¹¡£
×îºó²ÉÈ¡exe4j+inno½áºÏµÄ·½Ê½¡£ÏÈÓÃexe4j½«java desktop applicationÖÆ×÷³Éexe³ÌÐò£¬ÔÙÓÃinnoÖÆ×÷°²×°³ÌÐò£¬±È½Ï˳Àû£¬µ«ÓÐÒ»µã£ºexe4jÊÇÊշѵġ£
Ïà¹ØÎĵµ£º
keytoolÉú³ÉÖ¤Êé
ÑéÖ¤ÊÇ·ñÒÑ´´½¨¹ýͬÃûµÄÖ¤Êé
keytool -list -v -alias tomcat -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS" -storepass changeit
ɾ³ýÒÑ´´½¨µÄÖ¤Êé
keytool -delete -alias tomcat -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS" -storepass changeit
´´½¨Ö¤Êé
1.·þÎñ ......
½«ÒÔÏÂÄÚÈݸ´ÖÆEclipseÖÐÔËÐУ¬ËæÒâÊäÈëÒ»¸öÓû§Ãû£¬³ÌÐò»á×Ô¶¯¼ÆËã³ö×¢²áÂ룬¾ø¶ÔÄÜÓã¡£¡£¡
package sun;
import java.io.*;
public class MyEclipseGen {
private static f ......
¹Ø¼ü×Ö: javaÖÐjxlµ¼³öÊý¾Ýµ½excelµÄÀý×Ó
ÒªÍùxlsÎļþÀïÃæдÈëÊý¾ÝµÄʱºòÐèҪעÒâµÄÊǵÚһҪн¨Ò»¸öxlsÎļþ
OutputStream os=new FileOutputStream("c:\\excel2.xls" );
ÔÙ½¨ÍêÕâ¸öÎļþµÄʱºòÔÙ½¨Á¢¹¤×÷Îļþ
jxl.write.WritableWorkbook wwb = Workbook.createWorkbook(new File(os));
Èç¹ûÕâ¸öÎļþÒѾ´æÔÚ,ÄÇà ......
δÍê³É ´ýÍêÉÆ
public class MagicCube {
/**
* Áù¸öÃæµÄϱêÖµ
* ¡õ5
* ¡õ¡õ¡õ¡õ 1234 ÕâËĸöÁ¬ÌåÕý·½ÐÎÏòºó˳ʱÕë°üΧ ÐγÉͲ״ È»ºó °Ñ5ºÍ6¿ÛÉÏ ¾ÍÐγÉÕý·½Ìå
* ¡õ6
*/
public static void main(String[] args) {
MagicCube mb = new MagicCube();
int i = 0;
for (Face f : mb.faces ......
1.½Ó¿ÚµÄ¶¨Ò壺
interface ½Ó¿ÚÃû
{ ½Ó¿ÚÌ壻 }
×¢Ò⣺½Ó¿ÚÌåÖÐÖ»ÄÜ°üº¬³£Á¿¶¨ÒåºÍ·½·¨¶¨ÒåÁ ......