media framework query

2000-01-21 Thread Jalaluddin Riaz

hi,
does JMF2.0 api from sun work on linux. it does not on my linux box but 
works in windoze. what is wrong. java.lang.Reflect.RemoteInvocationException 
occurs. pls help me.
thanx.
__
Get Your Private, Free Email at http://www.hotmail.com


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



Re: 1.2pre2: no green threads with JIT on non-SMP?

2000-01-21 Thread Peter Pilgrim



[EMAIL PROTECTED] wrote:
> 
> Hi,
> on a Suse 6.3 installation (kernel 2.2.13) with only one cpu the
> 1.2pre2 doesn't run with -green and JIT; -green works only
> without JIT. Native threads work with and without JIT. Any idea
> what's wrong?

Is this Release Candidate 3 ?

Yes then look at the status and see G/!J part that are not green!
http://www.blackdown.org/java-linux/jdk1.2-status/jck-status.html

"Currently, we are running the JCK only on green and native threads with the JIT
turned off. Eventually, we will ensure that we
can run and pass all of the JCK tests on both green and native threads, with and
without the JIT. The table shows this by "G"
(green threads), "N" (native threads), "J", (using JIT) and "!J" (no JIT). "

-- 

Adios
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
T H ER E D   A R M Y! ! !   http://www.manutd.com/


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



Re: swing on suse linux on ldk1.2

2000-01-21 Thread Peter Pilgrim

[EMAIL PROTECTED] wrote:
> 
> On Thu, 20 Jan 2000 [EMAIL PROTECTED] wrote:
> 
> > does any one know why swing is not working on a suse linux box with
> > jdk1.2?
> > generally what do i need to do to run swing with jdk1.2
> 
> What version of SuSE are you using? When I tried the most recent version
> from blackdown on my 6.3 box last week, Swing ran not just first time, but
> also faster than ever before.
> 
> I'll soon know if it still works, as I've got a lot of JDBC & some Swing
> development to do from this weekend.
> 
Would mind keeping us informed?

I am waiting for SuSE 7.0. Assuming there is a problem perhaps we might
influence SuSE to added any fixes before 7.0 is "finalized". 
(No pun intended.)

-- 

Adios
Peter

-
import std.Disclaimer;  // More Java for your Lava, Mate.
T H ER E D   A R M Y! ! !   http://www.manutd.com/


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



Re: 1.2pre2: no green threads with JIT on non-SMP?

2000-01-21 Thread Martin Schröder

On 2000-01-21 11:31:29 +, Peter Pilgrim wrote:
> [EMAIL PROTECTED] wrote:
> > 1.2pre2 doesn't run with -green and JIT; -green works only
> 
> Is this Release Candidate 3 ?

build Linux_JDK_1.2_pre-release-v2 -- No.

And if you ask why we use this: It's the only Java2 running with
2.0x kernels.

Best regards
Martin
-- 
  Martin Schröder, [EMAIL PROTECTED]
ArtCom GmbH, Grazer Straße 8, D-28359 Bremen
   Voice +49 421 20419-44 / Fax +49 421 20419-10


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



Re: 1.2pre2: no green threads with JIT on non-SMP?

2000-01-21 Thread Oliver Fels

On 21 Jan 00, at 13:09, Martin Schröder wrote:
 
> build Linux_JDK_1.2_pre-release-v2 -- No.
> 
> And if you ask why we use this: It's the only Java2 running with
> 2.0x kernels.

And the last one actually running on a non glib2.1.2 system.

Oliver
___
S.E.S.A. Software und Systeme AG
[EMAIL PROTECTED]   Geschäftsbereich Stuttgart
http://www.sesa.de Oliver Fels
Tel. +49-711-139935-596Mittlerer Pfad 2
Fax. +49-711-139935-510D-70499 Stuttgart
___


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



Re: 1.2pre2: no green threads with JIT on non-SMP?

2000-01-21 Thread Martin Schröder

On 2000-01-21 13:46:30 +0100, Oliver Fels wrote:
> On 21 Jan 00, at 13:09, Martin Schröder wrote:
> > build Linux_JDK_1.2_pre-release-v2 -- No.
> > 
> > And if you ask why we use this: It's the only Java2 running with
> > 2.0x kernels.
> 
> And the last one actually running on a non glib2.1.2 system.

Of course. There are customer who don't want to update their
system every six months. :-)

Best regards
Martin
-- 
  Martin Schröder, [EMAIL PROTECTED]
ArtCom GmbH, Grazer Straße 8, D-28359 Bremen
   Voice +49 421 20419-44 / Fax +49 421 20419-10


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



Re: Terrible native thread performance

2000-01-21 Thread Marek Gmyrek

On Fri, 21 Jan 2000, Chris Kakris wrote:

-->> Processor utilization is not so bad, until I move a window and a window
-->> in background has to repaint itself. Repainting takes a time of ca. a few
-->> seconds. During that time the processor is busy almost to 100%.
-->
-->Are you by any chance using enlightenment?  Have set some fancy window
-->options, like move methods, window sliding effects, etc.  Have you tried
-->the "reduce refresh" option?

By 'background' I meant a Java Frame (Window). So, eg. I have the main
frame of my aplication an a dialog box. Moving dialog makes the main
frame repaint itself. This takes particularly much time. Generally, the
same Java application (both AWT and Swing) performs very poorly under
JDK1.2 RC3. With jdk1.1.x performance is very good.

So the problem should not have anything to do with my window system (KDE).

Marek.


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



Re: Terrible native thread performance

2000-01-21 Thread Nathan Meyers

Marek Gmyrek wrote:
> 
> On Fri, 21 Jan 2000, Chris Kakris wrote:
> 
> -->> Processor utilization is not so bad, until I move a window and a window
> -->> in background has to repaint itself. Repainting takes a time of ca. a few
> -->> seconds. During that time the processor is busy almost to 100%.
> -->
> -->Are you by any chance using enlightenment?  Have set some fancy window
> -->options, like move methods, window sliding effects, etc.  Have you tried
> -->the "reduce refresh" option?
> 
> By 'background' I meant a Java Frame (Window). So, eg. I have the main
> frame of my aplication an a dialog box. Moving dialog makes the main
> frame repaint itself. This takes particularly much time. Generally, the
> same Java application (both AWT and Swing) performs very poorly under
> JDK1.2 RC3. With jdk1.1.x performance is very good.

Right. The JDK1.2 Graphics2D performance has lots of problems, one of
them being excessive numbers of repaints... especially when you drag
windows. At the risk of sounding like a plug, chapter 59 of "Java
Programming on Linux" has a project that addresses that problem with a
couple of techniques - backing store and event coalescence.

The CD-ROM for the book is now online; you can view the contents at
http://www.javalinux.net/JavaLinux/CDROM/ - look for the "BackingStore"
project. You won't get the descriptive verbiage that appears in the
book, but you'll find sources, binaries, and brief instructions on how
to run the project examples.

Nathan Meyers
[EMAIL PROTECTED]


> 
> So the problem should not have anything to do with my window system (KDE).
> 
> Marek.
> 
> --
> 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]



blackdown jdk version..libpthread.so

2000-01-21 Thread Raj Patel

Hi everybody,
I had some problem with threading using JNI
application and i decided to try newer version of jdk.  I downloaded
jdk1.2.2 for i386 rc3 version and file called

jdk-1.2.2-RC3-linux-i386.tar.bz2

After i installed it when i tried to compile and run my application i
got following error!


/usr/local/download/jdk1.2.2/bin/i386/native_threads/javac: error in
loading shared libraries:
/usr/local/download/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so:
symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0
with link time reference
/usr/local/download/jdk1.2.2/bin/i386/native_threads/javah: error in
loading shared libraries:
/usr/local/download/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so:
symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0
with link time reference


When tried to run i got,

/usr/local/download/jdk1.2.2/bin/i386/native_threads/java: error in
loading shared libraries:
/usr/local/download/jdk1.2.2/jre/lib/i386/native_threads/libhpi.so:
symbol sem_init, version GLIBC_2.1 not defined in file libpthread.so.0
with link time reference

Can anyone tell what's going on.  I have Linux2.2 (Redhat 6.0) as an
operating system.  I am able to run older version jdk1.2pre-v2 without
trouble.

-Raj


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



Re: HELP: jdk122rc2 swing stuff doesn't work

2000-01-21 Thread Alistair Bayley

Peter, it looks like I have the same build as you.
Running as root makes no difference (as expected).
I've tried messing around with CLASSPATH etc to no effect.
Here's my test program; it produces diffeent output from before
but the point is made. I think there's a problem with the
Pluggable L+F code.

What's more annoying is that it appears as though not all of
the source code is distributed (I've unpacked the src.jar file).
I can't find the sun.awt classes; I guess we're not meant to view them.


 SwingTest.java:
import javax.swing.*;

public class SwingTest {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
} catch (Exception e) { e.printStackTrace(); }
JFrame frame = new JFrame("SwingTest");
frame.setVisible(true);
}
}


 output:
Font specified in font.properties not found 
[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
...
java.lang.IllegalArgumentException: Raster IntegerInterleavedRaster: width = 64 height 
= 64 #Bands = 3 #DataElements 1 xOff = 0 yOff
= 0 dataOffset[0] 0 is incompatible with ColorModel DirectColorModel: rmask=ff 
gmask=ff00 bmask=ff 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:2101)
 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 SwingTest.main(SwingTest.java:6)
Exception in thread "main" java.lang.NullPointerException
 at java.util.Hashtable.get(Hashtable.java, Compiled Code)
 at javax.swing.UIDefaults.get(UIDefaults.java, Compiled Code)
 at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java, Compiled Code)
 at javax.swing.UIDefaults.getUIClass(UIDefaults.java:306)
 at javax.swing.UIDefaults.getUI(UIDefaults.java:375)
 at javax.swing.UIManager.getUI(UIManager.java:568)
 at javax.swing.JPanel.updateUI(JPanel.java:110)
 at javax.swing.JPanel.(JPanel.java:70)
 at javax.swing.JPanel.(JPanel.java:100)
 at javax.swing.JRootPane.createGlassPane(JRootPane.java:224)
 at javax.swing.JRootPane.(JRootPane.java:181)
 at javax.swing.JFrame.createRootPane(JFrame.java:154)
 at javax.swing.JFrame.frameInit(JFrame.java:147)
 at javax.swing.JFrame.(JFrame.java:137)
 at SwingTest.main(SwingTest.java:8)



If you recall, this was the example I posted previously:

 run Stylepad example:
% java -jar Stylepad.jar

 Stylepad output:
 Exception in thread "main" java.lang.Error: can't load 
javax.swing.plaf.metal.MetalLookAndFeel
 at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:856)
 at javax.swing.UIManager.initialize(UIManager.java:926)
 at javax.swing.UIManager.maybeInitialize(UIManager.java:948)
 at javax.swing.UIManager.getUI(UIManager.java:559)
 at javax.swing.JPanel.updateUI(JPanel.java:110)
 at javax.swing.JPanel.(JPanel.java:70)
 at javax.swing.JPanel.(JPanel.java:100)
 at javax.swing.JRootPane.createGlassPane(JRootPane.java:224)
 at javax.swing.JRootPane.(JRootPane.java:181)
 at javax.swing.JFrame.createRootPane(JFrame.java:154)
 at javax.swing.JFrame.frameInit(JFrame.java:147)
 at javax.swing.JFrame.(JFrame.java:124)
 at Stylepad.main(Stylepad.java:73)


- Original Message -
From: Andre Lewin <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 21, 2000 3:35 PM
Subject: HELP: jdk122rc2 swing stuff doesn't work


> Hello Alistair
> I have the same problem with jdk122rc3.
> Do you know an solution for this problem ?
>
> Thanks
> Andre
>


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



Re: HELP: jdk122rc2 swing stuff doesn't work

2000-01-21 Thread A. Scott White

I'm running Debian GNU/Linux 2.1 with kernel version 2.0.36
My /lib directory contains libc.so.6 and libc-2.0.7.so

I have a Java application I've written on NT using jdk1.2.2. I want to
run this on the aforementioned Linux box.

I do not want to upgrade my kernel, my glibc or my distro at this
point. Where can I get a JDK1.2.2 that will run on my current setup?

Thanks.

==
A. Scott White  ([EMAIL PROTECTED])
Director, IS - Healthcare Solutions Group
Affiliated Computer Services, Inc.



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



Re: HELP: jdk122rc2 swing stuff doesn't work

2000-01-21 Thread Nathan Meyers

On Fri, Jan 21, 2000 at 10:52:52PM -, Alistair Bayley wrote:
> Peter, it looks like I have the same build as you.
> Running as root makes no difference (as expected).
> I've tried messing around with CLASSPATH etc to no effect.
> Here's my test program; it produces diffeent output from before
> but the point is made. I think there's a problem with the
> Pluggable L+F code.

The AWT doesn't work with all X server depths and visuals... especially
those not found on Solaris. In the past, many people have reported success
by playing with some of the X server startup settings. You may want to
browse past mail on the topic, or look at chapter 56 of "Java Programming
on Linux." I think the situation is supposed to be improving in future
JDK releases.


> What's more annoying is that it appears as though not all of
> the source code is distributed (I've unpacked the src.jar file).
> I can't find the sun.awt classes; I guess we're not meant to view them.

Not without signing the Sun Community Source License. Any notion that
the JDK is open source will be quickly cured by reading the license :-).

Nathan Meyers
[EMAIL PROTECTED]
http://www.javalinux.net


> 
> 
>  SwingTest.java:
> import javax.swing.*;
> 
> public class SwingTest {
> public static void main(String[] args) {
> try {
> 
>UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
> } catch (Exception e) { e.printStackTrace(); }
> JFrame frame = new JFrame("SwingTest");
> frame.setVisible(true);
> }
> }
> 
> 
>  output:
> Font specified in font.properties not found 
>[--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
> ...
> java.lang.IllegalArgumentException: Raster IntegerInterleavedRaster: width = 64 
>height = 64 #Bands = 3 #DataElements 1 xOff = 0 yOff
> = 0 dataOffset[0] 0 is incompatible with ColorModel DirectColorModel: rmask=ff 
>gmask=ff00 bmask=ff 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:2101)
>  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 SwingTest.main(SwingTest.java:6)
> Exception in thread "main" java.lang.NullPointerException
>  at java.util.Hashtable.get(Hashtable.java, Compiled Code)
>  at javax.swing.UIDefaults.get(UIDefaults.java, Compiled Code)
>  at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java, Compiled Code)
>  at javax.swing.UIDefaults.getUIClass(UIDefaults.java:306)
>  at javax.swing.UIDefaults.getUI(UIDefaults.java:375)
>  at javax.swing.UIManager.getUI(UIManager.java:568)
>  at javax.swing.JPanel.updateUI(JPanel.java:110)
>  at javax.swing.JPanel.(JPanel.java:70)
>  at javax.swing.JPanel.(JPanel.java:100)
>  at javax.swing.JRootPane.createGlassPane(JRootPane.java:224)
>  at javax.swing.JRootPane.(JRootPane.java:181)
>  at javax.swing.JFrame.createRootPane(JFrame.java:154)
>  at javax.swing.JFrame.frameInit(JFrame.java:147)
>  at javax.swing.JFrame.(JFrame.java:137)
>  at SwingTest.main(SwingTest.java:8)
> 
> 
> 
> If you recall, this was the example I posted previously:
> 
>  run Stylepad example:
> % java -jar Stylepad.jar
> 
>  Stylepad output:
>  Exception in thread "main" java.lang.Error: can't load 
>javax.swing.plaf.metal.MetalLookAndFeel
>  at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:856)
>  at javax.swing.UIManager.initialize(UIManager.java:926)
>  at javax.swing.UIManager.maybeInitialize(UIManager.java:948)
>  at javax.swing.UIManager.getUI(UIManager.java:559)
>  at javax.swing.JPanel.updateUI(JPanel.java:110)
>  at javax.swing.JPanel.(JPanel.java:70)
>  at javax.swing.JPanel.(JPanel.java:100)
>  at javax.swing.JRootPane.createGlassPane(JRootPane.java:224)
>  at javax.swing.JRootPane.(JRootPane.java:181)
>  at javax.swing.JFrame.createRootPane(JFrame.java:154)
>  at javax.swing.JFrame.frameInit(JFrame.java:147)
>  at javax.swing.JFrame.(JFrame.java:124)
>  at Stylepad.main(Stylepad.java:73)
> 
> 
> - Original Message -
> From: Andre Lewin <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, January 21, 2000 3:35 PM
>

Java/Linux CJK question: user-defined fonts?

2000-01-21 Thread Polly Powledge


Greetings,

I'm a developer working on double-byte-enabling a java app. I'd like to
support user-defined characters (known in Japan as "Gaiji"). I took a look
at
http://java.sun.com/products/jdk/1.1/docs/guide/intl/unicode_font.doc.html
and read the section on mapping user-defined characters to Unicode.

My problem is that I can't figure out how you get the glyph(s) into the
user's fonts to use on Linux. With Windows, there's a utility that takes a
user-supplied bitmap and makes it part of the system fonts, which you can
then access through the JVM. But I haven't yet found an equivalent tool in
the Linux world.  It seems like I have to tell my users to create truetype
fonts on a Windows system, and then install them on their Linux systems:
ick. Or (more to the point of this mailing list) is there some helpful java
mechanism that I'm overlooking?

Thanks in advance,

Polly Powledge
[EMAIL PROTECTED]


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



Re: HELP: jdk122rc2 swing stuff doesn't work

2000-01-21 Thread Nathan Meyers

On Fri, Jan 21, 2000 at 05:40:26PM -0600, A. Scott White wrote:
> I'm running Debian GNU/Linux 2.1 with kernel version 2.0.36
> My /lib directory contains libc.so.6 and libc-2.0.7.so
> 
> I have a Java application I've written on NT using jdk1.2.2. I want to
> run this on the aforementioned Linux box.
> 
> I do not want to upgrade my kernel, my glibc or my distro at this
> point. Where can I get a JDK1.2.2 that will run on my current setup?

The short answer is that you can't. All the available JDK1.2.2 ports
require at least glibc 2.1.

Nathan


> 
> Thanks.
> 
> ==
> A. Scott White  ([EMAIL PROTECTED])
> Director, IS - Healthcare Solutions Group
> Affiliated Computer Services, Inc.
> 
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
[EMAIL PROTECTED]  Public Access User -- Not affiliated with Teleport
Public Access UNIX and Internet at (503) 220-1016 (2400-28800, N81)


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