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--



A file system for organising java stuff ?

1999-01-15 Thread Maksim Lin

Apologies for cross posting this to both mail-lists, but I wanted to get
as broad a response about this from people using java & these are the
java-related groups that I'm subscribed to.

Anyways, what occurred to me during the new years break is to arrange my
java stuff into a file system along the lines used in linux systems
(unix in general?).  

As it says below, this was all pretty much a thing that came to me and
sounded good as I jotted it down.  I don't mean for this to be foisted
upon anyone, but it's helped me organise my files and I thought that if
other people liked the idea and wanted to use it then it might make life
a bit easier (or maybe it's a really stupid idea and everyone already
does it a better way) - in any case please let me know.

Thanks,
Maksim.

==
JFS - Java File System

This is the system I have decided to use for organising all my Java
related files.  It is
based loosely on the linux standard filesystem organisation.

The highlevel directories are:
/-
 |-/bin This holds all PLATFORM SPECIFIC executables used by java apps, 
 |  including non-binary files like platform specific shell scripts. 
 |
 |-/lib This holds all of the class files, arranged in directories as
per 
 |  their packages.
 |
 |-/zlibThis holds class files which are packaged (and possibly
compressed) in 
 |  zip or jar files.
 |
 |-/res This holds all "java-wide" resources such as icons.
 |
 |-/src As the name suggests this contains java source code.  Note that
it
 |  can also hold non-java source code as long as that code produces 
 |  java bytecode class files, e.g. JPython.
 |
 |-/doc This holds all of JavaDoc programming documentation for the
java 
 |  code in the JSFS, note all USER documentation should go into the 
 |  man dir structure and NOT here. 
 |
 |-/tmp Location for temporary files created by Java apps.
 |
 |-/man Here goes all user documentation, manuals, howto, faqs, etc.  
 |  A X-platform format such as HTML is preferred, although other types
 |  are exceptable as long as java-based readers are provided or
 |  are fairly X-platform, e.g. PDF, ASCII, (PostScript??).
 |
 |-/etc Here go all the (Java) system-wide config files these should
proferably
 |  use the java "properties" format  so that a the config files are
 |  human-readable text and a nice graphical way can be provided for
editing
 |  any setting in a standard way.
 |
 |-/var And here go all of the config files used by java apps.  These 
should preferrably use the java's "properties" format.

Notes:

The root directory of the above structure can be anywhere.  I currently
have the
above in a subdir called ~/Java, but I suppose having it is /usr/local
might be
a good system-wide place to put it on a *nix box (really it's not very
important
as long as there is some way to point the JVM to it).  

Some things that I'm still not sure about is for instance should the JVM
go
into the bin directory heirarchy or should it be outside, in whatever
place the
underlying platform puts it's executables, at the moment I think it
should be
the later.  Likewise for the standard JDK API classes, at the moment I
think
they should go in the zlib dir, but I'm not even sure if the concept of
the
zlib is a good idea, if it should be a top-level dir or inside lib (see
below
for more on this issue).  It is a new concept, not one taken form
linuxs' FSS
so I'm on pretty shacky ground here, I'll leave it to time, experience
and
feedback to decide it's future. The res directory heiracrchy is another
one
where I have gone out on a limb.  I think it would be useful to have
something
like this, where things like common icons, bitmaps, sounds, whatever
could be
stored for use by all java apps (again any comments on this would be
appreciated).

Another thing up for grabs with the lib & zlib directories is which
order the
should be searched by the JVM when looking for classes.  At the moment I
suggest lib then zlib, since the main reason for having a lib (for me
anyway)
is the ability to quickly and easily drop-in replacements and new
versions of
class files that I'm working on.  However with the availability of
virtual-filesystems to present a zip/jar archive files as if they are
part of
the filesystem (see the Midnight Commander program for what I mean) this
might
soon become a moot issue and the lib and zlib could be combined into a
single
lib directory containing _only_ archive files (the avoidance of
namespace
clashes in this case is an issue in it self).


Bugs:

I think that one problem with the above, in fact with systems in general
such
as linux and java, which have continually revised libraries is
versioning.  On
unixy system

testing - two days with no mail

1999-01-15 Thread John Summerfield

Just wondering if the list's broken.

-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



native method

1999-01-15 Thread Jinpeng Xie

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



SNMP Java source code

1999-01-15 Thread Juan Carlos

Hi,

Anybody knows an address where can I download the source code (in
Java) of any tool for SNMP?

Thanks




_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



Re: jsdk2.0 connection problem

1999-01-15 Thread tpeter



Just a little update on this connection problem.  I've done a little
investigating and found that the error only occures when the "post" method
is used to invoke the servlet.  When "get" is used everything works fine.  




On Thu, 18 Nov 1999, Gordon Keith wrote:

> [EMAIL PROTECTED] wrote:
> > 
> > When I run the jsdk2.0 server and try to bring up a servlet it gives me
> > the following error:
> > 
> > "A network error occured while netscape was recieving data: (Network
> > error:
> > connection reset by peer.)
> > 
> > try connecting again."
> > 
> > This doesn't happen when using the jsdk1.0 version.
> 
> I certainly got this problem with jsdk1.0 and 2.0, but it happens much
> earlier and more often in 2.0. The problem doesn't occur on Solaris or
> NT using the same JSDK (which is pure java).
> 
> I found it occurred on about half the connections on 1.0, but normally
> after all the data had been sent to the client.
> 
> With 2.0 it occurs much more often, often before significant amounts of
> data have been sent to the client.
> 
> I suspect some sort of bug in JSDK that relies on some sort of automatic
> buffer flushing that doesn't occur on the linux JVM. 
> 
> I think I've tested under both the blackdown 1.1.7 and 1.2pre2. 
> 
> I don't think the problem exists under the IBM JVMs.
> 
> I haven't tested extensively, but those are my observations.
> 
> Let me know if you find a solution.
> 
> Hope it helps
> Gordon
> 
> 
> Gordon Keith
> Programmer
> Marine Science Support
> Australian Antarctic Division
> http://www.antdiv.gov.au
> 
> 
> --
> 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]