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

JavaÏà¶Ô·¾¶¶ÁÈ¡Îļþ


²»¹ÜÄãÊÇÐÂÊÖ»¹ÊÇÀÏÄñ£¬ÔÚ³ÌÐòÖжÁÈ¡×ÊÔ´Îļþ×Ü»áÓöµ½Ò»Ð©ÕÒ²»µ½ÎļþµÄÎÊÌ⣬ÕâÓëJavaµ×²ãµÄʵÏÖÓйأ¬²»ÄÜËãbug£¬Ö»Òª·½·¨µÃµ±£¬ÎÊÌ⻹ÊÇ¿ÉÒÔ½â¾öµÄ¡£
 
ÏîÄ¿µÄÎļþ¼Ð½á¹¹£º
repathtest 
©À©¤src 
©¦    ©¸©¤com 
©¦            ©¸©¤lavasoft 
©¦                    ©À©¤test 
©¦                    ©¸©¤res 
©À©¤doc
 
 
 
1¡¢ÔÚJava¿ª·¢¹¤¾ßµÄprojectÖÐʹÓÃÏà¶Ô·¾¶
ÔÚprojectÖУ¬Ïà¶Ô·¾¶µÄ¸ùĿ¼ÊÇprojectµÄ¸ùÎļþ¼Ð£¬Ôڴ˾ÍÊÇrepathtestÎļþ¼ÐÁË¡£
´´½¨ÎļþµÄд·¨ÊÇ£º
File f = new File("src/com/lavasoft/res/a.txt");
 
File f = new File("doc/b.txt");
 
×¢Ò⣺
·¾¶²»ÒÔ“/”¿ªÍ·£»
ÍÑÀëÁËIDE»·¾³£¬Õâ¸öд·¨¾ÍÊÇ´íÎóµÄ£¬Ò²²¢·Çÿ¸öIDE¶¼Èç´Ë£¬µ«ÎÒ¼ûµ½µÄ¶¼ÊÇÕâÑùµÄ¡£
 
2¡¢Í¨¹ýCLASSPATH¶ÁÈ¡°üÄÚÎļþ
¶ÁÈ¡°üÄÚÎļþ£¬Ê¹ÓõÄ·¾¶Ò»¶¨ÊÇÏà¶ÔµÄclasspath·¾¶£¬±ÈÈça£¬Î»ÓÚ°üÄÚ£¬´Ëʱ¿ÉÒÔ´´½¨¶ÁÈ¡aµÄ×Ö½ÚÁ÷£º
InputStream in = ReadFile.class.getResourceAsStream("/com/lavasoft/res/a.txt");
ÓÐÁË×Ö½ÚÁ÷£¬¾ÍÄܶÁÈ¡µ½ÎļþÄÚÈÝÁË¡£
 
×¢Ò⣺
ÕâÀï±ØÐëÒÔ“/”¿ªÍ·£»
 
3¡¢¿´¿´ÍêÕûµÄ²âÊÔ´úÂë
package com.lavasoft.test; 
import java.io.*; 
/** 
* Java¶ÁÈ¡Ïà¶Ô·¾¶µÄÎļþ 

* @author leizhimin 2010-1-15 10:59:43 
*/ 
public class ReadFile { 
        public static void main(String[] args) { 
                readTextA_ByClassPath(); 
                readTextA_ByProjectRelativePath(); 
       &n


Ïà¹ØÎĵµ£º

java»ù±¾Êý¾ÝÀàÐÍת»»

»ù±¾Êý¾ÝÀàÐÍ
ÔÚJAVAÖÐÒ»¹²ÓаËÖÖ»ù±¾Êý¾ÝÀàÐÍ£¬ËûÃÇ·Ö±ðÊÇ
byte¡¢short¡¢int¡¢long¡¢float¡¢double¡¢char¡¢boolean
ÕûÐÍ
ÆäÖÐbyte¡¢short¡¢int¡¢long¶¼ÊDZíʾÕûÊýµÄ£¬Ö»²»¹ýËûÃǵÄȡֵ·¶Î§²»Ò»Ñù
byteµÄȡֵ·¶Î§Îª-128~127£¬Õ¼ÓÃ1¸ö×Ö½Ú£¨-2µÄ7´Î·½µ½2µÄ7´Î·½-1£©£º¾ßÌåÇë¿´²¹Âë
shortµÄȡֵ·¶Î§Îª-32768~32767£¬Õ¼Ó ......

JAVA ·´Éä

   Äú²éѯµÄ¹Ø¼ü´ÊÊÇ£ºnewinstance object initargs  ¡£Èç¹û´ò¿ªËÙ¶ÈÂý£¬¿ÉÒÔ³¢ÊÔ¿ìËٰ棻Èç¹ûÏë±£´æ¿ìÕÕ£¬¿ÉÒÔÌí¼Óµ½ËѲء£
(°Ù¶ÈºÍÍøÒ³http://bbs.iaiai.com/forum/read.php?tid=2690µÄ×÷ÕßÎ޹أ¬²»¶ÔÆäÄÚÈݸºÔð¡£°Ù¶È¿ìÕÕ½÷ÎªÍøÂç¹ÊÕÏʱ֮Ë÷Òý£¬²»´ú±í±»ËÑË÷ÍøÕ¾µÄ¼´Ê±Ò³Ãæ¡£)
 Ö÷Ìâ : javaµÄ·´Éä ......

Siebel Java Data Bean: Query first record

Following codes will show you how to query the first record from DB using Java Data Bean. package com ;
import com.siebel.data.*;
import com.siebel.data.SiebelException;
public class DataBeanDemo {
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject = null;
......

ÔËÐÐʱʵÏÖJavaµÄ¶à̬ÐÔ

     ÔËÐÐʱ¶à̬ÐÔÊÇÃæÏò¶ÔÏó³ÌÐòÉè¼Æ´úÂëÖØÓõÄÒ»¸ö×îÇ¿´ó»úÖÆ£¬¶¯Ì¬ÐԵĸÅÄîÒ²¿ÉÒÔ±»Ëµ³É“Ò»¸ö½Ó¿Ú£¬¶à¸ö·½·¨”¡£JavaʵÏÖÔËÐÐʱ¶à̬ÐԵĻù´¡ÊǶ¯Ì¬·½·¨µ÷¶È£¬ËüÊÇÒ»ÖÖÔÚÔËÐÐʱ¶ø²»ÊÇÔÚ±àÒëÆÚµ÷ÓÃÖØÔØ·½·¨µÄ»úÖÆ£¬ÏÂÃæ¾Í¼Ì³ÐºÍ½Ó¿ÚʵÏÖÁ½·½ÃæÌ¸Ì¸javaÔËÐÐʱ¶à̬ÐÔµÄʵÏÖ¡£
¡¡¡¡Ò»¡¢Í¨¹ý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ