From owner-freebsd-java Sun Apr 2 6:31:15 2000 Delivered-To: freebsd-java@freebsd.org Received: from fdy2.demon.co.uk (fdy2.demon.co.uk [194.222.102.143]) by hub.freebsd.org (Postfix) with ESMTP id EFBC937BCF7 for ; Sun, 2 Apr 2000 06:31:09 -0700 (PDT) (envelope-from rjs@fdy2.demon.co.uk) Received: (from rjs@localhost) by fdy2.demon.co.uk (8.8.8/8.8.8) id OAA00544; Sun, 2 Apr 2000 14:19:02 +0100 (BST) (envelope-from rjs) Date: Sun, 2 Apr 2000 14:19:02 +0100 (BST) Message-Id: <200004021319.OAA00544@fdy2.demon.co.uk> From: Robert Swindells To: fuyuhik8@is.titech.ac.jp Cc: freebsd-java@freebsd.org In-reply-to: <20000402041626X.fuyuhik8@is.titech.ac.jp> (message from Maruyama Fuyuhiko on Sun, 02 Apr 2000 04:16:26 +0900) Subject: Re: Pre-alpha JDK 1.2.2 patches -- update Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >I found another problem with pre-alpha patches. It may be a >Motif-side problem. I'm building JDK with Motif-2.1.20 by Software2Go >and found the awt doesn't work. To write more precicely, the Motif >library I use needs libXp linked with, but current JDK patches doesn't >so. I don't know whether this problem appear with another Motif or >Lesstif. This can be simply resolved by adding -lXp in OTHER_LDLIBS >line at build/freebsd/sun/awt/GNUmakefile: >OTHER_LDLIBS = -lmlib_image$(SUFFIX) $(LIBCXX) $(JVMLIB) -lXm -lXp -lXt -lXext -lXtst -lX11 -lm I needed to do the same for Metro Link Motif-2.1.10. >If I link libXp.so into libawt.so, sample programs seem to work at >least for a few minutes. Some minutes after, programs went away ;-< >I think current porting have some serious problems on multi-threading >support. But at this time, I don't know those precicely. I don't get that far. I can run some of the demo applets, but all of the JFC demos give errors. The one from Metalworks is: Unexpected error. Program Terminated java.lang.IllegalArgumentException: Raster ShortInterleavedRaster: width = 64 height = 64 #numDataElements 1 is incompatible with ColorModel DirectColorModel: rmask=7c00 gmask=3e0 bmask=1f amask=0 at java.awt.image.BufferedImage.(BufferedImage.java:521) at sun.awt.image.OffScreenImage.(OffScreenImage.java:70) at sun.awt.motif.MComponentPeer.createImage(MComponentPeer.java:310) at java.awt.Component.createImage(Component.java:2095) at javax.swing.plaf.metal.BumpBuffer.(MetalBumps.java:152) at javax.swing.plaf.metal.MetalBumps.createBuffer(MetalBumps.java:65) at javax.swing.plaf.metal.MetalBumps.setBumpColors(MetalBumps.java:100) at javax.swing.plaf.metal.MetalBumps.(MetalBumps.java:57) at javax.swing.plaf.metal.MetalBorders$ToolBarBorder.(MetalBorders.java:281) at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:376) at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:65) at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:714) at javax.swing.UIManager.setLookAndFeel(UIManager.java:363) at javax.swing.UIManager.setLookAndFeel(UIManager.java:390) at Metalworks.main(Metalworks.java:48) I have spent this morning editing font.properties to work with the URW fonts. I will post it if people are interested. Robert Swindells To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message