Re: JAVA+Enlightenment
Renzo Pecoraro wrote: > >Does anybody have a hint as to how to fix this: I am using >RH6.0+Gnome+E, and whenever I startup NetBeans places itself in the top >left corner, but hides its own window titlebar, so that I don't have >access to the iconify buttons, etc. Very annoying! Is there a fix? Ah yes, the 'application places itself in the top left corner' problem again. Problems with Enlightenment have been discussed on this mailing list recently under the thread 'Java and Enlightenment', though the underlying bug affects more than just NetBeans or Enlightenment. There is a bug report on the JDC for this (id 4102292), though for some illogical reason Sun have classified it as a request for enhancement rather than a bug. Please go along and vote for it if you'd like to see something done about it. http://developer.java.sun.com/developer/bugParade/bugs/4102292.html Ron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Sun Java 2 for Linux
Riyad Kalla wrote: > I'm giddy like a school girl to see how it turns out. > > Would Blackdown disolve if this comes true? Well, according the article at InfoWorld, Sun are working with Blackdown to do the port so I guess they'll continue to be closely involved with Java on Linux. Robbie -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JNI link to disk space
[EMAIL PROTECTED] wrote: > > > > > > I am interesting in getting the disk space and partition > > > > > in a Java program by using JNI. What is the std UNIX API > > > > > call to do this? I have tried grepping the man pages > > > > > and got the source to kdf program but it didn't help > > > > > because it was executing `/usr/bin/df -k -T' and parsing > > > > > the output. Is there a native portable UNIX system call that > > > > > provides partition information and also disk space size and free > > > > > information? > > > > This might be a silly question but: > Why don't you just look at the source code of "df"? I thought the sources > were always included in GNU software? > You could then take the piece of code found in "df" and use it in your own > program. > > ..cu > > Jörg I already have and with out looking at too deeply it really a combo of use the functions and structures in `/usr/include/sys/mntent.h' and `/usr/include/sys/statfs.h'. Also not also output from df are standard or compatible so you would have to parse output of `df-k' and java.lang.Process.exec() et al -- Adios Peter - import std.Disclaimer; // More Java for your Lava, Mate. "Give the man, what he wants. £££" [on Roy Keane, Quality Player] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Still looking for a solution.
Hello,
I'm close, but no cigar. I'm still trying to get a frame to accept key
events.
In file TestCntrl.java I have -
import java.awt.* ;
import java.awt.event.* ;
public class TestCntrl extends TestFrame
{
public static void main(String arg[])
{
new TestCntrl ().setVisible(true) ;
}
public TestCntrl ()
{
ToolKit theToolKit = this.getToolkit () ;
Dimension outScreenSize = theToolKit.getScreenSize () ;
this.setBounds (ourScreenSize.width/1, ourScreenSize.height/1,
ourScreenSize.width/2, (int)
(ourScreenSize.height * .8)) ;
// When I add the button it doesn't work!
Button myButton = new Button("TEST") ;
add(myButton) ;
}
}
In the file TestFrame.java
import java.awt.* ;
import java.awt.event.* ;
public class TestFrame extends Frame
{
public TestFrame ()
{
enableEvents (QWTEvent.KEY_EVENT_MASK) ;
}
public void processKeyEvent (KeyEvent e)
{
super.processKeyEvent (e) ;
System.out.println("Print key code" + e.getKeyCode()) ;
}
}
Can someone tell me why this doesn't when I have the button. Also how
can I get
this to work without putting a handler on the button?
TIA
Wayne
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Still looking for a solution.
Do you have to use AWT frames? If you use a swing frame, you can use a
glass pane to do what you are trying to do.
On Wed, 20 Oct 1999, Wayne wrote:
> Hello,
> I'm close, but no cigar. I'm still trying to get a frame to accept key
> events.
> In file TestCntrl.java I have -
>
> import java.awt.* ;
> import java.awt.event.* ;
>
> public class TestCntrl extends TestFrame
> {
> public static void main(String arg[])
> {
> new TestCntrl ().setVisible(true) ;
> }
>
> public TestCntrl ()
> {
> ToolKit theToolKit = this.getToolkit () ;
> Dimension outScreenSize = theToolKit.getScreenSize () ;
>
> this.setBounds (ourScreenSize.width/1, ourScreenSize.height/1,
> ourScreenSize.width/2, (int)
> (ourScreenSize.height * .8)) ;
>
> // When I add the button it doesn't work!
>
>Button myButton = new Button("TEST") ;
>add(myButton) ;
> }
> }
>
>
> In the file TestFrame.java
>
> import java.awt.* ;
> import java.awt.event.* ;
>
> public class TestFrame extends Frame
> {
> public TestFrame ()
> {
> enableEvents (QWTEvent.KEY_EVENT_MASK) ;
> }
>
> public void processKeyEvent (KeyEvent e)
> {
> super.processKeyEvent (e) ;
> System.out.println("Print key code" + e.getKeyCode()) ;
> }
> }
>
> Can someone tell me why this doesn't when I have the button. Also how
> can I get
> this to work without putting a handler on the button?
>
> 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]
Full thread dump (with green threads?)
Hi guys, I'm running an RMI Server connected to a DB2 in a RH6.0 box. I have set threads to green in the .java-wrapper and I have also used the -green flag. I also used no JIT (java.compiler=) and as soon as the server receives a remote call I get: SIGSEGV 11* segmentation violation stackpointer=0x41d345f0 Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, green threads): "RMI TCP Connection(3)-prometeo.turas.com/172.16.1.128" (TID:0x405025f0, sys_thread_t:0x834e0f 8, state:R) prio=5 at COM.ibm.db2.jdbc.app.DB2Statement.SQLAllocStmt(Native Method) What could be happening ? I think I am using green threads everywhere Thank's in advance. -- Ramiro Díaz Trepat [EMAIL PROTECTED] ôèPÔ ÿzf¢Ú#jöÿ)îÇúު笷øÚ½¯Û§$v'þàÂ+ajËç-¡ÿî˱ÊâmïÿNº.nWÿ íiËeËZvoãjöÿnVÚ0ú+
Re: Still looking for a solution.
Hi Alex,
At the moment I do have to use AWT. I quess from your answer that I can't do
what
I want. I did read a piece over at javaworld that that basically says I can do
this if I
want to use a Dialog. I don't like the ideal of issuing another window just to
close
the window. Thanks for yout time.
By the way for those interested in the article.
http://www.javaworld.com/javatips
its tip number 69 for AWT and tip number 72 for JFC
Wayne
Alex M. wrote:
> Do you have to use AWT frames? If you use a swing frame, you can use a
> glass pane to do what you are trying to do.
>
> On Wed, 20 Oct 1999, Wayne wrote:
>
> > Hello,
> > I'm close, but no cigar. I'm still trying to get a frame to accept key
> > events.
> > In file TestCntrl.java I have -
> >
> > import java.awt.* ;
> > import java.awt.event.* ;
> >
> > public class TestCntrl extends TestFrame
> > {
> > public static void main(String arg[])
> > {
> > new TestCntrl ().setVisible(true) ;
> > }
> >
> > public TestCntrl ()
> > {
> > ToolKit theToolKit = this.getToolkit () ;
> > Dimension outScreenSize = theToolKit.getScreenSize () ;
> >
> > this.setBounds (ourScreenSize.width/1, ourScreenSize.height/1,
> > ourScreenSize.width/2, (int)
> > (ourScreenSize.height * .8)) ;
> >
> > // When I add the button it doesn't work!
> >
> >Button myButton = new Button("TEST") ;
> >add(myButton) ;
> > }
> > }
> >
> >
> > In the file TestFrame.java
> >
> > import java.awt.* ;
> > import java.awt.event.* ;
> >
> > public class TestFrame extends Frame
> > {
> > public TestFrame ()
> > {
> > enableEvents (QWTEvent.KEY_EVENT_MASK) ;
> > }
> >
> > public void processKeyEvent (KeyEvent e)
> > {
> > super.processKeyEvent (e) ;
> > System.out.println("Print key code" + e.getKeyCode()) ;
> > }
> > }
> >
> > Can someone tell me why this doesn't when I have the button. Also how
> > can I get
> > this to work without putting a handler on the button?
> >
> > 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]
Re: Still looking for a solution.
Dear Wayne, Wayne wrote: ... > Can someone tell me why this doesn't when I have the button. Also how > can I get > this to work without putting a handler on the button? ... I suppose this is because frame dispatches keyboard event to the lowest component that has keyboard focus in its Component hierarchy (see Container's processEvent() function source code). Apparently this lowest component is your button. And your button consumes this event (call its consume() method) and so it is not dispatched back to Frame. I hope this will help to understand what happened. To advice the solution for the problem, I have no enough information about the purposes of your application. All the Best Pavel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Benchmark results for Linux JVMs (formatted for 70 columns)
> I wonder how much speedup can be achieved by using tools like > Jopt ( http://www-i2.informatik.rwth-aachen.de/~markusj ). Are there any > benchmarks yet? My guess is that all good JIT compilers do pretty advanced optimizations which trump whatever JOpt is doing. In fact, some JIT compilers probably expect that the bytecode they're compiling is *not* pre-treated by a tool such as JOpt, which would make it harder for them to do certain optimizations. So it's possible that JOpt could actually slow things down! Matt Welsh -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
glibc2.1.2 and jdk1.2
can anyone tell me what this means? i got redhat 6.1-->glibc2.1 and i downloaded the glibc2.1 version of blackdown. is this a misleading message which really means i can't link glibc2.1.2 with a glibc2.1 compiled jdk1.2??? /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined reference to `sem_destroy@@GLIBC_2.0' is there a glibc2.1.2 version of the jdk1.2?? help appreciated. thanks, --michael Real Networks (trying to convince folks that server side java is not a bad thing) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc2.1.2 and jdk1.2
> Michael writes: Michael> can anyone tell me what this means? Michael> i got redhat 6.1-->glibc2.1 Michael> and i downloaded the glibc2.1 version of blackdown. Michael> is this a misleading message which really means Michael> i can't link glibc2.1.2 with a glibc2.1 compiled jdk1.2??? Yes. IMO this is one of the worst parts of symbol versioning, the glibc developers don't think so. Michael> /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: Michael> undefined reference to `sem_destroy@@GLIBC_2.0' IMO it should be '@' and not '@@' for external symbols. Michael> is there a glibc2.1.2 version of the jdk1.2?? Not yet, but the next release will be built with glibc-2.1.2. As a work-around you can link against the green threads library, I think you still can use the native threads library at runtime. Juergen -- Juergen Kreileder, Blackdown Java-Linux Porting Team http://www.blackdown.org/java-linux.html -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: glibc2.1.2 and jdk1.2
I believe glibc-2.1.2 fixed a few bug e.g unsetenv(). What version of gcc comes with RH6.1 ??? On Thu, 21 Oct 1999, Michael Moores (@synthsoft) wrote: > can anyone tell me what this means? > i got redhat 6.1-->glibc2.1 > and i downloaded the glibc2.1 version of blackdown. > is this a misleading message which really means > i can't link glibc2.1.2 with a glibc2.1 compiled jdk1.2??? > > /usr/local/jdk1.2/jre/lib/i386/native_threads/libhpi.so: undefined reference > to `sem_destroy@@GLIBC_2.0' > > is there a glibc2.1.2 version of the jdk1.2?? > > help appreciated. > thanks, > --michael > Real Networks > (trying to convince folks that server side java is not a bad thing) > > > -- > 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]
