Using JDK1.4.0 with Jswat

"Martin Kemp" <[email protected]>
Newsgroups gmane.comp.java.jswat.user
Message-ID <[email protected]>
Dear all,

This is a quick note to anyone that has not managed to get jswat to work
with jdk1.4.x using win32 on NT4.

I was originally getting a slew of errors, originating from
sun.awt.windows.Win32DDRenderer.doFillRectDD(Native Method). I tried a
couple of versions of jswat - 2.5, 2.6 and 1.5. Each of them gave the same
error, which suggested that it was down to 1.4. I tried it with 1.3 and it
worked fine. I then looked on Google groups and found that there is an extra
switch that you can put in that turns off the win32 DirectX stuff - it seems
that there is a bug in 1.4 (I'm currently using 1.4.1-beta-b14) that means
it's not compatible with other programs that are using DirectX.

The switch is:

-Dsun.java2d.noddraw=true

So now my startup line is:

javaw -Dsun.java2d.noddraw=true -jar "c:\program files\jswat\jswat2.jar"

I hope that helps some people out that were keen to use the hotswap
facility - Nathan, it works a treat!

Martin Kemp
Software Engineer, Quintic, Cambridge UK
Tel: +44 (0) 1223 448752
Email: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.