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

Java Àà×°ÔØÆ÷

 ¹þ¹þ,½ñÌìûÊÂ×ö,µ«ÐÄÇé²»´í,ËùÒÔдÕâƪÎÄÕÂ.
     Àà×°ÔØÆ÷ÊÇJava³ÌÐòÔËÐÐʱ²»¿ÉȱÉÙµÄÒ»²¿·Ö,ËüµÄÈÎÎñÊÇ°ÑÓÉJavaÔ´³ÌÐò±àÒë³ÉµÄclassÎļþ¶ÁÈëµ½ÄÚ´æÖÐ,È·ÇеÄ˵ÊÇ×°Èëµ½JVMµÄÄÚ´æÖÐ,ӦΪJVMÊÇһ̨³éÏóµÄ¼ÆËã»ú,ËüÓÐ×Å×Ô¼ºµÄCPU,ÄÚ´æµÈ. ÔÚclassÎļþÖаüº¬ÁËÒ»¸öÀàµÄ¸÷ÖÖÐÅÏ¢,µ±Ö´ÐÐjava XXXÃüÁîÔËÐÐÒ»¸öÒÔXXXΪ³õʼÀàµÄJava³ÌÐòʱ,Àà×°ÔØÆ÷»á°ÑXXXµÄclassÎļþ×°Ôص½ÄÚ´æ,È»ºó¸ù¾Ý¸ÃclassÎļþÖаüº¬µÄÐÅÏ¢ÔÚ·½·¨ÇøÖÐÉú³ÉÒ»¸öJVMµÄÄÚ²¿Êý¾Ý½á¹¹,¸ÃÊý¾Ý½á¹¹ÀïµÄÄÚÈÝÊÇXXXÀàµÄÀàÐÍÐÅÏ¢,´ó¼ÒÖªµÀÿ¸öÀ඼»á¶ÔÓ¦Ò»¸öClass¶ÔÏó,¸Ã¶ÔÏó¾ÍÊÇJVM¸ù¾ÝÕâ¸öÀàÐÍÐÅÏ¢ÔÚ¶ÑÇøÖд´½¨µÄ,Õâ¸ö¶ÔÏóº¬ÓÐÒ»¸öÖ¸Ïò·½·¨ÇøÖжÔÓ¦ÀàÐÍÐÅÏ¢µÄÖ¸Õë,³ý´ËÖ®Íâ,¸ÃClass¶ÔÏó»¹°üº¬Ò»¸öÖ¸ÏòÀà×°ÔØÆ÷µÄÖ¸Õë,¸ù¾ÝÕâ¸öClass¶ÔÏó¾Í¿ÉÒÔ´´½¨¶ÔÏó,¿ÉÒÔ·ÃÎÊ×°Ôر¾ÀàµÄÀà×°ÔØÆ÷,»¹¿ÉÒÔ·ÃÎÊ·½·¨ÇøÖеÄÊý¾Ý(Java·´Éä»úÖƾÍÊÇÕâÑùʵÏÖµÄ).
Ò».JavaÖÐÓÐËÄÖÐÀà×°ÔØÆ÷:Æô¶¯Àà×°ÔØÆ÷,À©Õ¹Àà×°ÔØÆ÷,Àà·¾¶Àà×°ÔØÆ÷,×Ô¶¨ÒåÀà×°ÔØÆ÷.ÏÂÃ潫ΧÈÆ×ÅÕâÈýÖÖÀà×°ÔØÆ÷×öÒ»¸öÏêϸµÄÃèÊö:
1.Æô¶¯Àà×°ÔØÆ÷:Ò²½ÐÒýµ¼Àà×°×°ÔØÆ÷,ËüÊÇJVMÄÚ²¿µÄÀà×°ÔØÆ÷,ÓÃC++±àд,×÷ÓÃÊÇ×°ÔØJavaºËÐÄÀà¿âÖеÄÀà,±ÈÈç˵һ¸öJavaÐéÄâ»úĿ¼ΪD:\JDK1.5,ÔòÆô¶¯Àà×°ÔØÆ÷¸ºÔð×°ÔØD:\JDK1.5\jre\lib\rt.jar,rt.jarΪJavaºËÐÄÀà¿â,±ÈÈçÎÒÃdz£Óõ½µÄjava.lang°üÖеÄSystemÀà,ÓÉÓÚÆô¶¯Àà×°ÔØÆ÷Êǹ©JVMʹÓõÄ,Java³ÌÐò²¢²»ÄÜÖ±½ÓʹÓÃ,ÏÂÃæ¾Ù¸öÀý×ÓÀ´ËµÃ÷:
class Test {
   public static void main(String[] args) {
      System.out.println(System.class.getClassLoader());
   }
}
ÉÏÊö³ÌÐò´òÓ¡³ö×°ÔØSystemÀàµÄÀà×°ÔØÆ÷,¶ø´òÓ¡³öµÄÈ´ÊÇnull,˵Ã÷ÁËÆô¶¯Àà×°ÔØÆ÷²»ÄÜÖ±½Óµ÷ÓÃ.
2.À©Õ¹Àà×°ÔØÆ÷:Ëü¸ºÔð×°ÔØJavaµÄÀ©Õ¹Àà,±ÈÈç˵һ¸öJavaÐéÄâ»úĿ¼ΪD:\JDK1.5,ÔòËü¸ºÔð¼ÓÔØD:\JDK1.5\jre\lib\extϵÄÀà¿âÖеÄÀà,¼ÙÈçextĿ¼ÏÂÓиöjar°ü,°üÀïÓиöTestÀà,°üÃûΪorg.test,Ôò¿ÉÒÔÓÃorg.test.Test.class.getClassLoader()·½·¨´òÓ¡³ö¸ÃÀà¼ÓÔØÆ÷,¿ÉÒÔ¿´µ½½á¹ûΪsun.misc.Launcher$ExtClassLoader,˵Ã÷TestÀàÓÉÀ©Õ¹Àà×°ÔØÆ÷×°ÔØ,¿ÉÒÔ¸ù¾ÝÐèÒª°Ñ×Ô¼ºÐ´µÄÀà´ò³Éjar°ü·Åµ½extĿ¼ÏÂ.
3.Àà·¾¶Àà×°ÔØÆ÷:Ò²¿ÉÒÔ½ÐϵͳÀà×°ÔØÆ÷,Ëü¸ºÔð×°Ôص±Ç°classpathϵÄÀà,Ò²¾ÍÊǵ±ÎÒÃÇÒªÔËÐÐÒ»¸öJava³ÌÐòʱ³õʼÀàµÄ°üËùÔÚµÄĿ¼,±ÈÈçÔÚD:\testÏÂÓиöTest.class,ËüÊdzÌÐòµÄ³õʼÀà,µ±Ö


Ïà¹ØÎĵµ£º

Lucene£º»ùÓÚJavaµÄÈ«ÎļìË÷ÒýÇæ¼ò½é


LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖƼò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅ ......

¼ÙÆÚûÊÂ,дÁ˸ö90ÐеĶíÂÞ˹·½¿é,JavaʵÏÖ

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Terris extends JFrame implements Runnable, KeyListener {
private short isPlaying=0,xOffSet = 2, yOffSet = 0, blockType = (short) Math.round(Math.random() * 6), blockRotation = 0, blockColor = (short) Math.round(Math. ......

JavaÅжÏOSÊÇlinux»¹ÊÇwindows

public class Test {
public static void main(String aa[]) {
if (System.getProperty("os.name").equals("Linux")) {
System.out.println("linux");
} else if (System.getProperty("os.name").equals("Windows XP")) {
System.out.println("win ......

java¿½±´¶ÔÏó

ÕâÊÇÎÒ¸öÈ˵ÄÀí½â£¬¼ÓÉÏÒÔÇ°¿´µÄһЩÌû×Ó£¬Óв»¶ÔµÄµØ·½£¬Çë¸ßÈËÖ¸µã¡£
1.×÷Ϊjava²ÎÊý´«µÝ¸øÒ»¸öº¯ÊýµÄ¶ÔÏ󣬳ýÁ˺ܼòµ¥µÄÈçint»òÕßbooleanµÈ¼òµ¥µÄÒÔÍ⣬´«µÝµÄ¶¼ÊÇÕâ¸ö¶ÔÏóµÄÒýÓá£
µ±ÔÚ½ÓÊÕº¯ÊýÖиıäÕâ¸ö¶ÔÏóµÄʱºò£¬Ô­À´µÄ¶ÔÏó¼´±»¸Ä±ä¡£
2.ÔÚ³õʼ»¯Ò»¸ö¶ÔÏóµÄʱºò£¬ÓÐʱºòÎÒÃÇÏ£ÍûÓÃÒ»¸öÒѾ­´æÔڵĶÔÏóÀ´¸øÁíÍâÒ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ