blic class TestCal {
public static void main(String[] argv) {
Calendar cal = Calendar.getInstance();
System.out.println(cal.getTime());
}
}
The output of the program is always CDT time.
Could anybody tell me how to solve this problem? thanks.
--
Marius S
solution is
appletviewer -J-mx32m some.html
sets max memory to 32 Megs.
Marius
Marius Schamschula, optical physicist, mac, and network coordinator
The Center for Applied Optical Sciences: http://www.caos.aamu.edu/
Department of Physics, Alabama A & M University
et an OutOfMemoryException. On the Mac I
have no such problem.
Any ideas?
BTW: under Linux the program executes anyway. Under WinWhatever it fails
completely (Sun JDK1.1.7a).
Marius
Marius Schamschula, optical physicist, mac, and network coordinator
The Center for Applied Optical Sciences: http://www.caos.aam
Thanks to all that sent me the key:
exec doesn't redirect
I've rewritten my test applet to run a shell script that does the
redirection for me. It works just fine.
Marius
Marius Schamschula, optical physicist, mac, and network coordinator
The Center for Applied Optical Scien
of JDK 1.1.x. I'm trying to use
Java to directly invoke various shell scripts. I do a waitFor () for the
process to terminate, check the InputStream and ErrorStream. The streams are
empty...
Any hints?
TIA
Marius
Marius Schamschula, optical physicist, mac, and network coordinator
The Cen