AWT problem with SWiM Motif 1.2 under alpha 117v2 port

1998-11-13 Thread Eric Bohm
I just upgraded to the jdk117_alpha21164a_bin and am having trouble with some of the demo programs seg faulting or aborting while using SWiM Motif. They all work fine when I set my LD_LIBRARY_PATH to use lesstif 0.87. So this is not a critical bug. But it is interesting nonetheless. An examp

JDBC for Oracle (was: RE: Retrieving a fully qualified hostname under NT)

1998-11-13 Thread Urban Widmark
On Fri, 13 Nov 1998, 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 > I believe Oracle includes their JDBC driver with

Re: JDBC for Oracle (was: RE: Retrieving a fully qualifiedhostname under NT)

1998-11-13 Thread Robert P. Biuk-Aghai
On Fri, 13 Nov 1998, Urban Widmark wrote: > I believe Oracle includes their JDBC driver with the database, and that it > is a pure java driver. (I'm more certain of the first than the last). Yes, this is correct. We have Oracle system 8 and it includes JDBC drivers, which are 100% pure Java. Thi

Re: [Java-Linux] about this list ...

1998-11-13 Thread
> >I also want to ask everyone there to *please* skip all the irrelevant > >when they include a message for a reply... > sound nice, but how are you going to define "irrelevant", e.g. which > part of your message should I leave out ?? Leave just enough information so that people can figu

PLAF Motif Button reduce external Padding or Interspacing

1998-11-13 Thread peter . pilgrim
In Swing 1.1 Beta 2 the CDE/Motif PLAF seems to put a large gap size or interspacing between components. I have a three JButtons with an image icon aligned right and text label aligned to the right inside of a normal JPanel. The JPanel is managed by a custom row c

Two problems.

1998-11-13 Thread Karthik Vishwanath
Hi all, i am relatively new to Java and i am trying to learn the UI (or the awt). Below is the code that i compiled ... ---Code begins --- import java.awt.*; import java.awt.event.*; import java.applet.*; public class Buttons extends

mergemem kernel patch

1998-11-13 Thread Ron Yorston
I've just been reading about the mergemem kernel patch. I haven't noticed any reference to it on this list before, so thought I'd draw it to your attention and ask if anyone has any experience with it. For details see: http://www.mondoshawan.ml.org/mergemem/ http://www.complang.tuwien.ac.

Re: AWT problem with SWiM Motif 1.2 under alpha 117v2 port

1998-11-13 Thread Uncle George
is swim motif avail ( free ? ) Eric Bohm wrote: > I just upgraded to the jdk117_alpha21164a_bin and am having trouble > with some of the demo programs seg faulting or aborting while using > SWiM Motif. >

RE: Retrieving a fully qualified hostname under NT

1998-11-13 Thread Markus Bader
I think it should work to get the IPAddress and then create a new InetAddress: InetAddress add = InetAddress.getByName("xxx.xxx.xx.x"); Now you can use add.getHostName() and you should get the fully qualified hostname. Markus On 12-Nov-98 Mark Hofmann wrote: > Hi all, > > I've posted that que

Failed to locate native library

1998-11-13 Thread alex andrejin
hi! after decompressing the x86 and x86_native, and setting THREADS_FLAG, i get the following message after trying to execute 'appletviewer applet.html': "Failed to locate native library" am i missing something here? thanks, alex a. __ G

Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread peter . pilgrim
I read somewhere that Thread.stop() is now deprecated. Now how on earth do we stop a thread ? I thought the solution would be Thread.interrupt() but that only works when the thread is sleeping, at least in JDK 1.1 documentation. I do not have the JDK 1.2 to ha

Re: Retrieving a fully qualified hostname under NT

1998-11-13 Thread Christopher Hinds
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 na

Re: JDBC for Oracle (was: RE: Retrieving a fully qualified hostname under NT)

1998-11-13 Thread Jason Kissinger
Urban Widmark wrote: > On Fri, 13 Nov 1998, 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 > > > > I

Re: Retrieving a fully qualified hostname under NT

1998-11-13 Thread Michael Sinz
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 >WI

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread Michael Sinz
On Fri, 13 Nov 1998 15:15:29 +, [EMAIL PROTECTED] wrote: > I read somewhere that Thread.stop() is now deprecated. Now how on > earth do we stop a thread ? > I thought the solution would be Thread.interrupt() > but that only works when the thread is sleeping, at least in JDK 1

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread David Wall
Have a method, such as stop(), that sets a boolean, and in the thread that's running, have it loop testing if the boolean has been set by stop() or not, and if so, then exit itself. Stopping a thread otherwise is problematic because it is not clear where it was when it was stopped (it's an ugly s

Re: AWT problem with SWiM Motif 1.2 under alpha 117v2 port

1998-11-13 Thread Eric Bohm
> "George" == Uncle George <[EMAIL PROTECTED]> writes: George> is swim motif avail ( free ? ) Eric Bohm wrote: Unfortunately, no. It is a commercial motif implementation much like Mootif. >> I just upgraded to the jdk117_alpha21164a_bin and am having >> trouble with some of th

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Wh

1998-11-13 Thread peter . pilgrim
Ok fair enough you can periodically check at interval on synchronised boolean to cancel an operation. But I am disappointed. The reason why I asked is because I use the JDBC. The current JDBC API does not allow the operator to have a callback or to read selective rows from the database. In oth

Reusable threads?

1998-11-13 Thread Michael Thome
Now that we have the option of native threads, I'd like to start using thread resource pools. But, the Java semantics and/or the implementation appears to make it problematic with regard to applications without a known exit condition... here's my problem: I want my application to exit when all

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread Pavel Tolkachev
> I read somewhere that Thread.stop() is now deprecated. Yes, and it's very good. > Now how on earth do we stop a thread ? Just allow it to exit from its run() method. Try to use this pattern: pattern is (run() can be in Thread subclass or in Thread Runnable)) private boolean runEnabled_

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread David Young
> "Peter" == peter pilgrim <[EMAIL PROTECTED]> writes: Peter> I read somewhere that Thread.stop() is now deprecated. Now Peter> how on earth do we stop a thread... There are compelling reasons for deprecating this method (along with Thread.suspend() and Thread.resume()); I understand the sec

Re: Two problems.

1998-11-13 Thread Paul Schroeder
I don't know that an applet can exactly terminate itself... Typically this is controlled by the browser/appletviewer.. When a web page containing an applet is unloaded the browser should call the stop() method followed by the destroy() method (when the applets resources are to be reclaimed) of e

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread Nelson Minar
This thread hasn't had anything to do with Linux. I'd really prefer to keep non-Linux discussion off this list. However, I'll now gamely try to bring this back to a java-linux discussion - >Have a method, such as stop(), that sets a boolean, and in the thread >that's running, have it loop testing

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread Daniel W. Dulitz x108
Pavel Tolkachev writes: > > I read somewhere that Thread.stop() is now deprecated. > Yes, and it's very good. > > Now how on earth do we stop a thread ? > Just allow it to exit from its run() method. So there is no way to stop a thread that is waiting for user input? daniel dulitz Valley

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Wh

1998-11-13 Thread Pavel Tolkachev
[EMAIL PROTECTED] wrote: ... > Class.forName( "org.blackdown.jdbc.AnyOldDriver" ); > Connection con = DriverManager.getConnection( url, username, password ); > Statement stmt = con.createStatement( "select * from JDK_RELEASES" ); > > stmt.executeQuery(); // One

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread Steve Byrne
David Wall writes: > Have a method, such as stop(), that sets a boolean, and in the thread that's > running, have it loop testing if the boolean has been set by stop() or not, > and if so, then exit itself. > > Stopping a thread otherwise is problematic because it is not clear where it > wa

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Wh

1998-11-13 Thread peter . pilgrim
Pass! I have no idea. But it is not really useful in a GUI. [EXECUTE] SQL query[ABORT] SQL query What timeout should I have set BEFOREHAND. Should it be 1 ms , 1sec , and 1 hour For a non-deterministic application like an event driven GUI.

Re: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Wh

1998-11-13 Thread peter . pilgrim
Ahh Well done JavaSoft!!! the default transaction isolation level of the underlying database is used for the result set that is created. Note that this code is just JDBC 1.0 code, and that it produces the same type of result set that would have been produced by JDBC 1.0.

RE: Deprecated `Thread.stop()' in forthcoming JDK 1.2. Why?

1998-11-13 Thread Harold G. Andrews II
My understanding is that the folks at Sun considered Thread.stop() to be somewhat unstable (please correct me if I'm wrong) and therefore deprecated it. What they suggested in the JDK1.2 documentation is that you allow the Thread.run() method to normally end to stop the thread. Thus, you would n

Re: Reusable threads?

1998-11-13 Thread Michael Sinz
On Fri, 13 Nov 1998 11:20:36 -0500 (EST), Michael Thome wrote: >Now that we have the option of native threads, I'd like to start using >thread resource pools. But, the Java semantics and/or the >implementation appears to make it problematic with regard to >applications without a known exit cond

Re: native thread question

1998-11-13 Thread Dr Phill Edwards
Hi, On Mon, 09 Nov 1998, Keith T. Garner wrote: >I've been experimenting with the new native threading code, beating on it >to see how it holds up, doing that sort of beta test that people dream of. >(I've found a memory bug, but that's for a different piece of mail...) > >Anyway, while watching

Re: Reusable threads?

1998-11-13 Thread Jason Gilbert
Michael Sinz wrote: > > I have a generic thread pool class that works for me. It is not > complete for public use (yet) but it does the job. It knows when > it has no threads in use. It also dynamically expands as peak > loading increases. I believe one was also written in conjuction w/ the j

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

remove from list

1998-11-13 Thread chris roffler

Swing on Blackdown jdk1.1.6

1998-11-13 Thread GBNSCHBACH
I got an app from someone. It included swing.jar.I "un-jarred" it. But seriously.. should it be in the same directory subtree under "src" with "lang" "io" and other stuff? Or should it be in "lib" with classes.zip ? Just wondering email to: [EMAIL PROTECTED]

November 1998 java-linux FAQ

1998-11-13 Thread Stephen Wynne
Other than some shuffling, the document hasn't changed a great deal, but it does reflect some of the changes related to JDK 1.1.7. Comments and corrections welcome. Stephen Wynne <[EMAIL PROTECTED]> PGP Key 1024/D54C69B9 Fingerprint: 2C 54 C6 F3 9C FF 11 D3 90 56 DD 85 37 E3 1F AA [EMAIL PROT