


I want to add Date and Time to my Java Program , How can i get the systemtime and date and pass to Java program ?Many Many Thanks~ ?榳?^, R*n?*I ~~ Samba, more than a low cost File and Printer server ~-- Let us OpenSource --...
I just finished writing a zoom image applet for large images. I have aworking demo at www.masswire.com/zoompan/ i personally think it is alitte bet slow but the image is a 1.2mb jpg. can anyone give me anytips on loading a rized image quicker? thanks...
I am writing out archive files using ZipOutputStream with the followingcode:aEntry is a global Array of ZipEntriesllData is a LinkedList of the data corresponding to the the ZipEntry of thesame index in aEntrypublic void save() {byte[] bBuffer = null;int i = 0;String sName = "";ZipEntry entry;tr...
Hi,Can someone help me send a zip file for download to a browser. I have amethod that is called from a JSP page that returns a ZipOutputStream . Howcan I then send this zip file to the client as a download?Many Thanks,Marcus Robinson...
Hi,I've been trying to use JDK's ZipFile.java in order to extract azipped file. the files inside my zip file have japanese names, and itthrows an exception. there's a bug at SUN's database about it, but noworkaround has been suggested. does anyone know a workaround forunzippi...
Trying to figure out how to use the following program to zip up filesin another directory other than current "." Using current works fine,I substitute it with a path "c:\\stuff" I get the following run-timeerror:Adding: file1.txtjava.io.FileNotFoundException: file1.txt (The system cannot find th...
Hi everyone,I need help for my project in my Java Programming 1 subject. I really don't have an idea on how to go about with this problem. I have started building the code for the CLASS, but didn't bother to post it, cause everytime after I declare the main method, my mind freezes, that's why...
Hi I am using the piece of code in the constructor of JUNit but it is giving me (javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] at javax.nami...
After writing an article trashing java, and C++, notable LISP guruPaul Graham is getting roasted on slashdot. Apart from AutoCAD andEmacs, what has LISP done anyway? Most real work is done in C++ or Cin the case of systems development. Perl is useful, but only fordynamic web content or simple sy...
i want Java code for below output * * * * * * * * * *...
Ok, I am completly at lost :)in both cases (my Yenc and zip utilities) i try to do the following1) get a String2) transform in byte[]3) so some computation (either adding value to the byte or passing it tothe ZipOutputStream on a ByteArrayOutputStream)4) then transform back into StringIn both ca...
Hai Can anybody please help me in trigerring Yellowfin report from the Java/JSPprogram....
... = yet another simple question. ;-))when I have -for example- a 'double' variable with value231.6847987639475639876478 etc...How can I have it printed on screen as 231.685 ?or as 2.3e+2 ?in general: How can I set the format in which floats (or other var's) areprinted on screen?...
My instructions for this are: Use one class to convert a value entered by the user in yards to meters and feet. The program should print the results of each conversion to the screen without the user having to re-enter the value to be converted. The name of the class should be YardsConversion. Th...
Hi,We wrote a web application using XSQL and Oracle 8.1.7,Struts and JSPs.It worked just fine on Tomcat 4.1 (development environment),but now we are going into production using Weblogic 7.0 SP4with its connection pool (and Oracle 8.1.6).We have noticed that the number of connections grows veryqu...
