How to control the output of the console?645 (5/7/2008 1:05:47 PM) comp.lang.java.programmer like the code: try { System.out.println(1); throw new Exception(); }catch(Exception e) { System.out.println(2); e.printStackTrace(); System.out.println(3); } System.out.println(4); if I... JTL
What does conn.close() do when using datapool?6117 (11/10/2007 3:34:59 AM) comp.lang.java.programmer I am using tomcat's datapool + mysql.when I call conn.close() after I finish my job.what does it do exactly?it will get the connection back to tomcat's datapool so the next usercan use it?or destory the connect... JTL
What's wrong with this sentence?790 (10/31/2007 8:17:29 AM) comp.lang.java.programmer Hashtable userCart = (Hashtable)session.getAttribute("userCart");I am using EclipseIt get a warning:Type safety: The cast from Object to Hashtable isactually checking against the erased type HashtableHashtable ... JTL
How to add jdom library into my jar file in eclipse6460 (7/6/2007 2:38:40 AM) comp.lang.java.programmer I have used jdom in my codesso I must add the jdom library into my jar file to make it runbut I can't find any step to add jdom library in eclipse:File-Export-Java-JAR filehow can I jdom library into my jar fil... JTL
how can I execute a .jar file in linux431 (10/4/2006 6:15:49 PM) comp.lang.java.programmer I am using Red hat linux and had install the JRE (use command: ./jre-1_5_0-linux-i586-rpm.bin and it has done) but when I click a xxx.jar file,it can't be executed (this file can be executed in windows) how ... jtl.zheng(91)
how to improve transfering file's efficiency #2730 (11/19/2006 10:23:13 AM) comp.lang.java.programmer I have write program for client to client file transmission but it seems unefficient ,the transmission speed is low and it take too much CPU resource here are the codes(sender's and receiver's) are there some ... jtl.zheng(91)
how to use DES in java?446 (11/29/2006 11:26:20 AM) comp.lang.java.programmer I want to write codes to encrypt file using DES something like: public File encryptDES(File inputFile,String DES_key) the DES_key is 56bits I know nothing about it could you introduce some resources about how... jtl.zheng(91)
Does c++ have an uniform class library?3523 (12/1/2006 5:59:53 PM) comp.lang.c++ I have learnt java before and now begin to learn c++ what puzzle me is that seem that different SDKs(c++builder, vs.net, gcc..) has its own class library we know that in java there are only one uniform class l... jtl.zheng(91)
How could I transform java to .exe824 (12/5/2006 11:20:27 AM) comp.lang.java.programmer I want to transform my java program to Windows program(someting like xxx.exe file) and this xxx.exe file can run in Windows that didn't install the JRE how can I transform it? is that any tools to do it? ... jtl.zheng(91)