Recompilation only when needed

1999-04-06 Thread Jonas Holmberg

I have been trying to get javac (1.1.7 for linux) to recompile only
those java-files newer than their class-files. Sun's documentation tells
me that the "most-recent-change-times" of the files are checked if both
the java- and the class-files are found in -classpath or CLASSPATH, but
it doesn't seem to work. Is this a problem with the linux port of the
javac in JDK1.1.7 or am I doing something wrong? I'm trying to get rid
of a big nasty makefile which doesn't work properly so any help is
appreciated. Have I got it right that one shouldn't have to use make,
only javac, to get proper recompilation?

/Jonas Holmberg, Forget-it AB


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: indeo avi module & rtf-reader for java-linux?

1999-05-27 Thread Jonas Holmberg

Bruno Boettcher wrote:

> 2. question didn't found anything in java to display rtf format, maybe
> somebody could redirect me in the right direction? This should surely exist...

javax.swing.JEditorPane should be able to display rtf, I think. I haven't tried
it myself, though.

/Jonas Holmberg


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



How to trap signals?

1999-06-08 Thread Jonas Holmberg

How can I make a method being called before the jvm exits when killing
the jvm (or pressing Ctrl-C if its in the foreground)?

I suppose a pure java way is out of the question? What is the least OS
dependant way?

What I want is to do some cleanup before stopping a server written in
java only. And it must perform the cleanup if the computer is shut down,
i.e. when the jvm is killed.

Thanks for a great mailing list!
/Jonas Holmberg, Forget-it AB


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: serial connection.

1999-08-31 Thread Jonas Holmberg

Hi,
I think what you're looking for is the JavaComm for Linux
(http://www.interstice.com/~kevinh/linuxcomm.html). I've tried it very
recently (talking to a modem through /dev/ttyS0) and rxtx version 1.3-4
worked fine with Redhat 6.0, except I didn't get it to find all of my
serial ports. 

The machine I used had about twenty serial ports and
javax.comm.CommPortIdentifier.getPortIdebtifiers() only found
/dev/ttyS[0-3] (the "internal" ports on my main board). It didn't find
for example /dev/ttyD0 which is the first "external" serial port. It did
however find /dev/ttyd0 (and a lot of other /dev/tty-files that don't
even exist) which I couldn't talk to. I can only use /dev/ttyD0 if i
rename it to /dev/ttyS[0-3], but that's no solution, of course, since I
still can't use more than four ports. Has anyone else had this problem?

I also tried it on RH5.0, which has a older c-lib, but then I had to use
rxtx version 1.2-2, and it was much, much slower and I didn't get it to
work properly. So I recommend using libc 2.1 (e.g. RH6.0) and rxtx
1.3-4.

/Jonas Holmberg, Forget-IT AB



Wayne wrote:
> 
> Hello,
> Sometime ago I seen an API for serial connection, but when I went
> to the blackdown site I couldn;t find anything. Does anyone know
> if such a API exist? I need to write some code that talks to a CNC
> machine.
> TIA.
> Wayne
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]