Re: Classbrowser for Java & Emacs

1998-06-04 Thread Jason Dillon

What is SNIFF if you don't mind me asking?

--jason


On 03-Jun-98 Larry Medwin wrote:
> Yes, I got SNIFF; apparently if you have a license at work, they let you
> have one for home, and it runs on Linux.  I'm still learning to use it,
> though...
> 
> Larry
> 
> Franz Reitinger wrote:
>> 
>> Developing Java-apps with Emacs is a fine thing. However  source files
>> may increase and sooner or later you will loose the overall view.
>> Therefore a thing like SNIFF in conjunction with Emacs or Emacs & a
>> classbrowser would make java-developement  easier.
>> Does somebody use such nice tools?
>> 
>> Tankx!




Re: Is there a linux java editing tool

1998-06-04 Thread Jason Dillon

Viper is a 'vi' emulation mode for 'emacs'.

--jason


On 04-Jun-98 Igor Slepchin wrote:
> What is viper?
> 
> Thanks,
> Igor
> 
> 
> Felix Morley Finch wrote:
>> 
>> Forgive me my weakness...
>> 
>> >>In article
>> >><[EMAIL PROTECTED]>,
>> >>[EMAIL PROTECTED] writes:
>> 
>> > does anyone know an ide add-on for vi, nvi, or vim?
>> > I guess something similiar to JDE?
>> 
>> xemacs + viper + jde
>> 
>> :-) :-) :-)
>> 
>> --
>> ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
>>  Felix Finch: scarecrow repairman & rocket surgeon / [EMAIL PROTECTED]
>>   PGP = 91 B3 94 7C E9 E8 76 2D   E1 63 51 AA A0 48 89 2F  ITAR license
>>   #4933
>> I've found a solution to Fermat's Last Theorem but I see I've run out of
>> room o




Re: Creating non-sun RMI Registry

1998-06-30 Thread Jason Dillon

Were you able to attach it to java.rmi.Naming?

--jason


On 30-Jun-98 Jason Gilbert wrote:
> 
> On Mon, 29 Jun 1998, Jason Dillon wrote:
> 
>> Does anyone happen to know how to install a non-sun RMI Registry object that
>> Naming will talk to?  I can't seem to find any documentaion on this at all. 
>> I
>> rather suspect that it is not possible, but why the Registry interfaces?
> 
> By non-sun you apparently mean use the Registry interface to create a 
> registry.  I've done and it worked.  It was awhile back so I'd have to 
> take a look back at it if you want something past "yes, it's possible".
> 
> jason




Re: Creating non-sun RMI Registry

1998-07-01 Thread Jason Dillon

Hrm... how did you let Naming know which Registry to use?  I can't find any api
calls that register the new Registry.

--jason


On 30-Jun-98 Jason Gilbert wrote:
> Jason Dillon wrote:
>> 
>> Were you able to attach it to java.rmi.Naming?
> 
> Yes?  I was able to access it using the java.rmi.Naming
> interface.  You just have to make sure you give it valid names I
> believe.  Look at the Naming source that comes w/ the jdk. 
> Unless you aren't tainted yet;^)  The Naming class is just a
> wrapper around the Registry interface.  I also wrote a Handler
> class so that I could use rmi://... in URL objects.
> 
> jason
>  
>> >
>> > By non-sun you apparently mean use the Registry interface to create a
>> > registry.  I've done and it worked.  It was awhile back so I'd have to
>> > take a look back at it if you want something past "yes, it's possible".
> 
> -- 
> Jason Gilbert | http://www.scott.net/~jason/
>   | http://www.homewood.net
> --
> I wish I could make the garbage collector thread in my
> brain less agressive.



RE: SSLava like ?

1998-07-01 Thread Jason Dillon

I think that there is much more framework to support secure sockets (like for
rmi and such), but it will not come with an implementation.  Perhaps there will
be one with jce.

--jason

On 01-Jul-98 [EMAIL PROTECTED] wrote:
> 
> --
>| From: mjnf /  mime, , , [EMAIL PROTECTED]
>| To: java-linux /  mime, , , [EMAIL PROTECTED]
>| Subject: SSLava like ?
>| Date: Tuesday, June 30, 1998 7:06PM
>|
>| Hi
>|
>| Does anyone know if there is a product like SSLava (or similar as long as it
>| implements SSL for java) available that is free ?
>|
> 
> I thought secure sockets will be a standard feature in JDK1.2, but I am 
> not sure
> 
> Addy.



Re: swing JDeskTop

1998-07-20 Thread Jason Dillon

That does not really "dock" the internal frame... it just makes it imobile.  I
don't belive that the standard l&f's support docking internal frames.  If you
or anyone else comes up with a way to do it please let me know.

--jason

On 20-Jul-98 Brad Giaccio wrote:
> I beleive you can have a listner for all the internal frames. and you can
> just listen for the move and veto it.
> 
> Brad
> 
> 
> On Mon, 20 Jul 1998, B. Craig Taverner wrote:
> 
>> Hi all,
>> 
>> I know this is not a pure linux/java question, but does anyone know how to
>> create 'dockable' internal frames with swing.  ie. frames that can be
>> attached to the sides of teh JDesktop.  I've considered extending
>> DesktopManager, but it loks like I might get into some heavy L&F trouble
>> then.
>> 
>> Cheers, Craig
>> 
>> --
>> An American's a person who isn't afraid to criticize the President but
>> is always polite to traffic cops.
>> 
>> ==
>> Craig Taverner   --==   Email:[EMAIL PROTECTED]
>> ComOpt AB   --Tel:   +46-42-212580
>> Michael Löfmans Gata 6 --==   Fax:   +46-42-210585
>> SE-254 38 Helsingborg   --   Cell:  +46-708-212598
>> Sweden   --==http://www.comopt.com
>> ==
>> 
> 
> -- 
> --- There are two kinds of knowledge, you either know the answer or
>   you know where to find it
> -Kane, Johnson, and anonymous



RE: NetBeans IDE?

1998-07-23 Thread Jason Dillon

I have tried it and descided that it was too slow on my machine (P2 333mhz
128mb RAM).  Performace might be a bit better with a real motif library and
DYN_JAVA=true or using a jit compiler.

--jason

On 23-Jul-98 Brad Pepers wrote:
> Has anyone tried using the NetBeans IDE application on Linux?
> I've been playing with it on RedHat 5.1 (latest glibc and other
> updates) using the JDK 1.1.6v2 from Blackdown.  It works a bit
> but often locks up and is really slugish (running it on a
> Pentium II 233MHz with 64Mb RAM).
> 
> What I want to do is try running the same program on Windows 95
> using the Sun JDK 1.1.6 and see how well it works there.  If it
> performs well then I guess Linux Java still has a way to go
> before it can be used for end user products and developing
> software.
> 
> Any suggestions on making the Linux JDK more stable?  How about
> speed improvements?
> 
> Brad Pepers
> [EMAIL PROTECTED]



Re: rmic is way slow

1998-07-28 Thread Jason Dillon

That sounds like the problem... and yes... running rmic in /tmp runs a trillion
times faster.  Unfortunately I can not perform all of my compiles in /tmp.  Any
ideas on how to get around this?

--jason


On 28-Jul-98 Nelson Minar wrote:
>>I am running into a real bottleneck when compiling rmi applications
>>with: java_dyn full version "Linux_JDK_1.1.6_v2". rmic takes forever
>>to run on a single class. At first I thought it was just a jdk 1.x
>>problem, but when running sun's 1.1.6 rmic finishes in about 1/30th
>>the time that Linux does.
> 
> It's possible this is NFS-related; it's distressingly easy to use an
> unbuffered output stream in Java. If you don't buffer writes, then
> it's incredibly slow over NFS in Linux. (I think Soalris cheats and
> does some write-combining, so the unbuffered writes might be faster).
> 
> Try running it so that rmic's output is written to local disk like
> /tmp. Is it better? Let us know.
> 
> (This trick works with Voyager's vcc utility, which is similar to rmic
> in some ways.)



Re: rmic is way slow

1998-07-29 Thread Jason Dillon

Thanks for th input.  I think that I will give the wrapper bit a try.

--jason


On 29-Jul-98 Nelson Minar wrote:
> To all you bozos sending me mail saying "get me off this list", I have
> nothing to do with subscribership. Try talking to
> [EMAIL PROTECTED] or [EMAIL PROTECTED]
> 
>>That sounds like the problem... and yes... running rmic in /tmp runs
>>a trillion times faster.
> 
> Ah, good. I'd still be curious to know why Linux is so much worse than
> Solaris with unbuffered NFS writes. Again, my guess is that Solaris is
> caching the data a bit in the kernel before doing NFS. I believe this
> is officially disallowed (NFS writes are synchronous), but it sure
> makes things nicer. Maybe 2.1.x kernels do a better job of this?
> 
>>Unfortunately I can not perform all of my compiles in /tmp. Any ideas
>>on how to get around this?
> 
> This problem convinced me to switch to CVS. I do my development on
> local disk, then check the sources in to CVS on my NFS mounted (and
> backed up) disk. Not exactly a simple solution, but it was good to use
> CVS anyway.
> 
> The other option is to write a shell script wrapper around rmic that
> writes to /tmp and then copies the output back.. If rmic has a -d option
> similar to javac, then it's easy. Just do something like
>   rmic -d /tmp Foo.java
>   mv /tmp/RMIFoo.class .
> (sorry, I don't know rmic that well. I hope the idea is clear).
> Without a -d option you'll have to copy Foo.java to /tmp first.
> 
> The only other thing I could think is to reverse engineer rmic, fix it
> so that it uses a buffered output stream, and recompile it. That's
> probably illegal.
> 
> (Bummer about not having source to rmic. Jini is going to be open
> source, which is incredibly cool.)



jdk 1.1.6?

1998-06-02 Thread Jason Dillon

Where can I find the latest version of 1.1.6 in non-rpm format?

--jason





Re: Re[2]: Can Java Catch Signals ?

1998-09-28 Thread Jason Dillon

I ran into a rather annoying problem with this library.  Perhaps someone else
could confirm the same problem. I wrote a rather large distributed threaded
network management system.  When the system was started up lots of log messages
were sent via tcp to a logging server, and the rest of the system was
functioning fine.  After I added the very simple code to catch SIGTERM and
SIGINT, the system logged only a few messages and proceeded to hang.  After
removing the code to initialize the signalListener the system once again worked
as designed.

I played a bit with the jni library, but ended up not using it do to the
problem above.  I thought that the jvm was using signals in some way to handle
something, but I did not look into it any more.

If anyone has any ideas on why this may be occurring or if the jvm indeed does
use signals in some odd way please let me know.

--jason

On 28-Sep-98 John Baker wrote:
> On Mon, Sep 28, 1998 at 10:00:45AM -0400, Nelson Minar wrote:
>> >What I would like is just a very simple SignalCatcher for SIGTERM,
>> >SIGQUIT, SIGHUP and SIGINT: just four signals. I want to catach them
>> >in Java, and write the capture to a systems log. So that at least
>> >overnight personnel would know how my java batcher died .
>> 
>> Someone wrote just that for Linux recently, it was posted to this
>> list. I don't know what, though. Hopefully the list is archived somewhere?
> 
> http://interstice.com/~kevinh/projects/javasignals/
> 
> 
> 
> -John
> 
> -- 
> John Baker, Software Engineer, Java coder, Salad sarnie lover.
>  Work: (01203) 562000 ext 4153
>  Home: (01203) 601890



RE: Socket exceptions under 1.1.6v4

1998-09-29 Thread Jason Dillon

Sorry for the ignorant question... but is 'the next version' avaible yet or is
it still being cooked up?

--jason


On 28-Sep-98 Steve Byrne wrote:
> Paul Reavis writes:
>  > My Voyager-based networking works under v2 but breaks under v4 with
>  > a
>  > 
>  > java.net.SocketException: Socket option unsupported
>  > 
>  > I'm just trying to connect with the Voyager server at a specified port;
>  > it never even makes the connection. Localhost or LAN doesn't seem to
>  > make a difference.
> 
> This is the socket stuff that got broken in v4.  It was a minor change that
> broke some of the socket changing operations.  We've put the code back the
> way
> it was and things should work fine again in the next version.
> 
> Steve



Modal JInternalFrame?

1998-09-29 Thread Jason Dillon

Does anyone know how to get an JInternalFrame to be modal via JDesktopPane?  I
have looked at the jdk docs, and there is a bit of babble about it in
JOptionPane, but no matter what I try I can not get a JInternalFrame to become
modal.

I looked into showing the glass pane, then adding the frame to it, but that
does not work very well either.  The frame shows up for a quick second, then
vanishes.  Even if that did work, it is quite a pain to show that glass all of
the time.  Did they (swing developers) think that no one was ever going to want
a modal internal frame?

I am trying to avoid using external frames so I can better manage the overall
user experience, but it seems there is no easy way to create a modal dialog in
this fashion.

If you or someone you know has had any experience with this problem PLEASE let
me know.  I am going quite mad, quite quickly over this apparent lack of feature
in swing.

--jason



RE: Experiences with jdk and lesstif?

1998-09-29 Thread Jason Dillon

I had lots of trouble with popup menus using lesstif.  I was never able to
resolve this issue, so I had to stop using it.  I run into similar problems
with netscape.  When you right-click, the menu pops up but does not return
control... ever (well after a kill it does).

--jason


On 29-Sep-98 Paul Reavis wrote:
> I was just wondering what experiences people are having using the jdk
> with dynamic lesstif. I recall there were problems awhile back, but
> haven't heard much recently. I use Swing exclusively now, which should
> put less stress on it. I'm just tired of the huge stomp java puts in my
> memory, some of which I assume is static Motif.
> 
> -- 
> 
> Paul Reavis  [EMAIL PROTECTED]
> Design Lead
> Partner Software, Inc.http://www.partnersoft.com



Re: Modal JInternalFrame?

1998-09-29 Thread Jason Dillon

> The Metalworks demo in the swing example dir. demonstrate this
> effect. Check out MetalworksFrame.java with a careful eye to the
> xxxLAYER members.

This is not really a modal internal frame... it just appears on top of others.
There is nothing to prevent users from mucking with other windows.

I will read the containers bit as you suggest... but I still don't know how to
make an internal become modal.

--jason



Swing menu problem

1998-09-30 Thread Jason Dillon

I have noticed that with all of the blackdown jdk's, swing menus don't line up
correctly until the main frame has been moved or resized first.  I checked with
the java-liunx bug tracking software and found that this bug (#61) is listed in
the 'done' section with a comment of:

This problem has been fixed in V3 but technically the bug is in the Swing java
files in Swing Utilities

It seems to still be occuring.  I have never seen this work correctly with out
having to move the parent frame/dialog/window first.  I ran the same code on a
solaris box (displaying to my computer) using the same swing.jar and the code
executed correctly.

Is it possible that this has not be fixed yet?

--jason



Re: Swing menu problem

1998-09-30 Thread Jason Dillon

I am using Window Maker (0.20.1).  I do not have this problem with fvwm or
fvwm2.

Thanks.

--jason


On 30-Sep-98 Kevin B. Hendricks wrote:
> Hi,
> 
> The offset menu problem has been fixed in v4a (and v3).  If you are still
> seeing it with v4a, please let me know what window manager you are using.
> 
> Juergen Kreileder, one of the Blackdown porters, has done lots of testing
> on this issue (and other awt related issues with window managers) and here
> is what he posted to the porting list recently:
> 
>>I'm aware of that problem (although I can't reproduce it with NetBeans
>>but with appletviewer using v4a/v5 and lesstif).
>>
>>Here's the latest report on window managers:
>>kwm, icewm, fvwm2, fvwm2-plus: OK
>>
>>scwm, fvwm95: frame changes location after unmap/remap
>>  (setResizable())
>>
>>fvwm: frame changes location after unmap/remap
>>  some problem with repeatedly pressing the 'move +1+1' button
>>  in the noresize example from bug #144
>>
>>ctwm: the offset problem with appletviewer
>>  changing the menu bar breaks the window's layout temporarily
>>
>>wmaker: the offset problem with appletviewer
>>changing the menu bar increases the frame's height by 1
>>
>>olwm, olvwm: changing the menu bar breaks the window's layout
>> and can result in a segmentation violation
> 
> 
> Are you by any chance using WindowMaker?  Please let me know which window
> manager shows the offset menu problem, and we will try to fix it in our
> next release.
> 
> The sheer number of window managers and the fact that they are all not of
> equal quality or perform ops in the same way, results in lots of problems
> under awt.
> 
> Kevin
> 
> 
> 
> 
> --
> Kevin B. Hendricks
> Associate Professor, Operations & Information Technology
> School of Business, College of William & Mary
> Williamsburg, VA 23187, [EMAIL PROTECTED]
> http://business.tyler.wm.edu



Re: Swing menu problem

1998-09-30 Thread Jason Dillon

I have sent mail to [EMAIL PROTECTED] describing the problem.  I
included this code to test the menus as well:

import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import com.sun.java.swing.event.*;

public class Test extends JFrame
{
public static void main (String argv[]) throws Exception
{
Test t = new Test ();
t.show ();
}

public Dimension getPreferredSize ()
{
return new Dimension (640, 480);
}

public Test ()
{
super ("Test");

// add window event hooks
addWindowListener (new WindowAdapter () {
public void windowClosing (WindowEvent e) {
dispose ();
System.exit (0);
}
});

// set the size and location
Dimension frameSize = getPreferredSize();
Dimension screenSize =
java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setSize (frameSize);
setLocation (screenSize.width / 2 - frameSize.width / 2,
screenSize.height / 2 - frameSize.height / 2);

// Menu bar
JMenuBar bar = new JMenuBar ();
setJMenuBar (bar);

JMenuItem item;
JMenu menu;

// PMS Menu
menu = new JMenu ("WindowMaker");
bar.add (menu);
{
item = new JMenuItem ("Quit");
item.addActionListener (new ActionListener () {
public void actionPerformed (ActionEvent e) {
dispose ();
System.exit (0);
}
});
menu.add (item);
}

// Help menu
menu = new JMenu ("Help");
menu.setMnemonic ('H');
bar.add (menu);
menu.add (new JMenuItem ("About..."));

pack ();
}
}

--jason

On 30-Sep-98 Michael Sinz wrote:
> On Wed, 30 Sep 1998 16:33:30 -0700 (PDT), Jason Dillon wrote:
> 
>>Do you have an specifics that I could give them that would make it easier for
>>them to fix?  I don't know much about window manager (internals that is).
> 
> I don't know that much either.  Given that they do WM development,
> they must have some tools to see what is happening.  The best thing
> would be to give them a small program that shows the problem.
> A simple Java program with information as to where to download
> Java and the fact that it does not have this problem in mwm, fvwm, fvwm2,
> etc. would be a relatively good way for them to be able to reproduce
> and fix the problem.
> 
>>On 30-Sep-98 Michael Sinz wrote:
>>> On Wed, 30 Sep 1998 14:56:25 -0700 (PDT), Jason Dillon wrote:
>>> 
>>>>I am using Window Maker (0.20.1).  I do not have this problem with fvwm or
>>>>fvwm2.
>>> 
>>> I would suggest that you contact WindowMaker about this problem.
>>> I can not see why it would not work based on the code.
>>> 
>>> Michael Sinz -- Director of Research & Development, NextBus Inc.
>>> mailto:[EMAIL PROTECTED] - http://www.nextbus.com
>>> My place on the web ---> http://www.users.fast.net/~michael_sinz
>>
> 
> 
> Michael Sinz -- Director of Research & Development, NextBus Inc.
> mailto:[EMAIL PROTECTED] - http://www.nextbus.com
> My place on the web ---> http://www.users.fast.net/~michael_sinz



Re: Swing menu problem

1998-10-01 Thread Jason Dillon

I stand corrected.  I don't know what I was thinking exactly.  I tried this
again with v4a and it works fine.  I guess it has been one of those days.  My
apologies for any headaches I may have caused.  Thanks you Juergen for
catching my mistake.

Unfortunately I am still having Socket problems with v4a (in code that I did not
write), so I am doomed be annoyed by the older jdk's broken menus until there
is a fix for the current version.

Thanks and sorry.

--jason


On 01-Oct-98 Juergen Kreileder wrote:
>>>>>> Jason Dillon writes:
> 
> Jason> I have sent mail to [EMAIL PROTECTED] describing
> Jason> the problem.  I included this code to test the menus as
> Jason> well:
> 
> [...]
> 
> Jason,
> 
> I've tried your example with swing-1.0.3, swing-1.1beta2 and various
> jdk versions. v4a, v5 work fine, only v2 shows the bug you described.
> 
> 
> Jürgen
> 
> -- 
> Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
> Baroper Strasse 301, D-44221 Dortmund, Germany
> Phone: ++49 231/755-5806, Fax: ++49 231/755-5802



Linux JIT?

1998-10-08 Thread Jason Dillon

Is there any other JIT compiler for Linux other than TYA?  I have been using
TYA for a while.  I have found that it does not really help for swing
applications, rather it hinders.  I was using NetBeans with TYA and it was
quite slow to react to ui events.  It was also eating about 30% of my p2
constantly at idle.  Without TYA the ui reacts much, much faster and eats 30% of
my p2 spuratically at idle.

I was wondering if there is anything else out there... or if anyone might know
how to optimize TYA so that I can get better performance out of it.

--jason



JDesktopPane & moveToFront

1998-10-09 Thread Jason Dillon

Hey, this really isn't a Linux related question, but I am going nutz trying to
get newly added JInternalFrames to move to the front of a JDesktopPane (at the
DEFAULT_LAYER) and receive focus.

I have tried

_desktop.add (frame);
_desktop.moveToFront (frame);

&

_desktop.add (frame);
frame.moveToFront ();

... I could go on and on, but the end result is that the new frame always ends
up behind every thing else.  I can't seem to find the right combination of
methods to achieve the proper result... and I was hoping (desperately... ok well
not really so desperately) that one of you might know the trick.

--jason



Re: help!!!

1998-10-11 Thread Jason Dillon

RedHat 4.2 is based on libc v5.x so jdk_1.1.6-v5-x86-lib5.tar.gz is just what
you need.  If you ever upgrade to RedHat 5.1 (or above I would guess) then you
would need the glibc version.

I don't know very much about kaffe, but the few experences that I have had were
poor.  I have been using blackdowns jdk & vm's for quite a while now and I am
very pleased with them.

--jason


On 11-Oct-98 Willy wrote:
> Thank you very much for your help. After I set the classpath, the
> error is Native Library not found anyway, I think the problem is
> that the javac I'm running is that of kaffe I solve it through
> setting the PATH to the java path
>   One more question: My system is RedHat Linux 4.2 running on i586...
> does it support jdk_1.1.6-v5-x86-lib5.tar.gz... if not what is your
> recommended version ?
> 
> Jason Dillon wrote:
>> 
>> Try setting your classpath to contain jdk116/lib/classes.zip:
>> 
>> sh:
>> 
>> CLASSPATH=/where/ever/you/put/it/jdk116/lib/classes.zip
>> export CLASSPATH
>> 
>> csh:
>> 
>> setenv CLASSPATH /where/ever/you/put/it/jdk116/lib/classes.zip
>> 
>> You should also set JAVA_HOME to /where/ever/you/put/it/jdk116/ in the same
>> fashion.  That should fix it.  Let me know if it doesn't.
>> 
>> --jason
>> 
>> On 11-Oct-98 Willy wrote:
>> > Sir/Madam,
>> >   Good day!!!
>> >   I download the jdk_1.1.6-v5-x86-lib5.tar.gz... then untar it... it
>> > extracted on jdk116 directory then... and when i run javac it return the
>> > error message "CLASSPATH NOT SET" please help me how to solve this
>> > problem... We're students now developing a software using Java in
>> > Linux... please help us as soon as possible
>> >   Thank you very much!



RE: Linux JIT?

1998-10-09 Thread Jason Dillon

Whoa... I have found that most everything awt/swing based is slower with TYA. 
That is odd.  I don't know if it is just you... but it is definetly not me.

--jason


On 09-Oct-98 Michael Rohleder wrote:
> Jason Dillon writes:
>  > Is there any other JIT compiler for Linux other than TYA?  I have been
> using
>  > TYA for a while.  I have found that it does not really help for swing
>  > applications, rather it hinders.  I was using NetBeans with TYA and it was
>  > quite slow to react to ui events.  It was also eating about 30% of my p2
>  > constantly at idle.  Without TYA the ui reacts much, much faster and eats
> 30% of
>  > my p2 spuratically at idle.
> 
> Is it just me? netbeans with tya feels a lot faster!
> It eats up cpu, yes, but running it without tya also?!
> 
> -- 
> `The great thing about mod_rewrite is it gives you all the
>  configurability and flexibility of Sendmail. The downside to
>  mod_rewrite is that it gives you all the configurability and flexibility of
>  Sendmail.'
>-- Brian Behlendorf
>   Apache Group 



Re: Linux JIT?

1998-10-09 Thread Jason Dillon

I will give this one a try.  Thanks.

--jason


On 09-Oct-98 Nozomi Matsumura wrote:
 Is there any other JIT compiler for Linux other than TYA?  I have been
 using
>>> (snip)
>>> see http://www.shudo.net/jit/index-j.html
>>> hope this helps.
>> 
>> Is there a english version of this page? (I cant read anything)
> well, this page japanese only yet.
> but you can download from http://www.shudo.net/jit/dist/
> 
> Nozomi Matsumura
> [EMAIL PROTECTED]



Re: Linux JIT?

1998-10-09 Thread Jason Dillon

I have not had much luck with kaffe.  Most everything that I have written or
download does not run under the kaffe jvm (when it works just find with
blackdown's).

--jason


On 09-Oct-98 Wilhelm *Rafial* Fitzpatrick wrote:
>> > Is there any other JIT compiler for Linux other than TYA?
> 
> Well, there is kaffe, which comes with its own JIT for i386, and a couple
> other platforms.  beta 2 has just been released.  www.transvirtual.com.
> 
> Also, under LinuxPPC there is the Metroworks JIT, which has just been
> released as source, and several folks have been talking about porting it to
> other processors.  The PPC version works quite well with NetBeans.
> 
> -raf
> 
> __
>   [EMAIL PROTECTED] | "They  [well.com] are  one of the most
>  |  disgusting servers out there!" - Marc
> --|  Kanter, Market Dir. for "Cybersitter"



RE: JDesktopPane & moveToFront

1998-10-09 Thread Jason Dillon

Ok... I must be loosing it... i was testing all of this with the wrong
member function =|

--jason


On 10-Oct-98 Jason Dillon wrote:
> Hey, this really isn't a Linux related question, but I am going nutz trying
> to
> get newly added JInternalFrames to move to the front of a JDesktopPane (at
> the
> DEFAULT_LAYER) and receive focus.
> 
> I have tried
> 
> _desktop.add (frame);
> _desktop.moveToFront (frame);
> 
> &
> 
> _desktop.add (frame);
> frame.moveToFront ();
> 
> ... I could go on and on, but the end result is that the new frame always
> ends
> up behind every thing else.  I can't seem to find the right combination of
> methods to achieve the proper result... and I was hoping (desperately... ok
> well
> not really so desperately) that one of you might know the trick.
> 
> --jason



RE: help!!!

1998-10-11 Thread Jason Dillon

Try setting your classpath to contain jdk116/lib/classes.zip:

sh:

CLASSPATH=/where/ever/you/put/it/jdk116/lib/classes.zip
export CLASSPATH

csh:

setenv CLASSPATH /where/ever/you/put/it/jdk116/lib/classes.zip

You should also set JAVA_HOME to /where/ever/you/put/it/jdk116/ in the same
fashion.  That should fix it.  Let me know if it doesn't.

--jason


On 11-Oct-98 Willy wrote:
> Sir/Madam,
>   Good day!!!
>   I download the jdk_1.1.6-v5-x86-lib5.tar.gz... then untar it... it
> extracted on jdk116 directory then... and when i run javac it return the
> error message "CLASSPATH NOT SET" please help me how to solve this
> problem... We're students now developing a software using Java in
> Linux... please help us as soon as possible
>   Thank you very much!



RE: help!!!

1998-10-11 Thread Jason Dillon

Why not?  Many thirdparty vendor scripts rely on this value.

--jason


On 11-Oct-98 Steve Byrne wrote:
> Jason Dillon writes:
>  > Try setting your classpath to contain jdk116/lib/classes.zip:
>  > 
>  > sh:
>  > 
>  > CLASSPATH=/where/ever/you/put/it/jdk116/lib/classes.zip
>  > export CLASSPATH
>  > 
>  > csh:
>  > 
>  > setenv CLASSPATH /where/ever/you/put/it/jdk116/lib/classes.zip
>  > 
>  > You should also set JAVA_HOME to /where/ever/you/put/it/jdk116/ in the
> same
>  > fashion.  That should fix it.  Let me know if it doesn't.
> 
> 
> Nope -- don't set JAVA_HOME.  It most likely will *cause* the problems,
> rather than rectify them.
> 
> Steve



RE: Java access to syslog?

1998-10-16 Thread Jason Dillon

There is a syslog class from www.acme.com.

--jason


On 16-Oct-98 Greg Cook wrote:
> Is there a class (or other simple way) to have a running program open and use
> the Unix/Linux syslog utility?
> 
> Greg Cook



RE: Interprocess Communication with a Java Application

1998-10-25 Thread Jason Dillon

I am not really sure, but I don't think that Windows (ick) supports fifos... I
think that is mostly a sysv bit of fun.  Why not use sockets?

--jason


On 23-Oct-98 Steve Bankes wrote:
> 
> I am seeking advice about interprocess communication between a Java
> application
> and other, not necessarily Java, applications.
> 
> I am developing the Java application under Linux but want to be able to run
> it
> under Windows.  So far I have been using Linux FIFO's (named pipes) rather
> than
> sockets.  I am using FIFO's because it is easier to write shell scripts that
> will create, read from and write to FIFO's than for sockets, and because
> there
> does not seem to be a Java internal socket; i.e there seems to be no Java
> analog
> of AF_UNIX (UNIX internal protocols) sockets.
> 
> So far this approach is working fine under Linux.  I know nothing about
> Widows
> or Windows programming.  I am concerned how portable this will be to Windows.
> 
>  Steve Bankes



Re: Graphics Blaster Extreeme

1998-10-27 Thread Jason Dillon

Nothing.

--jason


On 27-Oct-98 Java News Collector wrote:
> What has this got to do with Java on Linux ?
> 
> At 02:52 PM 10/23/98 -0500, Bryan Davis wrote:
>>I havent gotten my Diamond G460 i740 card to work with X yet.  So i put in
>>my Graphics Blaster Extreeme 8 meg card and got a server from SusE site and
>>it seems to be working fine but its very slow it seems when running Window
>>Maker at 1280x1024 32 bppany suggestions on making it faster besides
>>the obvious of running lower res and color modeslike a different server
>>maybe that supports permedia2 besides the suse one.
>>
>>Thanks in advance.
>>
>>Bryan Davis
>>
>>



OROMatcher & www.oroinc.com

1998-11-10 Thread Jason Dillon

Does anyone know what happened to oroinc.com?  They produced a rather
fullfeatured regular expression engine called OROMatcher, but it seems like
there website has been down for a really long time... and I was wondering if
any of you may know what happened to them.

--jason



RE: Retrieving a fully qualified hostname under NT

1998-11-12 Thread Jason Dillon

Under Linux I don't get the FQDN for my machine.  Primarily because when I set
the machine up i did not specify it's hostname as its FQDN (which I don't think
it should be).  Java should have better access to the local machine's various
names, but then again Java should have lots of better things.

If you get this one figured out please let me know.

--jason


On 12-Nov-98 Mark Hofmann wrote:
> Hi all,
> 
> I've posted that question a few days ago to java.lang.programmer
> but got no response :-(
> But, since this problem is really bugging me, and there might be some
> people in this list that run there progs under NT and Linux, just as me,
> I hope to find a solution here.
> Anyway, here is the problem, easy and simple 
> 
> when I use
> String localhostname=(InetAddress.getLocalHost()).getHostName();
> under Linux I get the fully qualified hostname, under NT just the local
> hostname, eg. host instead of host.my.domain.com
> 
> Our admin says that its an NT feature/problem (you never know) because it
> stores both names separately and returns usually only the local hostname.
> 
> Is there a workaround for that, so I can get the fully qualyfied hostname or
> do I just have to live with that? Or even better is our system misconfigured
> and I can tell our admin that he's wrong (which is always fun ;-) )
> 
> Thanks in advance
> 
>  Mark
> 
> 
> 
> --
> M a r k  H o f m a n n
> Department of Computer Science
> University of Stellenbosch / South Africa
> phone: +27-82-7449880



RE: Retrieving a fully qualified hostname under NT

1998-11-13 Thread Jason Dillon

Try oracle.com

--jason


On 13-Nov-98 Rudhuwan Abu Bakar wrote:
> 
> hello
> 
> sorry for this.
> 
> Where can I get a type 4(?) JDBC driver? I am testing an Oracle server and
> want to use a Java-based client.
> 
> Thank you for your time.
> 
> regards
> duan



Re: Retrieving a fully qualified hostname under NT

1998-11-13 Thread Jason Dillon

You should not have too, but if you want FQDN, then it looks like this might be
the best way.  Otherwise you will have to jump throgh lots of hoops to check if
the value the jvm returns is really a FQDN.

--jason


On 13-Nov-98 Michael Sinz wrote:
> On Fri, 13 Nov 1998 10:01:30 -0800, Christopher Hinds wrote:
> 
>>Try using a reverse DNS lookup with that host's IP address , you should
>>get
>>a fully qualified host name from that. This obviously means you will
>>have to use the DNS protocol on an open socket. The problem with NT is
>>it is using
>>WINS ( NT DNS) to resolve the name and that name returned is a host name
>>known to the NT Promary Domain controller and the WINS Service.
>>Mark Hofmann wrote:
> 
> You should not need to do that much work - the JVM will do it for you
> when you give InetAddress an IP address and then as it for the host
> name.  However, you are correct, the machine would need to be in DNS
> to support this.
> 
> Note that if you are not DNS named, a fully qualified name will have
> little meaning.
> 
> Michael Sinz -- Director of Research & Development, NextBus Inc.
> mailto:[EMAIL PROTECTED] - http://www.nextbus.com
> My place on the web ---> http://www.users.fast.net/~michael_sinz



canonical domain name

1998-06-24 Thread Jason Dillon

Is there any way to get the canonical domain name for localhost?  The machine
that I am working on only returns the short domain name (node name).  If the
machine I am on is named 'lust' and its domain is 'mpath.com' I want to get
'lust.mpath.com' back.

This is the code that I was using to try and get a host name:

String localaddr = java.net.InetAddress.getLocalHost().getHostAddress(); 
System.out.println (java.net.InetAddress.getByName (localaddr));

If anyone knows how to do this it would be a big help if you could let me know.

--jason  




Document Writing Tool

1998-11-25 Thread Jason Dillon

Hey there... this does not really have any direct relationship to either of
these groups... though the product that I need to document does embody both
qualities... anyways do any of you know of a good documentation generation
tool.  I need to get some higher level docs written up so that I don't have to
answer a billion questions every day.  Before I have just written up some plain
html via emacs, but I find that it is very hard to maintain... and well as I
said it's quite plain.

Anyways if one (or more) of you have any favorites I would love to hear about
them.  Mail me directly if you don't want to add to this anti-topic related
matter... but I would guess that other might want to know too.

Thanks

--jason



is this list active?

1998-12-08 Thread Jason Dillon

Is this this still active... was there a list problem?  I have not seen
anything here for quite a while.

--jason



Maximum Heap Size

1998-12-08 Thread Jason Dillon

Is there any way to get the maximum heap size from inside java.  I though that
Runtime.totalMemory() would return that, but it does not.  I current am running
one vm with -mx50m and totalMemory() is returning 5242872, which is about 5mb
not 50mb... unless I am totally crazy.

I am running into a problem where my vm grows too big, to fast (faster than the
consumers of the collected data can consume it), resulting in a
OutOfMemoryError in all running threads.  I changed the vm to run with -mx50m
and it ran for much longer (about 5 days) then it too did the same thing.

Currently I am trying to add some sort of alert before it runs out of memory,
mostly for debugging purposes, but it seems like the set of methods to access
memory do not take into account the maximum limits passed in via -mx.  I can
see that this is a good thing, because I could tell it that it has some insane
amount of memory when it really has a few megs... but is there a happy medium?


If anyone has run into memory problems and found suitable solutions I would
like to hear about them.

--jason



Re: DONT SEND ME ANYMORE STUFF!!!!!!!!!!!!!!!!!!!!!!!!!!!

1998-12-09 Thread Jason Dillon

Why is it so hard to get off this list?  or any list for that matter.

--jason


On 10-Dec-98 Dimitris Vyzovitis wrote:
> Martin Little wrote:
> 
>> Ok, this is getting way out of hand.  Someone is using this mailing list
>> to punish people who irritate them.
>>
> 
> <...>
> 
>> The java-linux mailing list needs to have a confirmation stage in the
>> signup where the person has to respond to the subscription email
>> with a unique #.
>>
>> This way we will hopefully cut down on these types of responses.
> 
> You are right,  something must be done with this condition. We can't go
> throurgh
> the same discussions again.
> And the confirmation idea sounds nice and easy to implement.
> 
> Dimitris



Re: An IDE for C and JAVA

1998-12-22 Thread Jason Dillon

On 22-Dec-98 Kirk Hutchinson wrote:
> First of all, XEmacs is not an IDE.  It's a code editor - that's it.

True Emacs (XEmacs) was not necessarily designed to be an IDE, though it can
be used as one... which means that it is and IDE (and a whole lot more).  Some
people can handle using Emacs as an IDE.  I personally just use Emacs as an
editor... not an IDE, mail reader or web browser... though I could. 

> It's really too bad that more IDEs are not available for Linux.
> Personally, I favor Symantec's Visual Cafe over any other Java IDE,
> but it's not available for Linux.  I remember seeing an ad for a
> product called "NetBeans", or something like that, that was a real
> IDE, and it was written in Java - so theoretically it could run on
> Linux.  I tried it on NT, but it was too slow for my taste.  But,
> it may be worth looking into if you REALLY want to develop Java on
> Linux.

I think that NetBeans is going to be a great IDE once the speed issue is dealt
with.  I used it for a while, and despite the fact that I could not use Emacs
with it (I hope they fix that someday), it was very easy to use and helped me
get some prototypes up and running very quickly.

Perhaps when TowerJ supports AWT/Swing so I can compile a native binary, then
NetBeans will not be too slow to use.  It would be nice if there was some
generic platform independent (and free) IDE out there somewhere, with the power
of Emacs that could be easily modified to fit anyones needs... but I have not
found such a splendid product yet.  Perhaps I should just write one... too bad
Java is so slow or I would.
 
--jason



Re: An IDE for C and JAVA

1998-12-22 Thread Jason Dillon

SN costs too much... and last I checked the free version did not save.

--jason


On 22-Dec-98 David Lucas wrote:
> Have not looked at it in a while, but Source Navigator from Cygnus folks
> might be worth looking at.
> 
> Check out www.cygnus.com for more info.
> 
> Later,
> Dave
> 
> -- 
> 
> ++
>| David Lucas  mailto:[EMAIL PROTECTED]|
>| Lucas Software Engineering   (614) 260-5970|
>| Unix,C++,Java,Client/Server,CORBA  |
> ++
>| GPS Location:  40 deg 00' 51" N,  82 deg 38' 11" W |
>| IMHC: "Jesus Christ is the way, the truth, and the life."  |
>| IMHC: "I know where I am; I know where I'm going." |
> ++
> 
> Notes:
> IMHO: in my humble opinion   IMHC: in my humble conviction 
> PGP Key Block:  finger [EMAIL PROTECTED]
> All trademarks above are those of their respective owners.



Free XDR classes

1998-12-23 Thread Jason Dillon

Does anyone know if there are any free XDR classes for Java avaible?

--jason



RE: Is this list still active?

1998-12-30 Thread Jason Dillon

chances are you were dropped... why? I don't know.  The same thing happened to
me a few weeks ago.

--jason

On 31-Dec-98 John Collins wrote:
> Or did I get dropped by mistake?  The last message I have is from 11/25.
> 
> Thanks.
> 
> John Collins
> [EMAIL PROTECTED]



Creating non-sun RMI Registry

1998-06-29 Thread Jason Dillon

Does anyone happen to know how to install a non-sun RMI Registry object that
Naming will talk to?  I can't seem to find any documentaion on this at all.  I
rather suspect that it is not possible, but why the Registry interfaces?

--jason




jdk v1.2

1998-07-01 Thread Jason Dillon

Is there anymore news on when jdk v1.2 will be ready for Linux?

--jason



RE: Jdk1.2 status ???

1999-01-07 Thread Jason Dillon

Hasn't this message been in the faq for a while?

--jason


On 07-Jan-99 Harold G. Andrews II wrote:
> I hope I'm not violating anybody's intellectual property rights by putting
> this here (if so please accept my humble appologies, and my promise to never
> do it again), but this is cut and pasted from the below web site.
> 
> JDK 1.2
> 
> The system is running on x86 and PowerPC, with ports underway to
> SparcLinux and some other processors. Currently it's native threads only.
> Before we can release, we have to make sure that it passes the tests in the
> Java Compatibility Kit. I think we should be ready to release in less than a
> month from now, and hopefully much sooner.
> 
> 
> I can't guarentee that I'll do this every week, but I'll try to do it when I
> think of it.  Pester me occassionally if you've gone long enough without
> seeing it.  Talk to you later.
> 
> 
> -Andy
> 
> 
>> -Original Message-
>> From: John Summerfield [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, January 06, 1999 6:23 PM
>> To: [EMAIL PROTECTED]
>> Cc: Java-Linux Mailing List
>> Subject: RE: Jdk1.2 status ???
>>
>>
>> On Wed, 6 Jan 1999, Harold G. Andrews II wrote:
>>
>> > Check out
>> >
>> > http://www.blackdown.org/java-linux/ports.html#jdk1.2
>> >
>> > They're pretty good about keeping us posted.
>> >
>>
>> A regular (weekly?) report to the list would be a Good Thing for those of
>> us who have dialup accounts and read mail offline.
>>
>> Please?
>>
>> --
>> Cheers
>> John Summerfield
>> http://os2.ami.com.au/os2/ for OS/2 support.
>> Configuration, networking, combined IBM ftpsites index.
>>
>>



a better jni tutorial

1999-01-07 Thread Jason Dillon

Do any of you know of a better jni tutorial other than the few pages that are
avaible from javasoft?  Or perhaps does anyone know of any jni toolkits to help
those writing native methods?

--jason



RE: jdk 1.2 was released too early

1999-01-08 Thread Jason Dillon

> JNI - still sucks - especially on Solaris

What sucks about it?  Just wondering.

--jason



native synchronized methods

1999-01-10 Thread Jason Dillon

This is not really java-linux specific, but this is the only java related group
that I am subscribed to.  I am wondering if a native method is specified as
synchronized if the jvm will perform the proper MontiorEnter & MonitorExit
calls or if I should call them in the native method.

So for example... does:

native public synchronized byte[] getBytes ();

imply:

JNIEXPORT jbyteArray JNICALL Java___getBytes
  (JNIEnv *env, jobject jthis)
{
(*env)->MonitorEnter(env, jthis);
/* do something */
(*env)->MonitorExit(env, jthis);

return /* some jbyteArray */;
}

--jason



Re: native synchronized methods

1999-01-10 Thread Jason Dillon

Does this apply to native methods as well?  The docs do not really mention
anything about native methods (not in that section anyways).  I am wondering if
it is safe to assume that marking a native method as synchronized will
automagicly protect the object from access by other threads or if I have to
explicitly protect the method in the native code.

--jason


On 11-Jan-99 Juergen Kreileder wrote:
>>>>>> Jason Dillon writes:
> 
> Jason> This is not really java-linux specific, but this is the
> Jason> only java related group that I am subscribed to.  I am
> Jason> wondering if a native method is specified as synchronized
> Jason> if the jvm will perform the proper MontiorEnter &
> Jason> MonitorExit calls or if I should call them in the native
> Jason> method.
> 
> Jason> So for example... does:
> 
> Jason> native public synchronized byte[] getBytes ();
> 
> Jason> imply:
> 
> Jason> JNIEXPORT jbyteArray JNICALL Java___getBytes
> Jason>   (JNIEnv *env, jobject jthis)
> Jason> {
> Jason> (*env)->MonitorEnter(env, jthis);
> Jason> /* do something */
> Jason> (*env)->MonitorExit(env, jthis);
> 
> Jason> return /* some jbyteArray */;
> Jason> }
> 
> Not exactly, the method indeed is synchronized but the synchronization
> is part of the method invocation and return. Section 7.14 of the
> virtual machine specification has more details about that:
> http://java.sun.com/docs/books/vmspec/html/Compiling.doc.html#6530
> 
> 
> Juergen
> 
> -- 
> Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
> Baroper Strasse 301, D-44221 Dortmund, Germany
> Phone: ++49 231/755-5806, Fax: ++49 231/755-5802



Re: native synchronized methods

1999-01-10 Thread Jason Dillon

Cool... thank you for your help.

--jason

On 11-Jan-99 Juergen Kreileder wrote:
>>>>>> Jason Dillon writes:
> 
> Jason> Does this apply to native methods as well?  The docs do not
> Jason> really mention anything about native methods (not in that
> Jason> section anyways).  I am wondering if it is safe to assume
> Jason> that marking a native method as synchronized will
> Jason> automagicly protect the object from access by other threads
> Jason> or if I have to explicitly protect the method in the native
> Jason> code.
> 
> Yes, this applies to native methods as well and at least the JDK 
> implements it correctly.
> 
> Here's a little test program:
> 
> C.java:
> class C
> {
> static {
> System.loadLibrary("synctest");
> }
> 
> native synchronized void ok(); 
> native void bad(); 
> 
> public static void main(String[] args)
> {
> C c = new C();
> c.ok();
> System.out.println("--");
> c.bad();
> }
> }
> 
> synctest.c:
>#include 
>#include "C.h"
> 
> JNIEXPORT void JNICALL 
> Java_C_ok(JNIEnv* env, jobject this)
> {
> jclass cls = (*env)->FindClass(env, "C");
> jmethodID mid = (*env)->GetMethodID(env, cls, "notify", "()V");
> (*env)->CallObjectMethod(env, this, mid);
> if ((*env)->ExceptionOccurred(env)) {
> (*env)->ExceptionDescribe(env);
> }
> }
> 
> JNIEXPORT void JNICALL 
> Java_C_bad  (JNIEnv* env, jobject this)
> {
> jclass cls = (*env)->FindClass(env, "C");
> jmethodID mid = (*env)->GetMethodID(env, cls, "notify", "()V");
> (*env)->CallObjectMethod(env, this, mid);
> if ((*env)->ExceptionOccurred(env)) {
> (*env)->ExceptionDescribe(env);
> }
> }
> 
> The call to c.ok() should be ok but c.bad() should fail, i.e. the correct
> output is:
> $ LD_LIBRARY_PATH=. java C
> --
> java.lang.IllegalMonitorStateException: current thread not owner
> at C.main(C.java:16)
> 
> 
> Juergen
> 
> Jason> On 11-Jan-99 Juergen Kreileder wrote:
> >>>>>>> Jason Dillon writes:
> >> 
> Jason> This is not really java-linux specific, but this is the
> Jason> only java related group that I am subscribed to.  I am
> Jason> wondering if a native method is specified as synchronized
> Jason> if the jvm will perform the proper MontiorEnter &
> Jason> MonitorExit calls or if I should call them in the native
> Jason> method.
> >> 
> Jason> So for example... does:
> >> 
> Jason> native public synchronized byte[] getBytes ();
> >> 
> Jason> imply:
> >> 
> Jason> JNIEXPORT jbyteArray JNICALL Java___getBytes
> Jason> (JNIEnv *env, jobject jthis)
> Jason> {
> Jason> (*env)->MonitorEnter(env, jthis);
> Jason> /* do something */
> Jason> (*env)->MonitorExit(env, jthis);
> >> 
> Jason> return /* some jbyteArray */;
> Jason> }
> >> 
> >> Not exactly, the method indeed is synchronized but the synchronization
> >> is part of the method invocation and return. Section 7.14 of the
> >> virtual machine specification has more details about that:
> >> http://java.sun.com/docs/books/vmspec/html/Compiling.doc.html#6530
> >> 
> >> 
> >> Juergen
> >> 
> >> -- 
> >> Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
> >> Baroper Strasse 301, D-44221 Dortmund, Germany
> >> Phone: ++49 231/755-5806, Fax: ++49 231/755-5802



RE: perl2java

1999-01-11 Thread Jason Dillon

On 11-Jan-99 Rick Bauman wrote:

> ...a perl2java converter..

that would be cool!

--jason



class finalizer?

1999-01-13 Thread Jason Dillon

Is there any way to detect when a class is going to be unloaded from the vm
sort of the opposite of static { ... }?

--jason



Re: class finalizer?

1999-01-14 Thread Jason Dillon

a static finalize method causes the compiler (jikes in this case) to return:

93. public static void finalize ()
   <->
*** Error: The static method "void finalize();" cannot hide the instance method

--jason 

On 14-Jan-99 Chris Abbey wrote:
>>Is there any way to detect when a class is going to be unloaded from the
> vm
>>sort of the opposite of static { ... }?
>>
>>--jason
> 
> In theory or in practice?
> 
> In theory the JLS says so, put a static method finalize() in the class
> (sorry, don't remember the protection, maybe public??) and the VM is
> supposed to call the method before unloading the class.
> 
> In practice . . . well, even Sun never bothered to implement it, and
> I doubt the JCK checks for it either. IIRC someone posted a quote from
> bugParade re this; check the archives if you're interested or search
> for finalization in bugParade.
> 
> There was also a suggestion to strike that requirement from the JLS,
> hopefully this was given some serious thought before being accepted!
> 
> To keep this Java && Linux, are the Blackdowner's considering doing
> more than just porting? Not to imply that porting isn't a major
> undertaking in and of itself. But are any of you working on enhancements
> or bugfixes as well? -=Chris
> 
> <*> cabbey at rconnect dot com  http://homepage.rconnect.com/cabbey/ <*>
> Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html
> 
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12 http://www.geekcode.com
> GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL UA++$ P++ L++ E- W++ N+ o? K? !P
> w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
> --END GEEK CODE BLOCK--



Re: class finalizer?

1999-01-15 Thread Jason Dillon

hrm... that is very annoying... thanks.

--jason

On 15-Jan-99 Chris Abbey wrote:
> DOH! The signature was supposed to be:
> static void classFinalize() throws Throwable
> the one I gave was (obviously) instance finalization... see JLS §12.7.
> 
> But it's a academic now, Javasoft has removed it from the JLS -- see
> http://java.sun.com/docs/books/jls/class-finalization-rationale.html
> for details. -=Chris
> 
> At 11:56 PM 1/13/99 -0800, Jason Dillon wrote:
>>a static finalize method causes the compiler (jikes in this case) to return:
>>
>>93. public static void finalize ()
>>   <->
>>*** Error: The static method "void finalize();" cannot hide the instance
> method
>>
>>--jason 
>>
> 
> 
> <*> cabbey at rconnect dot com  http://homepage.rconnect.com/cabbey/ <*>
> Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html
> 
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12 http://www.geekcode.com
> GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL UA++$ P++ L++ E- W++ N+ o? K? !P
> w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
> --END GEEK CODE BLOCK--



RE: native method

1999-01-18 Thread Jason Dillon

I found this very useful:
http://java.sun.com/docs/books/tutorial/native1.1/index.html

--jason

On 15-Jan-99 Jinpeng Xie wrote:
> hi,
> 
>   I want to implement file permission in JAVA for linux. I know
>   Java can call c function or system functions. However, I don't know
>   the detail. Can you direct me in info or a book?
> 
>   JInpeng



javah replacement

1999-02-10 Thread Jason Dillon

Do any of you know of a faster javah replacement?

--jason



Re: will there be a jdk 2.x??

1999-02-12 Thread Jason Dillon

I think it is just a myth that they are working on 1.2... soon it will turn
into legend.  ;P

--jason

On 12-Feb-99 Matt Welsh wrote:
> 
> I think it would be a terrific idea for the Blackdown web page to have
> a note explaining the progress of JDK 1.2 (as in "don't ask"). If I get 
> one more message on this list about JDK 1.2 I'm going to explode!
> 
> mdw
> 
> Chris Tomlinson <[EMAIL PROTECTED]> writes:
>> There used to be a note that jdk1.2/2.0 was 'in progress' now that is no
>> longer there. What is the status for jdk 2.0 for linux??
>> 
>> Thanks and ciao,
>> Christine Tomlinson
>> 
>> 



setEnabled()

1999-02-19 Thread Jason Dillon

Do any of you know if setEnabled() on a swing component is supposed to notify
all of its children that it is disabled?  I thought that is was supposed to...
but I can't seem to get it to work.

--jason



rmic is way slow

1998-07-27 Thread Jason Dillon

I am running into a real bottleneck when compiling rmi applications
with: java_dyn full version "Linux_JDK_1.1.6_v2".  rmic takes forever to run on
a single class.  At first I thought it was just a jdk 1.x problem, but when
running sun's 1.1.6 rmic finishes in about 1/30th the time that Linux does.

Does anyone know if there is a way to speed up rmic on Linux?

--jason