Re: Donations of Metrolink Motif!
sorry, not on that list. i tried at one time ( long time ago) , but just didn't get in. the porting list is not even advertised! there also doesnt seem to be an archive list there either. so who is to know? so i guess the ans is no. from ur inquiry, i suppose there is an effort to produce a static version of java/alpha/(real)motif? Then can i presume urs will work with redhat 5.0 ( what i have ) and beyond? ( as i remem the motif was built against redhat 4.2, which u donated to the port effort ) did not work when i switched to redhat 5.0 . Stephen Wynne wrote: > I just wanted to check if you were tracking this discussion > on [EMAIL PROTECTED]
Re: Donations of Metrolink Motif!
BTW, yes i'd like one copy, if its being offered? BUT I have limited disk space from the ISP ( 10 megs ) for all my web stuff, the java port is takeing near half. they wont give more than 10 ( unless u give more $ ) , and they enforce it as u transfer it to the ftp-only ( to me - http to others ) available site!. The folks at voicenet.com also are trying to enforce a limit of 250mb/month from the web site. I think they shut down the web site if u exceed that limit. This in essence limits access to the first 45 transfers each month. Otherwise they want mo-money for the next gig of transfers. thats why i split the bins and the classes - it is more likely that i will be changeing the bins rather than thae classes, and u can just download the bins. gat Stephen Wynne wrote: > I just wanted to check if you were tracking this discussion > on [EMAIL PROTECTED]
RE: install JDK without AWT ? [ no x11 ]
This is why I don't like rpm's. On Thu, 13 Aug 1998 [EMAIL PROTECTED] wrote: > | hi, > > | I am trying to get JDK, i.e. servlets up and running on my linux machine. > | From what I understand, this requires X11, as the AWT package that > comes with the > |JDK obviously requires this library. > > Do you mean that the RedHat rpm mechanism is tellig you abou this requirement. > Of course if write an applet that uses any stuff from the AWT the you > immediately > require X11. > I would say that installing JDK on a Linux system that has no X11 > installed would not cause any trouble if you write graphics Java > *applications* (not applets!!) > > Cheers, > Addy. > > | > | Is there a way to install the JDK without the requirement of having > the X11 libs, i.e. to > | install it without AWT support? > | > | Your help is highly appreciated, > | > | Patrick > >
Re: Donations of Metrolink Motif!
Uncle George wrote: > BTW, yes i'd like one copy, if its being offered? > > BUT > > I have limited disk space from the ISP ( 10 megs ) for all my web stuff, > the java port is takeing near half. they wont give more than 10 ( unless > u give more $ ) , and they enforce it as u transfer it to the ftp-only ( > to me - http to others ) available site!. The folks at voicenet.com also > are trying to enforce a limit of 250mb/month from the web site. I think > they shut down the web site if u exceed that limit. This in essence > limits access to the first 45 transfers each month. Otherwise they want > mo-money for the next gig of transfers. thats why i split the bins and > the classes - it is more likely that i will be changeing the bins rather > than thae classes, and u can just download the bins. > gat George, If you are looking for a great hosting service check out Pair Networks at www.pair.com. They are a top notch service with the best in pricing, space, traffic allowances that I think you can find anywhere. I am not associated with them at all except that we have been using their services for a couple of years with great results. K.R. > > > > > Stephen Wynne wrote: > > > I just wanted to check if you were tracking this discussion > > on [EMAIL PROTECTED] > > -- K.R. Foley Alwan, Inc. [EMAIL PROTECTED]
Re: Printing
The program works fine under Windows and Solaris. I have not personally tested it under Linux. Does the Linux JDK support printing? The error message seems to imply that it didn't come from the source in from the AWT book. Is this something you added, or does it come from the Linux port? I'm no longer on the Java-Linux mailing list, so I'm not sure if anyone else answered this for you already. Regarding printing in the JDK 1.2 API, it is much easier/cleaner to print, especially multiple pages. In fact, you can even print w/o the dialog box coming up. J Thanks for your message at 04:34 PM 8/12/98 -0700, Laura L. Evangelista: >Sir, > >I tried to run your sample application "TestPrint" but it >wouldn't print anything ... The print dialog shows up. But when I >choose "Print" from the dialog, a "Print Error" dialog shows up >with the message: > >"Could not execute print >command: [Ljava.lang.String;@80cbe12" > >This is the first time I tried the printing feature in Java >(I also tested other sample applications, but they all wouldn't >work) ... The printer (HP LaserJet 4L) is from within the (local) >network ... I am using RedHat Linux 4.2, JDK 1.1.3 ... > >I hope you can help me on this. > >Thank you. > >-- Laura > >Tidbits: >What can you say about the Printing API in JDK 1.2? > John Zukowski Focus on Java Guide / http://java.miningco.com [EMAIL PROTECTED] | [EMAIL PROTECTED] Author Java AWT Reference / Borland's JBuilder No Experience Required MageLang Institute - http://www.magelang.com Will hack Java code / book for food
Re: jikes bug
Albrecht Kleine wrote: > > FYI: jikes 0.36 (announced here on this list some weeks ago) > cannot compile next t.java file: > > -- > import java.awt.*; > import java.awt.event.*; > class t > { > public t() > { > int e = 0; > Button b = new Button(); > b.addActionListener(new ActionListener() >{ > public void actionPerformed(ActionEvent e) > { >System.out.println("actionPerformed:"+e); > } > }); > System.out.println("constructor:"+e); > } > } > --- > > Note: neither javac nor guavac1.0 (GNU) have any problems > to compile this. > > Any comments ? This is what I got: - slackguy$ jikes breaksjikes.java Found 1 semantic error compiling "breaksjikes.java": 11. public void actionPerformed(ActionEvent e) ^ *** Error: Duplicate declaration of local variable e It doesn't like the variable overriding the one in the containing class. Jikes is a lot pickier than javac; whether this is a better interpretation of the language spec I'll leave to the language lawyers. Jikes' interpretation definitely would stop a whole class of hard-to-diagnose bugs, but would be a bit limiting as well. I have witnessed a more disturbing problem with jikes that I haven't been able to duplicate with a small piece of code. I have some GUIs with multiple function buttons - kind of like the various drawing buttons in an art application. Each are valid under certain circumstances and with certain things selected, therefore there is a fair amount of disabling/enabling involved, and a good bit of event passing. If I compile with javac, it works fine; with jikes things get disabled and are never enabled. My guesses so far: 1) Jikes has different default initialization behavior 2) Jikes generates different bytecodes, which aggravates a race condition I hope to hunt it down soon; I really like jikes' speed and functionality, and don't mind its anal retentiveness. But in the meantime I'm cranking out bells and whistles... -- Paul Reavis [EMAIL PROTECTED] Design Lead Partner Software, Inc.http://www.partnersoft.com
Re: Printing
John Zukowski wrote: > Does the Linux JDK support printing? If you mean it comes with the JDK, yes ... I'm using JDK 1.1.3. > The error message seems to imply that it didn't come from the source in > from the AWT book. Is this something you added, or does it come from the > Linux port? The error did not come from the source. This error dialog is part of the Print Dialog that comes up when the getPrintJob() method is called ... (I did not change anything in the source code.) ... Right there, pjob becomes null, not giving me the chance to get into the loop following it ... > I'm no longer on the Java-Linux mailing list, so I'm not sure if anyone > else answered this for you already. My problem has not been solved yet ... I hope somebody can help me ... Printing is a real necessity ... Thank you. -- Laura John Zukowski wrote: > Thanks for your message at 04:34 PM 8/12/98 -0700, Laura L. Evangelista: > >Sir, > > > >I tried to run your sample application "TestPrint" but it > >wouldn't print anything ... The print dialog shows up. But when I > >choose "Print" from the dialog, a "Print Error" dialog shows up > >with the message: > > > >"Could not execute print > >command: [Ljava.lang.String;@80cbe12" > > > >This is the first time I tried the printing feature in Java > >(I also tested other sample applications, but they all wouldn't > >work) ... The printer (HP LaserJet 4L) is from within the (local) > >network ... I am using RedHat Linux 4.2, JDK 1.1.3 ... > > > >I hope you can help me on this. > > > >Thank you. > > > >-- Laura > > > >Tidbits: > >What can you say about the Printing API in JDK 1.2? > > > > John ZukowskiFocus on Java Guide / http://java.miningco.com > [EMAIL PROTECTED] | [EMAIL PROTECTED] > Author Java AWT Reference / Borland's JBuilder No Experience Required > MageLang Institute - http://www.magelang.com > Will hack Java code / book for food
Re: Printing
Thanks for your message at 10:51 AM 8/14/98 -0700, Laura L. Evangelista: >John Zukowski wrote: > >> Does the Linux JDK support printing? > >If you mean it comes with the JDK, yes ... I'm using JDK 1.1.3. That's not what I am asking. The Linux JDK is a port. They have to add some of their own stuff to make it work. It isn't the real thing from Sun. Did the people who created the port, add the printing support. > >> The error message seems to imply that it didn't come from the source in >> from the AWT book. Is this something you added, or does it come from the >> Linux port? > >The error did not come from the source. This error dialog is part of the >Print Dialog that comes up when the getPrintJob() method is called ... (I did >not change anything in the source code.) ... Right there, pjob becomes null, >not giving me the chance to get into the loop following it ... That sounds like whoever created the port didn't add support for printing then, if the JDK/JRE itself is throwing the exception. J John Zukowski Focus on Java Guide / http://java.miningco.com [EMAIL PROTECTED] | [EMAIL PROTECTED] Author Java AWT Reference / Borland's JBuilder No Experience Required MageLang Institute - http://www.magelang.com Will hack Java code / book for food
Re: Signing Applets
> I just checked over the stuff that I did, and I used Sun's javakey. Someone told me that javakey uses DSA algorithm, which Netscape (what I'm using) doesn't understand ... > Make sure you have loaded myCert into your browser as a Certificate > Authority. How? > When you run signtool -L, you should see myCert appear as one of the certificates. Yes ... there's my certificate, with an asterisk (*) ... But when I run signtool -l, I get: using certificate directory: /home/lala/.netscape Object signing certificates --- MyCert ++ Error ++ Unable to find issuer certificate --- For a list including CA's, usr "signtool -L" > If you have problems with the "native Netscape" approach, you could > make sure your applet runs in appletviewer, use javakey to sign it, After signing (using signtool), I tried appletviewer but caught exceptions: sun.security.pkcs.ParsingException: IOException, sun.applet.AppletSecurityException: checkread I look into javakey ... > Sorry I can't tell you more without web access. It's okay ... You're time and help is very much appreciated ... :-) Than'x! -- Laura
"Tried to free bogus memory"...
I am using jdk1.1.6 v2, and I get the message "Tried to free bogus memory , ignored" from time to time. Is this fatal, or can i just ignore as it says? ;) Regards, Mats Petersson
Re: Signing Applets
Hi Also the details of signing an applet are different depending on which browser you want your applet to run in. IE needs Authenticode certificates and a.CAB file, Netscape needs an Object Signing Certificate and a.jar file. If you need your applet to access a resource on the client machine the details are even more browser specific. You can find more info at the Netscape and Microsoft sites. Regards, Ravi trevor wrote... > >Absolutely not! What sort of security would there be if anyone could sign >any old applet? That would defeat the entire purpose of signing. I suggest >you read up on what exactly code-signing is. Check out the security sites >at javasoft.com, microsoft.com, and verisign.com. > >Trevor > > >On Wed, 12 Aug 1998, Laura L. Evangelista wrote: > >> Java People, >> >> Can I sign an applet (JAR file) without "purchasing"/needing >> a certificate (digital ID)? >> >> -- Laura >> >> > > __ Get Your Private, Free Email at http://www.hotmail.com
Re: Socket connect timeout?
A. Craig West wrote: > This thread isn't exactly topical to Java-Linux, but I'll throw in my 2 > bits to bring > it some closure, I hope. I apologize for posting a non-Java-Linux topic, but I have asked this question to all places I know that there are experienced Java programmers. > It is true that Socket.setSoTimeout(int timeout) causes reads to throw an > InterruptedIOException, but the problem he is trying to solve is that it > does NOT cause connects to throw an exception, or timeout in any other way. > It will timeout eventually, depending on the OS, but there is no control > over it. > When I need to do this, I use another thread to check the timeout, and > if it has expired, I close the Socket. That tends to work to unblock the > thread doing the connect. How do you close the socket? The only way to connect is using the socket constructor.. ..so how can you have a reference to invoke close() on before the actual constructor is finished. > Actually, there is an On-Topic question for you... Does closing the > Socket on the Linux JDK port cause the connect statement to throw an > Exception of some kind? > I've never tried it in Linux... I fail to see how you can have tried it at all (see above). > > Juergen Sonnauer wrote: > > > > What about Socket.setSoTimeout(int timeout)? Should throw a > > InterruptedIOException after specified milliseconds on read method. > > /Per Widerlund
install JDK without AWT ? [ no x11 ]
hi, I am trying to get JDK, i.e. servlets up and running on my linux machine. From what I understand, this requires X11, as the AWT package that comes with the JDK obviously requires this library. Is there a way to install the JDK without the requirement of having the X11 libs, i.e. to install it without AWT support? Your help is highly appreciated, Patrick // written by patsch 08/98 var bIsOK = 0; if (window.navigator.appVersion.indexOf("MSIE 4.") >= 0) { bIsOK = 1; } var nFontSize1 = 1; var nFontSize2 = 1; var nFontSize3 = 1; var nFlipStarted = 0; var nFlipRunning1 = 0; var nFlipRunning2 = 0; var nFlipRunning3 = 0; var nMaxFontSize = 10; var nDelay = 50; Patrick Dockhorn BROKAT: Managing Consultant Voice: +49-711-7884-4324 TOMORROW'S Professional Services Fax: +49-711-7884-4771 SOLUTIONS BROKAT Infosystems AG EMail: [EMAIL PROTECTED] TODAY. function xflip() { if (bIsOK) { if (!nFlipStarted) { nFlipStarted=1; nFlipRunning1=1; nFlipRunning2=0; nFlipRunning3=0; nFontSize1 = 1; nFontSize2 = 1; nFontSize3 = 1; xbrokat.style.color = "#ff"; xbrokat.style.fontWeight = "bold"; flip(); } } else { // xbrokat.style.color ="#ff"; // xbrokat.style.fontWeight = "bold"; } } function flip() { if (bIsOK) { if ((nFontSize1 < nMaxFontSize) && (nFlipRunning1)) { nFontSize1++; xtomorrow.style.fontSize = nFontSize1 + "pt"; if ((nFontSize1 > 6) && (!nFlipRunning2)) { nFlipRunning2=1; } } else { nFlipRunning1=0; } if ((nFontSize2 < nMaxFontSize) && (nFlipRunning2)) { nFontSize2++; xsolution.style.fontSize = nFontSize2 + "pt"; if ((nFontSize2 > 6) && (!nFlipRunning3)) { nFlipRunning3=1; } } else { nFlipRunning2=0; } if ((nFontSize3 < nMaxFontSize) && (nFlipRunning3)) { nFontSize3++; xtoday.style.fontSize = nFontSize3 + "pt"; } else { nFlipRunning3=0; } if ((nFlipRunning1) || (nFlipRunning2) || (nFlipRunning3)) { setTimeout("flip();",nDelay); } else { nFlipStarted=0; xbrokat.style.color = "#404040"; xbrokat.style.fontWeight = "normal"; } } }
Re: install JDK without AWT ? [ no x11 ]
On Thu, 13 Aug 1998, Patrick Dockhorn wrote: > hi, > > I am trying to get JDK, i.e. servlets up and running on my linux > machine. From what I understand, this requires X11, as the AWT package > that comes with the JDK obviously requires this library. If your servlets don't reference any of the classes in the AWT package then I can't see you having problems if X11 isn't installed - unless I am mistaken. However the REAME.linux in the jdk1.1.6 package mentions that by setting the NS_JAVA environment variable you will ... "...get the much smaller nonstatically linked Java interpreter. You will not be able to run any AWT based applications with the nonstatically linked java interpreter, so only set NS_JAVA for non-GUI based applications." Hope this helps. Chris Dynamic Solutions Pty Ltd http://www.dynamic.net.au 414 Gilbert Road [EMAIL PROTECTED] Preston, Victoria 3072 61 3 94718224 - voice Australia 61 3 94711622 - fax
JDK 1.2 for Alpha-Linux?
Does anyone know of plans to do an Alpha-Linux port of the JDK 1.2 or even the 1.1.6? Thanks, Rich Edwards Senior Software Engineer Codonics, Inc. e-mail: [EMAIL PROTECTED]
Re: Socket connect timeout?
You are, of course, correct about this. I seem to have confused myself in here somewhere. I must have done something like this in C code or something. Now THAT's off-topic :-) I'm sure this close trick applied to something I've done in Java, but I wish I could remember what. As far as actually solving your problem goes, I believe that Thread.interrupt will actually be useful for this kind of thing in 1.2. Of course, first we need a 1.2 port for Linux... Per Widerlund wrote: > How do you close the socket? The only way to connect is using the socket > constructor.. ..so how can you have a reference to invoke close() on > before > the actual constructor is finished. -- Craig West Ph: (905) 821-8300 | It's not a bug, Pulse Microsystems Fx: (905) 821-7331 | It's a feature... 2660 Meadowvale Blvd, Unit #10 | [EMAIL PROTECTED] Mississauga, Ont., Canada L5N-6M6 | [EMAIL PROTECTED]
Re: install JDK without AWT ? [ no x11 ]
[posted and e-mailed] Patrick Dockhorn wrote: > hi, > > I am trying to get JDK, i.e. servlets up and running on my linux machine. > From what I understand, this requires X11, as the AWT package that comes with the >JDK obviously requires this > library. > > Is there a way to install the JDK without the requirement of having the X11 libs, >i.e. to install it without AWT > support? > > Your help is highly appreciated, > > Patrick > Patrick Dockhorn Hi- I hear that if you run servlets that make AWT calls (e.g., transfer images) you still require X. However, you can run a dummy X server, such as Xvfb: --- XVFB(1) XVFB(1) NAME Xvfb - virtual framebuffer X server for X Version 11 SYNOPSIS Xvfb [ option ] ... DESCRIPTION Xvfb is an X server that can run on machines with no dis- play hardware and no physical input devices. It emulates a dumb framebuffer using virtual memory. ... --- There's one other such, but I can't offhand recall its name. HTH. Bob L. -- Robert Lynch-Berkeley CA [EMAIL PROTECTED] http://www.best.com/~rmlynch/
Wrong time in Clock demo
Hello! I just downloaded JDK v1.1.6 v2, and I have tried some of the demos included. Most of them work fine, except for the "Clock" demo, which shows completely wrong time when running it with appletviewer. In Netscape it works as it should, though. I guess there has to be something with appletviewer, since it works ok in NS. Any help appreciated. Regards, Mats Petersson
Can´t load a RTF-Document in JEditorPane
Hi, To load a RTF-document, I tried to use an JEditorPane and invoke the read(Reader,null) method of its superclass JTextPane. But there is allways an IOException: ´RFT is an 8-Bit format´. I tried to build the Reader with: InputStreamReader(new FileInputStream(fileName),encoding). I tried every BytetoChar-Adapter I could find in the classes.zip, but it don´t work (see example attached). Does the read method require a special second parameter? Can´t find any Documention about this parameter. Thank you for any help, Bernhard import com.sun.java.swing.*; import com.sun.java.swing.text.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.io.*; public class RTFTest extends JFrame{ public static int WIDTH = 500; public static int HEIGHT = 500; JEditorPane rtfPane; public static String docName="test.rtf"; String isoType; String[] formats={"Default","ISO8859_1","SingleByte","DoubleByte","DBCS_ASCII","DBCS_EBCDIC","EUC","ASCII","Big5","Cp037","Cp1006","Cp1025","Cp1026","Cp1046","SJIS","Cp1097","Cp1098","Cp1112","Cp1122","Cp1123","Cp1124","Cp1250","Cp1251","Cp1252","Cp1253","Cp1254","Cp1255","Cp1256","Cp1257","Cp1258","Cp1381","Cp1383","Cp273","Cp277","Cp278","Cp280","Cp284","Cp285","Cp297","Cp33722","Cp420","Cp424","Cp437","Cp500","Cp737","Cp775","Cp838","Cp850","Cp852","Cp855","Cp856","Cp857","Cp860","Cp861","Cp862","Cp863","Cp864","Cp865","Cp866","Cp868","Cp869","Cp870","Cp871","Cp874","Cp875","Cp918","Cp921","Cp922","Cp930","Cp935","Cp937","Cp939","Cp942","Cp942C","Cp943","Cp943C","Cp948","Cp949","Cp949C","Cp950","Cp970","JIS0201","JIS0208","JIS0212","EUC_CN","EUC_JP","EUC_KR","EUC_TW","GBK","ISO2022","ISO2022CN","ISO2022JP","ISO2022KR","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","JISAutoDetect","Johab","KOI8_R","MS874","MS936","MS950","MacArabic","MacCentralEurope","MacCroatian","MacCyrillic","MacDingbat","MacGreek","MacHebrew","MacIceland","MacRoman","MacRomania","MacSymbol","MacThai","MacTurkish","MacUkraine","TIS620","UTF8","Unicode","UnicodeBig","UnicodeLittle"}; public RTFTest(String title){ super(title); rtfPane = new JEditorPane(); rtfPane.setContentType("application/rtf"); //rtfPane.read(openFile(docName),null); rtfPane.setEditable(false); int len = formats.length; boolean res = false; for (int i=0;i 0) { docName = args[0]; } RTFTest testFrame = new RTFTest("Test für RTF-Dokumente"); testFrame.addWindowListener(new WindowAdapter(){ public void windowClosing(WindowEvent e){ System.exit(0); } }); testFrame.setSize(WIDTH,HEIGHT); testFrame.setVisible(true); }// main }
jikes bug
Hi, FYI: jikes 0.36 (announced here on this list some weeks ago) cannot compile next t.java file: -- import java.awt.*; import java.awt.event.*; class t { public t() { int e = 0; Button b = new Button(); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.out.println("actionPerformed:"+e); } }); System.out.println("constructor:"+e); } } --- Note: neither javac nor guavac1.0 (GNU) have any problems to compile this. Any comments ? Albrecht (author of TYA-JIT) ftp://gonzalez.cyberus.ca/pub/Linux/java/tya1.0.tgz
Re: Donations of Metrolink Motif!
K.R. Foley wrote: > George, > If you are looking for a great hosting service check out Pair Networks at > www.pair.com. They are a top notch service with the best in pricing, > space, traffic allowances that I think you can find anywhere. I am not > associated with them at all except that we have been using their services > for a couple of years with great results. > > K.R. > > > Hmm.., How about the browsing speed of this site in Asia? I know some www providers have a very poor performance when the site access by asian user although they are perfect in area. I also wonder to know if any www providers have Java side support on their server, say, JRun or JServer? Thanks. Gao Lei.
Wrong time in Clock demo (fwd)
Hello! I just downloaded JDK v1.1.6 v2, and I have tried some of the demos included. Most of them work fine, except for the "Clock" demo, which shows completely wrong time when running it with appletviewer. In Netscape it works as it should, though. I guess there has to be something with appletviewer, since it works ok in NS. Any help appreciated. Regards, Mats Petersson
Re: Java classes graphically
Thank you all for a response. However, the whole thing was a false alarm. The interview had *nothing*, I mean N O T H I N G to do with Java. Oh well. At least I know Java now. :) "Teach yourself Java in 17 hours". Anyway, so I got the "Java Developers 1998 Almanach". A neat, complete, nice reference. Includes 1.2. It contains two-line description of each class and interface, plus shows all members. No explanation for members, only indication of compliance and of type (staic, final, etc.). I would say that this book, the online Java tutorial (www.java.sun.com) and going through the given examples gets one reasonably ready for the Java world. Thank you all again, Jan -- Gospel of Jesus is the saving power of God for all who believe -- Jan Vicherek ## To some, nothing is impossible. ## www.ied.com/~honza >>>Free Software Union President ... www.fslu.org<<< Interactive Electronic Design Inc.-#-PGP: finger [EMAIL PROTECTED]
Time zone handling broken in Linux java?
Hello! I recently downloaded JDK 1.1.6 v2, and I have problems getting it correctly interpret the timezone setting on my machine. Since I live in Sweden, my timezone is "MET DST", however this seems to confuse java. The time returned from Date() is 2 1/2 hours ahead of the local time (?). However, if I make the timezone GMT or UTC or something more "common", it seems to work as it should. Still, it doesn't recognize any offset, i.e. "GMT +2" or something similar. Is this a linux specific quirk, or is it a general bug in java? Below is a small test program to print out the current date and time for reference. It would be nice if someone else living in my area and using the same timezone could try this out and report to me how it goes. I am using linux 2.0.33, gcc 2.7.2.3 and libc 5.4.44 if that would make any difference. Thankful for any help. Mats Petersson -- import java.util.*; import java.text.*; class DateTest { public static void main (String args[]) { Date dummy = new Date(); SimpleDateFormat df = new SimpleDateFormat("EEE MMM dd HH:mm:ss "); String curdate = df.format(dummy); System.out.println(curdate); } } --