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

Java»·¾³±äÁ¿ÅäÖÃÏêϸ˵Ã÷

java»·¾³±äÁ¿ÉèÖý̳Ì
ÏÂÔغõÄJDKÊÇÒ»¸ö¿ÉÖ´Ðа²×°³ÌÐò£¬Ë«»÷°²×°¡£½«°²×°Â·¾¶¸ÄΪ£ºC:\jdk1.6.0£¨µ±È»ÆäËû·¾¶Ò²¿ÉÒÔ£©¡£
JDK°²×°Íê³ÉÖ®ºó
ÎÒÃÇÀ´ÉèÖû·¾³±äÁ¿£º
ÎҵĵçÄÔµãÓÒ¼ü£¬Ñ¡Ôñ“ÊôÐÔ”£¬Ñ¡Ôñ“¸ß¼¶”±êÇ©£¬½øÈë»·¾³±äÁ¿ÉèÖ㬷ֱðÉèÖÃÈçÏÂÈý¸ö»·¾³±äÁ¿£º
£¨1£©
ÉèÖúÃpath±äÁ¿£¬Ê¹µÃÎÒÃÇÄܹ»ÔÚϵͳÖеÄÈκεط½ÔËÐÐjavaÓ¦ÓóÌÐò£¬±ÈÈçjavac¡¢java¡¢javahµÈµÈ,Õâ¾ÍÒªÕÒµ½ÎÒÃÇ°²×°JDKµÄÄ¿
¼£¬±ÈÈçÎÒÃǵÄJDK°²×°ÔÚC:\jdk1.6.0Ŀ¼ÏÂ,ÄÇôÔÚC:\jdk1.6.0\binĿ¼Ï¾ÍÊÇÎÒÃdz£ÓõÄjavaÓ¦ÓóÌÐò,ÎÒÃǾÍÐèÒª°Ñ
C:\jdk1.6.0\binÕâ¸öĿ¼¼Óµ½path»·¾³±äÁ¿ÀïÃæ¡£
ÔÚϵͳ±äÁ¿ÀïÕÒµ½path±äÁ¿,Ñ¡Ôñ->±à¼­£»(ÀïÃæÒѾ­ÓÐ
ºÜ¶àµÄ±äÁ¿Öµ,ÊÇÔÚ±äÁ¿ÖµµÄ×îÇ°Ãæ¼ÓÉÏC:\jdk1.6.0\bin;)
  ±äÁ¿Ãû:    path
  ±äÁ¿Öµ:   
C:\jdk1.6.0\bin;
£¨2£©classpath»·¾³±äÁ¿£¬Êǵ±ÎÒÃÇÔÚ¿ª·¢java³ÌÐòʱÐèÒªÒýÓñðÈËдºÃµÄÀàʱ£¬
ÒªÈÃjava½âÊÍÆ÷ÖªµÀµ½ÄÄÀïÈ¥ÕÒÕâ¸öÀࡣͨ³££¬sunΪÎÒÃÇÌṩÁËһЩ¶îÍâµÄ·á¸»µÄÀà°ü£¬Ò»¸öÊÇdt.jar£¬Ò»¸öÊÇtools.jar£¬ÕâÁ½¸öjar
°ü¶¼Î»ÓÚC:\jdk1.6.0\libĿ¼Ï£¬ËùÒÔͨ³£ÎÒÃǶ¼»á°ÑÕâÁ½¸öjar°ü¼Óµ½ÎÒÃǵÄclasspath»·¾³±äÁ¿ÖÐset
classpath=.;C:\jdk1.6.0\lib\tools.jar;C:\jdk1.6.0\lib\dt.jar¡£
ÔÚϵ
ͳ»·¾³±äÁ¿ÄÇÒ»À¸Öеã->н¨classpath
  ±äÁ¿Ãû:    classpath
  ±äÁ¿Öµ:   
.;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;£¨×¢Ò⣬CLASSPATH×îÇ°ÃæÊÇÓиö
“.”µÄ£¬±íʾµ±Ç°Ä¿Â¼£¬ÕâÑùµ±ÎÒÃÇÔËÐÐjava AClassµÄʱºò£¬ÏµÍ³¾Í»áÏÈÔÚµ±Ç°Ä¿Â¼Ñ°ÕÒAClassÎļþÁË¡££©£»
£¨3£©ÉèÖÃ
JAVA_HOME:
Ò»ÊÇΪÁË·½±ãÒýÓ㬱ÈÈ磬JDK°²×°ÔÚC:\jdk1.6.0Ŀ¼ÀÔòÉèÖÃJAVA_HOMEΪ¸ÃĿ¼·¾¶,
ÄÇôÒÔºóҪʹÓÃÕâ¸ö·¾¶µÄʱºò, Ö»ÐèÊäÈë%JAVA_HOME%¼´¿É, ±ÜÃâÿ´ÎÒýÓö¼ÊäÈëºÜ³¤µÄ·¾¶´®;
¶þÔòÊǹéÒ»Ô­Ôò,
µ±JDK·¾¶¸Ä±äµÄʱºò, ½öÐè¸ü¸ÄJAVA_HOMEµÄ±äÁ¿Öµ¼´¿É, ·ñÔò,¾ÍÒª¸ü¸ÄÈκÎÓþø¶Ô·¾¶ÒýÓÃJDKĿ¼µÄÎĵµ, ÒªÊÇÍòһûÓиÄÈ«,
ij¸ö³ÌÐòÕÒ²»µ½JDK, ºó¹ûÊÇ¿ÉÏë¶øÖªµÄ----ϵͳ±ÀÀ£!
ÈýÔòÊǵÚÈý·½Èí¼þ»áÒýÓÃÔ¼¶¨ºÃµÄJAVA_HOME±äÁ¿, ²»È»,
Äã²»ÄÜÕý³£Ê¹ÓøÃÈí¼þ.
ÔÚϵͳ»·¾³±äÁ¿ÄÇÒ»À¸Öеã->н¨JAVA_HOME £¨JAVA_HOMEÖ¸ÏòµÄÊÇJDKµÄ°²×°Â·¾¶£©

  ±äÁ¿Ãû£º  JAVA_HOME
  ±äÁ¿


Ïà¹ØÎĵµ£º

Ò»µÀjavaÌâËù½ÒʾµÄÔ­Àí

¿´µ½Ò»µÀjavaÌ⣬¸Ð¾õºÜ²»´í,ÎÒÔÚÔ­À´µÄ°æ±¾ÉÏÔö¼ÓÁËЩ´úÂ룬һÆðÀ´¿´¿´ÏÂÃæµÄ´úÂ뽫Êä³öʲô
class Father{
int i,j;

Father(){
add(1);
}
void add(int v){
i+=v;
j+=v;
}
void print(){
System.out.println("i:="+i);
System.out.println("j:="+j);
}
}
class C ......

JAVAµ÷ÓÃDLLµÄ×¢ÒâÊÂÏî

ÍøÉÏJAVAµ÷ÓÃDLLµÄÎÄÕ²»ÉÙÁË£¬µ«·¢ÏÖÓÐЩ»¹ÊÇÓÐÎÊÌâ¡£¸ÕºÃÑо¿ÁËһϣ¬ÉÔ×ö¸ü¸Äºó£¬ÔÚVC2005ÉϲâÊÔͨ¹ý£¬£¨ReleaseºÍDebug°æ±¾¾ù¿É£©¡£
¸ü¸Äµã£º
1¡¢#include "jni.h"
2¡¢½«jni_md.hÖеģº#define JNICALL __stdcall±äΪ£º#define JNICALL __cdecl (º¯ÊýʹÓõÄÓ¦¸ÃÊÇcÓïÑÔµÄȱʡµ÷Ó÷½Ê½_cdecl·½Ê½£¬·ñÔòDLLÀ ......

CICS JAVA SAMPLE

Ê×ÏÈÊÇbuild sample
Óöµ½µÄµÚÒ»¸ö´íÎó
ADCDMST:/Z19/usr/lpp/cicsts/cicsts32/samples/dfjcics: >make -f makefile jvm   
make: Error -- FSUM9383 Configuration file `/etc/startup.mk' not found  
ÐÞ¸´£ºcp /samples/startup.mk /etc/startup.mk
export JAVA_HOME=/Z19/usr/lpp/jav ......

Java°ü×°Ààѧϰ

ÎÒÃÇÓ¦ÓÃijÖÖÊý¾ÝÀàÐÍʱ£¬ºÜ¶àʱºòÒª½øÐÐÀàÐÍת»»µÈ²Ù×÷¡£ÔÚDelphiÖУ¬ÀàÐÍת»»º¯Êý¸Ð¾õºÜÁãÂÒ£¬Èç×Ö·û´®×ªÕûÐΡ¢ÕûÐαä×Ö½ÚÊý×éµÈµÈ¡£
¶øÔÚJAVAÖУ¬ÒѾ­½«JavaµÄ»ù±¾Êý¾ÝÀàÐÍÓëÆäÌṩÁËһЩ³£ÓõÄÀàÐͲÙ×÷µÄ·½·¨½øÐÐÁË·â×°£¬ÕâÑù²ÅÓÐÒ»ÇнԶÔÏóµÄ¸Ð¾õ¡£
ÔÚѧϰ°ü×°Ààʱ£¬ÕÒÁ˼¸¸ö±È½ÏÓÐÒâ˼µÄÀà½øÐÐÁËѧϰ£¡
Integer
I ......

ÓÃJava»ñµÃIPµØÖ·

     
ÈçºÎÓÃJava»ñµÃÒ»¸öÓòÃûµÄIPµØÖ·ÄØ£¿ÌṩÕâ¸ö¹¦ÄܵÄÀà½Ð×öjava.net.InetAddress¡£ÎÒÃǼÙÉèÏÖÔÚÓÐÕâÑùÒ»¸öÓòÃû£¬ËüÓÃÒ»¸ö¾²Ì¬µÄ
getByNameÀ´ÖØлñµÃÒ»¸öInetAddress£¬È»ºóµÃµ½¿ÉÒÔ¶Á³öµÄIPµØÖ·¡£ÏÂÃæµÄ´úÂëÊǷdz£»ù±¾µÄÃüÁîÐС£
import java.net.InetAddress;
import java.net.Unknow ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ