Re: JDBC for mysql?

1999-10-15 Thread jools enticknap


Hi Brian

There are two available drivers for MySQL.

http://www.tcx.se/Contrib/

Look for JDBC. :-)

I use the mm.mysql driver, the twz driver seems to be a little overkil.

Best regards

--Jools

P.S.

If you have any Linux JDBC questions, TCX have there own mailing list, I 
suggest that you join it !






>From: Brian Gilman <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JDBC for mysql?
>Date: Fri, 15 Oct 1999 00:46:41 -0400
>
>Hello all!
>
>   although this is not *exactly* a java Linux question, I
>believe it is close enough.Can someone point me to a mysql driver
>for jdbc? Thanks in advance!
>
>   sincerely,
>
>   Brian Gilman
>-BEGIN PGP PUBLIC KEY BLOCK-
>Version: PGPfreeware 6.5.1 for non-commercial use 
>
>mQENAzfgDVUAAAEIALTF+F7yvAThOGDVYagMf8wL8ZWjTNn9xzY9t8OBWyQwJO6b73ozK6
>nA148NhNkxGLBgH0FVZ3EHOW5Fxvjc6/TYuUPXjJ4R3o6HxyM/wbWYH/Hjz7kgIYdKQBBH
>bhvaVzWuNfjqsnsB9fp2bkG+rlDM7CKyZQc23Kwgrk7rqyaBBBzgwom7fXZVjnGoIqCmLS
>B3je/HgbC5l0EHsSFxKbhF904R0HCEaYcVksSjbsATW1Qu0L5t0hMAsiitQ5/ToXFYWFwx
>7AexVHPHzWOZ8VZQUxmfi5v00r27MdffXH/mqipvKEGl1TIxpo71Pm5dbfAJrw5X6t2vv7
>IOmfw4INEABRG0JkJyaWFuIEdpbG1hbiA8Z2lsbWFuYkB2dXNlci51bmlvbi5lZHU+iQEV
>AwUQN+ANVb+yDpn8OCDRAQEtUQf/T9dMe4iW9885Om0KrzvcFwmYcHKEBc4ykwEPH0+J2C
>sjA9lWpU03CIIY+t/omuw5GcArildpZYFB0S145+90APVg6dsRF6b2Kuw7FMPdL8Yz7vWi
>vjT/2rhHsvYBAQmcsrLrPjhfyD0kTByg/CUSp2rVAbmR54zUsMXe6bDdleOW4rGo+jepf6
>J1TsCXEFzbym1nFX5aZ9oU8KtfQky8/E85z7JdDvDNC0nC5jWPwGpyrUNrpCWN+TQSpQFP
>xNrqrTU19X4+Oe1Gyzyf363tUsS/jMnvAKOLkWsI4k75wY/HHTvn0lq3GWeRwj2BJLeihG
>XvaiWEi3lRwCKiGUZKKg===wwNh
>-END PGP PUBLIC KEY BLOCK-
>
>
>--
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact 
>[EMAIL PROTECTED]
>

__
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: 3D API

1999-10-15 Thread Rob Nugent

I suggest you see:

http://www.blackdown.org/java-linux/jdk1.2-status/java-3d-status.html

I've had it working on RedHat 6.0

Rob

[EMAIL PROTECTED] wrote:

> Ladies, Gentlemen:
>
> Greetings once again!
>
> I've been looking at some stuff concerning the 3D API over at the Java
> Developers Connection.
>
> Is this stuff included in the blackdown 1.2 prerelease or is it
> something I have to add from sun? does it even work with the blackdown
> jdk?
>
> Man, I'm just FULL of questions...
>
> Best Regards,
> James
>
> --
> "The reverse side also has a |James G. Stallings II
>  reverse side"   | http://angelfire.com/id/videoranger
> - Japanese Proverb   |  ''Live Long and Prosper''
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
http://www.unikix.com
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363



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



Re: reminder - this list is for Java & Linux

1999-10-15 Thread Nicholas Wright

Hi

> We've had a lot of discussions on the list recently that were generic
> questions about Java, questions that had nothing to do with Linux. I'm
> sending this note to remind everyone that this mailing list is about
> Java on Linux. If you have generic Java questions, they do not belong
> here. I encourage list members not to reply to questions unless they
> have some interest to Linux users.
> I apologize if this sounds unreasonable, but it's important that we
> keep this mailing list focussed on Linux. There are plenty of other
> places to ask generic Java questions.

The same problem exists on the Advanced-Java list... kinda but it's
more a, "Is that question advanced?" type issue.  Even if it's not, somebody 
else answers the question and so people keep asking.

They've considered moving the group to a "more" advanced-java mailing list, 
but then it's just getting silly.  Eventually you'll get the 
Super-elite-extremely-really-really advanced java mailing list...

I suppose what I'm really trying to say is: good sentiment, but don't expect 
miracles.

Nicholas

Anyways, I've got this Java program and it doesn't compile ;)

===
Nicholas WrightImperial Software Technology   Software Engineer
---
Email : [EMAIL PROTECTED] or [EMAIL PROTECTED]
Berkshire House120 Hawthorne Ave, #101
252 Kings Road Palo Alto
Reading RG1 4HP United Kingdom California 94301 USA
Tel: +44 118 958 7055  Tel: 650 688 0200
FAX: +44 118 958 9005  FAX: 650 688 1054
===  
**  VISAJ AT http://www.ist.co.uk/visaj  **
===


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



Re: Changing the font on Swing slider

1999-10-15 Thread Antonio Moretti

On Mon, 11 Oct 1999, Jacob Nikom wrote:

> Date: Mon, 11 Oct 1999 12:23:55 -0400
> From: Jacob Nikom <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Changing the font on Swing slider
> 
> Hi Philippe,
> 
> Thank you very much for your suggestion - it work very well
> with TabbedPane component. However, when I tried to apply it
> to SLider widget, it did not work.
> 
> I got the info about all PLAF properties by calling
> UIManager.getDefaults().
> Here is the simple program:
> 
> import java.util.*;
> 
> class Plaf
> {
>public static void main(String[] args)
>{
>   Hashtable defaultProps = UIManager.getDefaults();
>   
>   Enumeration enum = defaultProps.keys();
>   while(enum.hasMoreElements())
>   {
>  Object key = enum.nextElement();
>  System.out.println("Property: " + key); 
>  System.out.println("Value:" + defaultProps.get(key) +
> '\n');
>   }
>}
> }
> 
> However, analyzing the long list of properties I found no Slider font.
> This is strange, because Slider does have font for its title and for
> its ticks. Do you think I made some mistakes and the font property
> does exist for Slider?
> 
> Jacob
> 
> 
> 
> Philippe Hacquin wrote:
> > 
> > I had similar problems using diffrenet Swing components.
> > Try
> > UIManager.put("TabbedPane.font", myFont);
> > 
> > and other parameters that you can retrieve in Swing's WindowsLookAndFeel.java or
> > other LAF classes.
> > 
> > On Sat, 09 Oct 1999, Alex M. wrote:
> > > Yeah... I think it is in com.sun.plaf.DefaultLookAndFeel or something like
> > > that.
> > >
> > > On Fri, 8 Oct 1999, Jacob Nikom wrote:
> > >
> > > > Do you know where the information about
> > > > current settings is located?
> > > >
> > > > Jacob
> > > >
> > > > [EMAIL PROTECTED] wrote:
> > > > >
> > > > > hmmm... if that doesn't work, you might try overriding the PLAF for that
> > > > > component.
> > > > >
> > > > > On Thu, 7 Oct 1999, Jacob Nikom wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am trying to change the font style and size on some
> > > > > > of the Swing widgets, mostly JSlider (tick marks numbers), TabbedPanes
> > > > > > (tab names), etc. You cannot not set them up
> > > > > > directly with setFont.
> > > > > >
> > > > > > I could not find any information how to do it. Do you
> > > > > > have any idea how to do it?
> > > > > >
> > > > > > Thank you,
> > > > > >
> > > > > > Jacob Nikom
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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]
> > > >
> > > >
> > > > --
> > > > 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]
> 
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 
unsubscribe

    ##  
# #  # ###  ###  
   #   #  #   ##
  ##   ##  #  ## ###  ###00 000  0     000
  ##   ##  #   #  ##   ###  ### 0 0 0  0   00  00
  ##  ###  ##  #  ##   ###  ###0oo0 000000000
  ##  # #  ## ##   ###  ###   0   0 0 000 
  ##  # #  ## ##   ###  ###  00 0  0   0   00
###
### LA MUSICA CHIAMA GLI ARTISTI ! 
###



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



Re:JDBC for mysql?

1999-10-15 Thread Steve Nguyen

The best one that we have been using for our producrtion environment (hundreds of 
concurrent users) is MM mySQL type-4 JDBC driver of Mark Matthews at 
http://www.worldserver.com/mm.mysql Version 1.2 is good. It also supports JDBC2.0 spec 
(I have not tested yet BTW).

Just to remind: it works best with blackdown JDK (any version), but not with  Kaffe 
(not that I was sucessfully done with Kaffe 1.0b4).

Steve Nguyen
[EMAIL PROTECTED]
C.E.O.
KBMail Software & Service Provider
http://www.kbmail.com

"Plan - Do - Review --> Success"


 Original message 
Date: Fri, 15 Oct 1999 00:46:41 -0400
To: [EMAIL PROTECTED]
From: Brian Gilman <[EMAIL PROTECTED]>
Subject: JDBC for mysql?
--

Hello all!

although this is not *exactly* a java Linux question, I 
believe it is close enough.Can someone point me to a mysql driver 
for jdbc? Thanks in advance!

sincerely,

Brian Gilman
-BEGIN PGP PUBLIC KEY BLOCK-
Version: PGPfreeware 6.5.1 for non-commercial use 

mQENAzfgDVUAAAEIALTF+F7yvAThOGDVYagMf8wL8ZWjTNn9xzY9t8OBWyQwJO6b73ozK6 
nA148NhNkxGLBgH0FVZ3EHOW5Fxvjc6/TYuUPXjJ4R3o6HxyM/wbWYH/Hjz7kgIYdKQBBH 
bhvaVzWuNfjqsnsB9fp2bkG+rlDM7CKyZQc23Kwgrk7rqyaBBBzgwom7fXZVjnGoIqCmLS 
B3je/HgbC5l0EHsSFxKbhF904R0HCEaYcVksSjbsATW1Qu0L5t0hMAsiitQ5/ToXFYWFwx 
7AexVHPHzWOZ8VZQUxmfi5v00r27MdffXH/mqipvKEGl1TIxpo71Pm5dbfAJrw5X6t2vv7 
IOmfw4INEABRG0JkJyaWFuIEdpbG1hbiA8Z2lsbWFuYkB2dXNlci51bmlvbi5lZHU+iQEV 
AwUQN+ANVb+yDpn8OCDRAQEtUQf/T9dMe4iW9885Om0KrzvcFwmYcHKEBc4ykwEPH0+J2C 
sjA9lWpU03CIIY+t/omuw5GcArildpZYFB0S145+90APVg6dsRF6b2Kuw7FMPdL8Yz7vWi 
vjT/2rhHsvYBAQmcsrLrPjhfyD0kTByg/CUSp2rVAbmR54zUsMXe6bDdleOW4rGo+jepf6 
J1TsCXEFzbym1nFX5aZ9oU8KtfQky8/E85z7JdDvDNC0nC5jWPwGpyrUNrpCWN+TQSpQFP 
xNrqrTU19X4+Oe1Gyzyf363tUsS/jMnvAKOLkWsI4k75wY/HHTvn0lq3GWeRwj2BJLeihG 
XvaiWEi3lRwCKiGUZKKg===wwNh
-END PGP PUBLIC KEY BLOCK-


--
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: A Global instance ?

1999-10-15 Thread Peter Pilgrim



[EMAIL PROTECTED] wrote:
> 
> Marc, I don't entirely understand what you have pointed out here. It sounds 
>important, but I have to admit I don't get it.
> Do you mean to say that, for proper synchronization, we must synchronize the whole 
>getInstance method? I would think that if
> another thread tried to access any of the class's fields, it would either be blocked 
>at the synchronized block (if it was in
> process of obtaining a reference for the first time), or it would already have a 
>valid reference to the singleton, in which
> case why would the fields be bogus?
> 
> And how can a thread pre-read contents of an object, if it has yet to obtain a bona 
>fide instance of it?
> 
> I am still finding my thread sea legs, so to speak, so apologies for being so blind 
>to this.
> 
> -Armen
> 
> > On Wed, 13 Oct 1999, Peter Pilgrim wrote:
> >
> > > Or perhaps alternatively the lazy singleton.
> > >
> > > public class NetworkPrinter {
> > >
> > >   protected PaperStackpaper
> > >   protected static Object locker = new Object();
> > >   private static NetworkPrinter   thePrinter = null;
> > >
> > >
> > >   private NetworkPrinter ( )
> > >   {
> > >   }
> > >
> > >   public static NetworkPrinter getInstance()
> > >   {
> > >   if ( thePrinter != null ) {
> > >   // Thread Safety - Double Guard technique
> > >  synchronized( locker )
> > >   if ( thePrinter != null ) {
> > >thePrinter = new NetworkPrinter();
> > >  }
> > >   }
> > >   return (thePrinter);
> >
> > (yea, this is somewhat offtopic, but...)
> >
> > This is not properly synchronized, as I have been taught by someone with
> > more sense than I have.
> >
> > The basic problem revolves around the fact that synchronization is
> > not just for serialization but is also for visibility.  ie. without
> > synchronization, you are not always guaranteed that a change made by
> > one thread is visible in another.  Sometimes this is ok.
> >
> > Although the JLS guarantees that the thePrinter reference must be
> > fully visible if it is visible, it doesn't guarantee that instance
> > variables, etc. of the class that thePrinter references are also
> > visible.  So if the creating thread is still in the synchronized
> > block, then the value stored in thePrinter may be copied to main
> > memory, but things like instance variables may not be, so when
> > another thread tries to use them they are bogus.
> >
> > In addition, apparently another thread could have pre-read the contents
> > of the object referenced by thePrinter before it reads the reference
> > in thePrinter.
> >
> > What it boils down to is you can't cheat on synchronization.
> >

In fact code is wrong, at least in the conditionals statements.
Sorry about that

  public static NetworkPrinter getInstance()
   {
// Point *A*
   if ( thePrinter == null ) {
  // Thread Safety - Double Guard technique
  // Point *B*
  synchronized( locker ) {
// Point *C*
// SHOULD BE A CRITICAL SECTION 
   if ( thePrinter == null ) {
thePrinter = new NetworkPrinter();
  }
   }
return (thePrinter);
}

I can't understand what is the problem with the double guard technique.
You synchronize threads on the `locker' object and that should be 
enough. In fact it should act like a `Mutex' (mutual exclusion).

If you have two threads t1 and t2 racing to create the singleton
which is not yet inited yet at Point A, both will get to Point B.
However only one of the two threads, assume by random choice t2, 
will get to Point C, because of the use of the synchronized object 
`locker'. Thread t2 will be allowed access to the critical section,
and t1 will be blocked until t2 leaves the critical section.
t2 will create the singleton and return it to its calling 
thread. As it leaves the monitor `locker' it will unblock t1
from waiting, t1 will enter the critical section, and 
discovers that the singleton `thePrinter' already exists.
It therefore returns the same singleton that t2 created.

So converning invisiblity and visibility what's the problem?

-- 

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]



Re: reminder - this list is for Java & Linux

1999-10-15 Thread Jacob Nikom

Hi,

I don't see too much harm in asking little more generic 
questions. One of our purpose is to learn from someone 
else problems. The more good and meaningful problems we 
have, the better.

It is really difficult to classify the question before you know
the answer: is it Java - Linux, Linux or Java problem.

Currently our traffic is not bad at all. We have about 10 - 15
messages per day. This is not a lot comparing for example with 
Java for Media Framework listserver - more than 30 per day.

Less than five usually means that the listserver is dying.

Jacob Nikom



Nicholas Wright wrote:
> 
> Hi
> 
> > We've had a lot of discussions on the list recently that were generic
> > questions about Java, questions that had nothing to do with Linux. I'm
> > sending this note to remind everyone that this mailing list is about
> > Java on Linux. If you have generic Java questions, they do not belong
> > here. I encourage list members not to reply to questions unless they
> > have some interest to Linux users.
> > I apologize if this sounds unreasonable, but it's important that we
> > keep this mailing list focussed on Linux. There are plenty of other
> > places to ask generic Java questions.
> 
> The same problem exists on the Advanced-Java list... kinda but it's
> more a, "Is that question advanced?" type issue.  Even if it's not, somebody
> else answers the question and so people keep asking.
> 
> They've considered moving the group to a "more" advanced-java mailing list,
> but then it's just getting silly.  Eventually you'll get the
> Super-elite-extremely-really-really advanced java mailing list...
> 
> I suppose what I'm really trying to say is: good sentiment, but don't expect
> miracles.
> 
> Nicholas
> 
> Anyways, I've got this Java program and it doesn't compile ;)
> 
> ===
> Nicholas WrightImperial Software Technology   Software Engineer
> ---
> Email : [EMAIL PROTECTED] or [EMAIL PROTECTED]
> Berkshire House120 Hawthorne Ave, #101
> 252 Kings Road Palo Alto
> Reading RG1 4HP United Kingdom California 94301 USA
> Tel: +44 118 958 7055  Tel: 650 688 0200
> FAX: +44 118 958 9005  FAX: 650 688 1054
> ===
> **  VISAJ AT http://www.ist.co.uk/visaj  **
> ===
> 
> --
> 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: reminder - this list is for Java & Linux

1999-10-15 Thread Burkhart,Kelly



> -Original Message-
> From: Nicholas Wright [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 15, 1999 4:09 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: reminder - this list is for Java & Linux
> 
> 
> Hi
> 
> > We've had a lot of discussions on the list recently that 
> were generic
> > questions about Java, questions that had nothing to do with 
> Linux. I'm
> > sending this note to remind everyone that this mailing list is about
> > Java on Linux. If you have generic Java questions, they do 
> not belong
> > here. I encourage list members not to reply to questions unless they
> > have some interest to Linux users.
> > I apologize if this sounds unreasonable, but it's important that we
> > keep this mailing list focussed on Linux. There are plenty of other
> > places to ask generic Java questions.
> 
> The same problem exists on the Advanced-Java list... 
> kinda but it's
> more a, "Is that question advanced?" type issue.  Even if 
> it's not, somebody 
> else answers the question and so people keep asking.
> 
> They've considered moving the group to a "more" advanced-java 
> mailing list, 
> but then it's just getting silly.  Eventually you'll get the 
> Super-elite-extremely-really-really advanced java mailing list...
> 
> I suppose what I'm really trying to say is: good sentiment, 
> but don't expect 
> miracles.
> 

Perhaps a miracle is too much to expect.

But a reminder every now and then doesn't hurt.  Too much off topic trafic
on a mailing list will cause some people who's input may be valuable to
leave the list.


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



RE: java-linux-digest Digest V99 #49

1999-10-15 Thread Dan Kelly




How do 
I unsubscribe from the java-linux-digest mailing list?
 
[EMAIL PROTECTED]
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Sent: Friday, 
October 15, 1999 7:06 AMTo: 
[EMAIL PROTECTED]Subject: java-linux-digest Digest 
V99 #49


Re: A Global instance ?

1999-10-15 Thread Marc Slemko

On Fri, 15 Oct 1999, Peter Pilgrim wrote:

> In fact code is wrong, at least in the conditionals statements.
> Sorry about that
> 
>   public static NetworkPrinter getInstance()
>{
>   // Point *A*
>if ( thePrinter == null ) {
>   // Thread Safety - Double Guard technique
> // Point *B*
>   synchronized( locker ) {
>   // Point *C*
>   // SHOULD BE A CRITICAL SECTION 
>if ( thePrinter == null ) {
> thePrinter = new NetworkPrinter();
>   }
>}
> return (thePrinter);
>   }
> 
> I can't understand what is the problem with the double guard technique.
> You synchronize threads on the `locker' object and that should be 
> enough. In fact it should act like a `Mutex' (mutual exclusion).

You are not synchronizing threads on the locker object.  If you
were doing that, you would have synchronization on the locker object
for each thread that tried to use thePrinter.  You don't.  Nothing
stops one thread from still being in the synchronized section while
another thread uses a partially stored result.

> If you have two threads t1 and t2 racing to create the singleton
> which is not yet inited yet at Point A, both will get to Point B.
> However only one of the two threads, assume by random choice t2, 
> will get to Point C, because of the use of the synchronized object 
> `locker'. Thread t2 will be allowed access to the critical section,
> and t1 will be blocked until t2 leaves the critical section.
> t2 will create the singleton and return it to its calling 
> thread. As it leaves the monitor `locker' it will unblock t1
> from waiting, t1 will enter the critical section, and 
> discovers that the singleton `thePrinter' already exists.
> It therefore returns the same singleton that t2 created.
> 
> So converning invisiblity and visibility what's the problem?

Your mistake is in assuming that just because the thePrinter reference is
visible, everything that it references is visible, ie. the complete object
is visible.  That is _not_ necessarily the case because Java does _not_
guarantee that all changes will be visible just because one is and because
you have no synchronization on the thread that sees the thePrinter
reference before entering the synchronized section.

The thePrinter reference is not everything you need to be able to see, you
have to be able to see the object itself as well.

You need to read chapter 17 of the JLS very carefully:

http://java.sun.com/docs/books/jls/html/17.doc.html#30206

It summarizes things as:

- Proper use of synchronization constructs will allow reliable
  transmission of values or sets of values from one thread to
  another through shared variables.

- When a thread uses the value of a variable, the value it
  obtains is in fact a value stored into the variable by that
  thread or by some other thread. This is true even if the program
  does not contain code for proper synchronization. For example,
  if two threads store references to different objects into the
  same reference value, the variable will subsequently contain
  a reference to one object or the other, not a reference to some
  other object or a corrupted reference value. (There is a special
  exception for long and double values; see 17.4.)

- In the absence of explicit synchronization, a Java implementation
  is free to update the main memory in an order that may be
  surprising. Therefore the programmer who prefers to avoid
  surprises should use explicit synchronization.

"a Java implementation is free to update the main memory in an order that
may be surprising."  

In another section where it describes the constraints for actions on 
a variable by a thread, it states:

Provided that all the constraints above and below are obeyed, a
load or store action may be issued at any time by any thread on
any variable, at the whim of the implementation.

Section 17.8 goes on:

If a variable is not declared volatile, then the rules in the
previous sections are relaxed slightly to allow store actions to
occur earlier than would otherwise be permitted. The purpose of
this relaxation is to allow optimizing Java compilers to perform
certain kinds of code rearrangement that preserve the semantics of
properly synchronized programs but might be caught in the act of
performing memory actions out of order by programs that are not
properly synchronized.

See also section 17.11 for a sample program demonstrating the effects 
of out of order writes.

(I'll be quiet now and won't be offtopic any more...)


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

Re: reminder - this list is for Java & Linux

1999-10-15 Thread John Rousseau


On Friday Oct 15, 1999, Jacob Nikom wrote:

> I don't see too much harm in asking little more generic 
> questions. One of our purpose is to learn from someone 
> else problems. The more good and meaningful problems we 
> have, the better.
> 
> It is really difficult to classify the question before you know
> the answer: is it Java - Linux, Linux or Java problem.
> 
> Currently our traffic is not bad at all. We have about 10 - 15
> messages per day. This is not a lot comparing for example with 
> Java for Media Framework listserver - more than 30 per day.

No. I don't agree. Many of us are on quite a few mailing lists to
keep up with developments in different areas. 10-15 messages a day
is way too much considering the signal to noise ratio.

This list is for discussion of the Blackdown port of the Java
language to the Linux operation system. There are better lists
elsewhere for generic Java issues. Please use them.

If you don't know if it is a Java generic or Java-Linux problem,
this list should not be your first stop.

> Less than five usually means that the listserver is dying.

Zero messages of signal is FAR better then 5 messages of noise.

Sorry to sound like a jerk, but please use this list only for what
it was designed for.

Thanks
-John


John Rousseau   [EMAIL PROTECTED]
SilverStream Software   
1 Burlington WoodsPhone: +1 781 238 5564
Burlington, MA 01803Fax: +1 781 238 5499



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



Re: JDBC for mysql?

1999-10-15 Thread Brent Allsop



Brian Gilman <[EMAIL PROTECTED]>,

  I'm using Mark Matthews's MySQL JDBC driver and it is working
great!  You can find it at:

http://www.worldserver.com/mm.mysql/>

  Brent Allsop


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



Re: reminder - this list is for Java & Linux

1999-10-15 Thread Matt Welsh


Jacob Nikom <[EMAIL PROTECTED]> writes:
> Currently our traffic is not bad at all. We have about 10 - 15
> messages per day. This is not a lot comparing for example with 
> Java for Media Framework listserver - more than 30 per day.

Multiply 10-15 msgs/day with the number of mailing lists I'm on and you
have a problem. I'd prefer that the list remain limited primarily to
Linux-based Java questions. A good way to limit traffic is not to reply
to the entire list when someone asks an off-topic (e.g., generic Java)
question.

Matt Welsh, UC Berkeley


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



Re: JDBC for mysql?

1999-10-15 Thread Matt Welsh


There is an interface called "mm.mysql.jdbc" at
http://www.worldserver.com/mm.mysql/

I've used it and it works well.

Matt Welsh, UC Berkeley

Brian Gilman <[EMAIL PROTECTED]> writes:
> Hello all!
> 
>   although this is not *exactly* a java Linux question, I 
> believe it is close enough.Can someone point me to a mysql driver 
> for jdbc? Thanks in advance!
> 
>   sincerely,
> 
>   Brian Gilman


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



Can we run Java app from a CD with Blackdown?

1999-10-15 Thread Lee_Xing

Hi:

We got a few questions on deployment with Blackdown.  It would be
appreciated if someone could help.

Q1: After we finish a Java application development on Windows NT 4.0 (Intel)
with VisualCafe 3.0, is it possible to include everything** on a CD, and let
user run the Java application from the CD on Redhat 6.0 Linux (Intel)
without any installation or file copy?

** "everything" includes:
- all class files or a JAR file of the Java application
- supporting files from VisualCafe 3.0 (they are said 100% pure)
- Blackdown JVM and supporting files
- what else?

Q2: Can we use Blackdown in this way (i.e. from a CD without installation),
or we have to install it first?  

Q3: If we can use it without a installation, then which Blackdown files
should be included on the CD, and any special file structure?  

Q4: Does Blackdown JVM generate any temporary files during running?  We plan
to use a CD-ROM not CD-RW, so can't add any temp files to the CD.

Q5: Is there any JRE for Linux like the one for NT?

We are not familiar with Blackdown or Linux yet :( so please give detail
information if possible.

Thank you in advance.


Lee


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



escape character

1999-10-15 Thread Yohans Mendoza

hi all, I was under the impression that the escape character in java was
\.
is that correct?

TIA

--Yohans


~
Yohans Mendoza  Unix Administrator
[EMAIL PROTECTED]Sirius Images Inc.  
http://www2.utep.edu/~yohanshttp://www.sirius-images.net 
~


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



Re: escape character

1999-10-15 Thread Alex M.

yes

On Fri, 15 Oct 1999, Yohans Mendoza wrote:

> hi all, I was under the impression that the escape character in java was
> \.
> is that correct?
> 
> TIA
> 
> --Yohans
> 
> 
> ~
> Yohans MendozaUnix Administrator
> [EMAIL PROTECTED]  Sirius Images Inc.  
> http://www2.utep.edu/~yohans  http://www.sirius-images.net 
> ~
> 
> 
> --
> 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]



do I need source patches for JDK-1.1.7?

1999-10-15 Thread Roland Silver

I've downloaded  for installation on 
an i386 machine running Red Hat Linux 6.0.

The readme says "All Java-Linux ports share a common set of source 
patches. These are located in the 'common' directory for each major 
JDK revision." For the revision I've downloaded, that would be the 
file . Do I need it?

-- Roland Silver <[EMAIL PROTECTED]>


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



Re: escape character

1999-10-15 Thread Paolo Ciccone

On Fri, Oct 15, 1999 at 03:57:50PM -0600, Yohans Mendoza wrote:
> hi all, I was under the impression that the escape character in java was
> \.
> is that correct?

It depends. If your talking about string literals your correct. If you need
to escape some characters in strings used for MessageFormat than the story
is different. In that case you need to escape "{" with single quotes and use
double single quotes to escape a single quote.


-- 
Paolo


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



Re: Can we run Java app from a CD with Blackdown?

1999-10-15 Thread Paolo Ciccone

On Fri, Oct 15, 1999 at 01:37:10PM -0500, [EMAIL PROTECTED] wrote:
> Hi:
> 
> We got a few questions on deployment with Blackdown.  It would be
> appreciated if someone could help.
> 
> Q1: After we finish a Java application development on Windows NT 4.0 (Intel)
> with VisualCafe 3.0, is it possible to include everything** on a CD, and let
> user run the Java application from the CD on Redhat 6.0 Linux (Intel)
> without any installation or file copy?

Sure, you have to test it carefully as you probably want to provide a way
for the user to run the app without invoking the JDk manually. You'll have
to write a shell script for that.

> Q2: Can we use Blackdown in this way (i.e. from a CD without installation),
> or we have to install it first?  

If you copy on the CD the installed version of the JDK/JRE and you set the
PATH correctly you can run it directly. Let's say you have the jdk in a dir
called lxjdk on the CD and the CD is mounted on /mnt/cdrom (default on RH).
You'll need to add /mnt/cdrom/lxjdk/bin to the PATH. of course you need to
find the correcte path (use pwd in the shell script) because the mount point
for the CD could be different. For example I use to remap mine to /cdrom.


> Q3: If we can use it without a installation, then which Blackdown files
> should be included on the CD, and any special file structure?  

Just install it on a machine and then copy the tree in the CD.

> Q4: Does Blackdown JVM generate any temporary files during running?  We plan
> to use a CD-ROM not CD-RW, so can't add any temp files to the CD.

Under Unix temporary files are written to /tmp, usually mounted on a HD
partition, not the current directory so that shouldn't be a problem anyway.
I'm not aware of temp files created byt the VM.

> Q5: Is there any JRE for Linux like the one for NT?

Yes. Just download the JRE archive.

-- 
Paolo Ciccone
JBuilder dev. team. Borland/Inprise.



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



Missing dependancy

1999-10-15 Thread Bobby Hitt



Hello all,
 
I'm a Java newbie, so please bear with 
me.
 
I'm trying to compile and install webmail, which 
uses java. When I try to compile, I get this error:
 
/usr/local/jdk1.2/bin/i386/native_threads/java: error in 
loading shared libraries/lib/libjvm.so: undefined symbol: 
__bzero
 
I downloaded the jdk1.2 software and installed it in 
/usr/local/jdk1.2. When I attempted to run "appletviewer" and "java", they both 
bombed because I didn't have X installed. I copied the X libraries from another 
server, and this fixed that problem. Then I got the same libjvm.so 
error.
 
Lastly I'm using gcc version 2.7.2.
 
Can anyone tell me what library that libjvm.so is 
referring to?
 
Any help is appreciated.
 
Bobby Hitt
 


Re: ddd as a java debugger

1999-10-15 Thread Robert Simmons

Personally I use pldb. That is "println debugger" =) Im of the old school
where
I just toss printlns in code to tcheck values and see where it dies. With vi
this
process is viciously quick and there is rarey an issue I cant resolve with
it. I
started programming before all these tools came about and have found them
to be mostly not worth the learning curve. But then thats just me, or is it
? =)

--rob

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 1999 8:12 AM
Subject: ddd as a java debugger


> First let me say thanks to all of you who responded to my original
> newbie questions. I actually made some progress with my screwy code as a
> result of your suggestions. Very Cool. I still have problems to solve,
> though.
>
> Being something of a doit-yourself type (as I imagine we all are), I'm
> still trying to put together a debugging environment that is
> 'satisfying'. So far I've tried BlueJ, Wipeout and jdb. Wipeout has a
> lot of promise, but seems a little unstable. This could be because I
> have only 32MB of memory on the system. jdb is very stable, but rather
> tedious in command syntax and more than a little brief with respect to
> documentation. I could not get BlueJ to even start up.
>
> Within the past couple of days I swapped messages with someone here on
> the list regarding ddd. After mulling it over a bit I've decided I
> oughtta give it a try.
>
> Can you anyone provide me with resources for configuration and use
> under X on debian 2.0 linux/jdk 1.2?
>
> Thanks a Bunch, Folks =-)
>
> James
>
>
> --
> It's not the size of the dog in the fight |James G. Stallings II
> that counts, but rather the size of the   |
http://angelfire.com/id/videoranger
>   fight in the dog.   |  ''Live Long and Prosper''
>
>
>
> --
> 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: Can we run Java app from a CD with Blackdown?

1999-10-15 Thread Robert Simmons


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 15, 1999 12:37 PM
Subject: Can we run Java app from a CD with Blackdown?


> Hi:
>
> We got a few questions on deployment with Blackdown.  It would be
> appreciated if someone could help.
>
> Q1: After we finish a Java application development on Windows NT 4.0
(Intel)
> with VisualCafe 3.0, is it possible to include everything** on a CD, and
let
> user run the Java application from the CD on Redhat 6.0 Linux (Intel)
> without any installation or file copy?
>
Should be able to. There are a few wierd bugs in the release but nothing
major.
As for installers, there are a couple of good pure java installers on the
market.
Install Shield makes one.  Typically I find that a script is good enough
expecially
if everything is in a Jar.

> ** "everything" includes:
> - all class files or a JAR file of the Java application
> - supporting files from VisualCafe 3.0 (they are said 100% pure)
> - Blackdown JVM and supporting files
Supporting files ? Hmm, I really reccomend oyu let the customer worry about
the JVM. That is one of the few things about java that is platform
dependent.
If you plan on including jvms you will really have to include them
for all build types.
> - what else?
>
> Q2: Can we use Blackdown in this way (i.e. from a CD without
installation),
> or we have to install it first?
Prolly the user will have to have the JVM on their machine already. Once
it is set up you can run java transparrently. SOmetimes though a jvm is
not so easy to set up. Let their network sdmins worry about it. THis is
simply
the same as issuing a requirement that the software must run under windows
or dos. You specify that a user must have a jvm. Then If I were you I would
jsut
include hypertext links to the popular java download sites.
>
> Q3: If we can use it without a installation, then which Blackdown files
> should be included on the CD, and any special file structure?
You would have to run an installation at least for java JVM. The system
needs to find out where the clasees are and whatnot. Not to mention
path changes. This isnt windoze. =) If you want a super user friendly
os, the macintosh is prolly your best bet. Any unix admin that cant
install a simple jvm is prolly in big trouble anyway.
>
> Q4: Does Blackdown JVM generate any temporary files during running?  We
plan
> to use a CD-ROM not CD-RW, so can't add any temp files to the CD.
>
You shouldnt have to worry about it. Once the jvm is on the mashine your
ONLY
concern is if your app works.

> Q5: Is there any JRE for Linux like the one for NT?
Yep, there is a JRE. Like NT? well that depends on what level you are
referring to.
Install and setup, I doubt it. Core code, most certainly not. Functionality
after
installation, sure.
>
> We are not familiar with Blackdown or Linux yet :( so please give detail
> information if possible.
>
ok =)

> Thank you in advance.
>
you're welcome.
>
> Lee
>
Rob
>
> --
> 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: Const in java

1999-10-15 Thread Robert Simmons


- Original Message -
From: Gordon Keith <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: Robert Simmons <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 1999 8:36 PM
Subject: Re: Const in java


> [EMAIL PROTECTED] wrote:
> >
> > On Wed, 13 Oct 1999, Robert Simmons wrote:
> >
> > > Since everything in java is passed by reference this becomes even more
of an issue.
> > > Therefore can I do the following to achieve the desired safety ?
> >
> > Well, everything is not passed by reference in Java.  I believe
primitives
> > and immutable types are passed by value.  Someone know the exact rules
> > behind this?
>
> Everything is passed by value.
> But you never actually pass objects, you only ever pass references to
> objects.
>
> Making a parameter final means you can't change what object that
> parameter refers to. (you can still make changes to the object, if it's
> not immutable)

Such is the problem there are times where I dont want the user to be able
to alter a returned object's state.

>
> Once you understand that its pretty clear what's happening.
>
> Regards
> Gordon
>
>
> Gordon Keith
> Programmer
> Marine Science Support
> Australian Antarctic Divsion
> http://www.antdiv.gov.au
>


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



Re: Where is it?

1999-10-15 Thread Robert Simmons

THe docs are a separate download. Get them from java.sun.com
- Original Message -
From: Alex M. <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 14, 1999 3:30 PM
Subject: Re: Where is it?


> You get those from java.sun.com, docs and apis.
>
> On Thu, 14 Oct 1999 [EMAIL PROTECTED] wrote:
>
> > OK. I am new to the java world and have installed java on my redhat 6.0
system. I downloaded version 1.1.7 . I am missing the directory of docs and
samples. Where are these located?
> >
>
>
> --
> 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: Missing dependancy

1999-10-15 Thread Robert Simmons



Prolly your lib path isnt set. Do a 
set LDLIBRARYPATH = 
$LDLIBRARYPATH:/usr/local/jdk/lib
export LDLIBRARYPATH
in your .bash_profile
 
or if you are sys admin su to root and alter 
/etc/ ld.config appropriately (like i did) allowing the change for all 
users.
 
As for not having X, you are gonna have a bitch of a time 
running any AWT based programs without it. Not to 
mention the fact that wihtout it, unix can be  annoying. 
 
--rob 

  - Original Message - 
  From: 
  Bobby Hitt 
  
  To: [EMAIL PROTECTED] 
  Sent: Friday, October 15, 1999 5:39 
  PM
  Subject: Missing dependancy
  
  Hello all,
   
  I'm a Java newbie, so please bear with 
  me.
   
  I'm trying to compile and install webmail, which 
  uses java. When I try to compile, I get this error:
   
  /usr/local/jdk1.2/bin/i386/native_threads/java: error in 
  loading shared libraries/lib/libjvm.so: undefined symbol: 
  __bzero
   
  I downloaded the jdk1.2 software and installed it in 
  /usr/local/jdk1.2. When I attempted to run "appletviewer" and "java", they 
  both bombed because I didn't have X installed. I copied the X libraries from 
  another server, and this fixed that problem. Then I got the same libjvm.so 
  error.
   
  Lastly I'm using gcc version 2.7.2.
   
  Can anyone tell me what library that libjvm.so is 
  referring to?
   
   
  Any help is appreciated.
   
  Bobby Hitt
   


Re: Const in java

1999-10-15 Thread Michael Emmel

>
>
> Such is the problem there are times where I dont want the user to be able
> to alter a returned object's state.
>

Thats easy just add a lock variable that take the ( Caller) as a prameter to
set.
Or its  not public.

Check that on each method invoction which  effects state.

I'm not sure of the utility of having and object wich no methods can be called
on.

This is nothing more than a more generic form of thread synchronization.

In fact a quick and dirty way to do it is to grab the thread lock for the
object in a method that never returns.
i.e block on and  I/O that never finishes. Or  simpler force a deadlock.
This will  deadlock the calling thread forever though  so it is very rude : )


Mike


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



Re: Missing dependancy

1999-10-15 Thread SHUDO Kazuyuki

> From: Bobby Hitt

>   /usr/local/jdk1.2/bin/i386/native_threads/java: error in loading 
> shared libraries
>   /lib/libjvm.so: undefined symbol: __bzero

I guess you're using JDK for glibc 2.1 on a system based on glibc 2.0.
You must use the JDK corresponding to your libc.

Kazuyuki SHUDO  Happy Hacking!
  Muraoka Lab., Grad. School of Sci. & Eng., Waseda Univ.


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



Runtime.traceMethodCalls()

1999-10-15 Thread Brandon Anderson

I've been trying to get the Runtime.traceMethodCalls() and the
Runtime.traceInstructions working in Java under linux for quiet some time, and
can't seem to figure out what I'm doing wrong.

I'm starting to wonder if they are implemented at all in the Linux version, or
if I have to do some special compile time switches...

I'm actually calling the functions doing a
Runtime.getRuntime().traceMethodCalls() and
Runtime.getRuntime().traceInstructions() but I've tried with just straight
Runtime.trace* and that doesn't seem to work either.

Is it outputting it to a specific file somewhere that I'm just not finding, or
is this really not implemented on the Linux version.  The Java specs do say
this is an optional thing for the JVM to do, but it would be an immensely
useful debugging tool.

Well, I was just wondering if I should waste any more time trying to get this
to work under Linux. 

Thanx in advance.


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



Re: Const in java

1999-10-15 Thread Brandon Anderson



On Fri, 15 Oct 1999, Robert Simmons wrote:

> 
> - Original Message -
> From: Gordon Keith <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: Robert Simmons <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, October 13, 1999 8:36 PM
> Subject: Re: Const in java
> 
> 
> > [EMAIL PROTECTED] wrote:
> > >
> > > On Wed, 13 Oct 1999, Robert Simmons wrote:
> > >
> > > > Since everything in java is passed by reference this becomes even more
> of an issue.
> > > > Therefore can I do the following to achieve the desired safety ?
> > >
> > > Well, everything is not passed by reference in Java.  I believe
> primitives
> > > and immutable types are passed by value.  Someone know the exact rules
> > > behind this?
> >
> > Everything is passed by value.
> > But you never actually pass objects, you only ever pass references to
> > objects.
> >
> > Making a parameter final means you can't change what object that
> > parameter refers to. (you can still make changes to the object, if it's
> > not immutable)
> 
> Such is the problem there are times where I dont want the user to be able
> to alter a returned object's state.
>

That's easy enough to get around.  All you do is clone the object before you
give it back to them.  All java Objects should have a clone() function since
that's part of the Object class.  That is unless I'm misunderstanding what the
clone() function does, which I wouldn't put past me.

> >
> > Once you understand that its pretty clear what's happening.
> >
> > Regards
> > Gordon
> >
> >
> > Gordon Keith
> > Programmer
> > Marine Science Support
> > Australian Antarctic Divsion
> > 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]



Re: Missing dependancy

1999-10-15 Thread Bobby Hitt

James,

>From one newbie to another, thanks :^)

I downloaded jdk1.2pre-v2.tar.bz2 from

metalabs.unc.edu/pub/linux/devel/lang/java/java/blackdown.org/JDK-1.2/i386/p
re-v2/glibc2.0/

Don't you love short names? Now the question is how do I determine whether
I'm running glib or libc5? I think this is correct. I found the source for
glib5c 2.x.x also at metalab.unc.edu. I don't have a problem building
libraries, but it would be nice to download a package that didn't require
hours of hunting dependent software, but it's much better to be able to have
the flexibility of having source to play with.

Thanks again for your response,

Bobby

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 16, 1999 12:14 AM
Subject: Re: Missing dependancy


> On 15 Oct, Bobby Hitt wrote:
> > Hello all,
> >
> > I'm a Java newbie, so please bear with me.
> >
> > I'm trying to compile and install webmail, which uses java. When I try
to compile, I get this error:
> >
> > /usr/local/jdk1.2/bin/i386/native_threads/java: error in loading shared
libraries
> > /lib/libjvm.so: undefined symbol: __bzero
> >
> > I downloaded the jdk1.2 software and installed it in /usr/local/jdk1.2.
When I attempted to run "appletviewer" and "java", they both bombed because
I didn't have X installed. I copied the X libraries from another server, and
this fixed that problem. Then I got the same libjvm.so error.
> >
> > Lastly I'm using gcc version 2.7.2.
> >
> > Can anyone tell me what library that libjvm.so is referring to?
> >
> > Any help is appreciated.
> >
> > Bobby Hitt
> >

> I'm also a newbie to writing java programs, but not to programming or to
> linux either. So, I had a pretty good head start on setting up the JDK.
> I got that exact same message - the issue was addressed when I realized
> I had the JDK for glibc 2.1 installed when I have a glibc2.0 system.
>
> I've since installed the glibc2.0 JDK, and I still have a few problems,
> but I think they are not the the fault of the JDK.
>
> My apologies if this is not completely accurate, I suffer from some
> confusion as to the difference between glibc and libc; I think that
> glibc is a replacement for libc, but I get the impression that the
> version numbers don't match.
>
> Anyway, just a datapoint.
>
> -James
>
> --
> "The reverse side also has a |James G. Stallings II
>  reverse side"   | http://angelfire.com/id/videoranger
> - Japanese Proverb   |  ''Live Long and Prosper''
>
>


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



Re: Runtime.traceMethodCalls()

1999-10-15 Thread Chris Abbey

you're using java_g right? try running a hello world class with the -tm
command line switch to test the binaries:

java_g -tm helloWorld

Works for Me (TM) on blackdown 117 v1a, green or native. -=Chris


  cabbey at home dot net <*> http://members.home.net/cabbey
   I want a binary interface to the brain!
Today's opto-mechanical digital interfaces are just too slow!


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