Re: JSDK

1999-01-11 Thread Greg

David Harvill wrote:

> I'm running RH5.2 on an x86 architecture.  Anyone know if the Solaris/UNIX
> version of SUN's Java Servlet Development Kit will work in this setup?
>
> -dave

Yes, I've been using it just tonight!  :)

Greg




Netscape Java Mail Client

1998-09-09 Thread Greg Gulrajani

thought someone might find this post interesting..
-greg
[EMAIL PROTECTED]


Subject: 
 source to Grendel (a Java mail reader) released
Date: 
 Tue, 08 Sep 1998 18:24:36 -0700
   From: 
 Jamie Zawinski <[EMAIL PROTECTED]>
 Organization: 
 the mystic knights of mozilla, http://www.mozilla.org/
 Newsgroups: 
 netscape.public.mozilla.announce,
netscape.public.mozilla.mail-news,
 netscape.public.mozilla.java
 Followup-To: 
 netscape.public.mozilla.mail-news




Grendel is a mail/news client, written in Java.

Grendel was a part of the 1997 effort to rewrite Navigator/Communicator
from scratch in Java.  That project (code named ``Xena,'' but sometimes
referred to by the press as ``Javagator'') was cancelled before
completion.  

Nobody is actively maintaining Grendel, and it needs a lot of work
before it will be usable.  But there it is.  Perhaps you'd like to give
it a caring home?

For details, see http://www.mozilla.org/projects/grendel/

That makes Grendel the third incomplete mail client we've released the
source to this year!  (Actually, that's not quite true -- we've now
released the incomplete source code to one mail client, and the source
code to two incomplete mail clients -- but who's counting.)

-- 
Jamie Zawinski
[EMAIL PROTECTED]http://www.mozilla.org/   (work)
[EMAIL PROTECTED]http://www.jwz.org/   (play)



Re: Java interface to MySQL

1998-09-25 Thread Greg Cook

Argh... Hate when I post these to the wrong list

-Original Message-
From:   Greg Cook [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, September 24, 1998 9:54 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject:RE: Java interface to MySQL

You can also try Terrence W. Zeller's JDBC driver for MySql
Probably at `http://www.tcx.se/' under contributed software.

I dunno which JDBC is best, though


[Greg Cook]
I have tested several of the MySQL JDBC drivers here.
The fastest is the gwe driver. The most stable is the mm driver.
The mm driver also has the nice feature of allowing multiple open ResultSets per 
connection. The mm drivers actually buffer the entire ResultSet then feed them to you 
as you .next() em. On large transfers the gwe driver is much faster response, but the 
mm drivers are 250% more stable than the gwe under heavy loads. The gwe drivers close 
the socket and reopen for _every_ stmt.close() and con.close() coded. Under high 
retrieve, update, retrieve, search loads the gwe throws broken SocketExceptions. The 
gwe would be the better of the two if someone could convince the author to finish 
reading in the socket stream if the ResultSet is closed before all of the rows are 
read instead of closing and reopening the socket.

Greg Cook
Vnews.net

Unsubscription, archives, FAQ - http://www.xcf.berkeley.edu/lists.html



Java access to syslog?

1998-10-16 Thread Greg Cook

Is there a class (or other simple way) to have a running program open and use the 
Unix/Linux syslog utility?

Greg Cook



unable to initialize

1999-01-28 Thread Greg Sarsons

I'm having trouble trying to run/compile java apps  when I try to
run compiled class I get the error

unable to initialize thread:  cannot find class /java/lang/Thread

Okay I've got something screewed up when I installed swing and java

here is my root profile  maybe someone can see what the heck is
wrong.

I've exported the path to jdk117_v1a/bin and included a CLASSPATH to
/jdk117_v1a/lib/classes.zip and the swing jar files.  What else should
be included. 

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

PATH=$PATH:$HOME/bin
ENV=$HOME/.bashrc
USERNAME="root"

JAVA_HOME=/usr/local/java/jdk117_v1a

CLASSPATH=/usr/local/java/jdk117_v1a/lib/classes.zip:/usr/local/java/swing-1.1/swingall.jar:/usr/local/java/swing-1.1/swing.jar:../.:/usr/local/java/swing-1.1/motif.jar

export PATH=/usr/local/java/jdk117_v1a/bin:$PATH

export USERNAME ENV PATH JAVA_HOME CLASSPATH

-- 

[EMAIL PROTECTED](Greg Sarsons) 

__oooO--(_)--Oooo_
   / O O \
   \ ~ ~ /
"""""





compiler / path problem

1999-02-05 Thread Greg Sarsons

I've got a problem when I compile and i'm sure it has to do with the
path but I haven't been able to solve it.  When I compile a .java file
that will create another someother .class file when the constructor is
called I get the error

class whatever not found in type declaration

If I take the same .java files and compile it under os/2 it works no
problem.  The files the compiler is looking for are in the same
director as the file i'm trying to compile.  is there anything special
I could try from the command line ?

Greg

-- 

[EMAIL PROTECTED](Greg Sarsons) 

__oooO--(_)--Oooo_
   / O O \
   \ ~ ~ /
"""""




Beta tester question

1999-03-01 Thread Greg Sternberg

Hi,

   I don't know if you have any need for a Java 1.2 beta tester but if
you
do I would be interested.

--
Thank you,
Greg Sternberg
Productive Data Systems  "Just because something is obviously
[EMAIL PROTECTED]  happening doesn't mean something obvious
  is happening." - Larry Wall



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



Re: Swing under Linux

1998-05-20 Thread Greg Gulrajani



Aaron Walker wrote:

> Does anyone know if the JFC (Swing) is available under Linux?
>
> Thanks,
> Aaron

and it works pretty well with tya
(though it crashes some times)

-greg





Re: unsubscribe

1999-04-19 Thread Greg Sarsons

hmmm  my old address was [EMAIL PROTECTED]

Greg

On Mon, 19 Apr 1999, [EMAIL PROTECTED] wrote:
> You have not been removed, I couldn't find your name on the list.
> 
> If this wasn't your intention or you are having problems getting yourself
> unsubscribed, reply to this mail now (quoting it entirely (for diagnostic
> purposes), and of course adding any comments you see fit).
> 
> Transcript of unsubscription request follows:
> -- 
> >From [EMAIL PROTECTED]  Mon Apr 19 18:34:26 1999
> >Received: from mail.cabi.net (ikea.cabi.net [208.24.141.88]) by shell.ncm.com 
>(8.8.5/8.7.5) with ESMTP id SAA25913 for <[EMAIL PROTECTED]>; Mon, 19 
>Apr 1999 18:34:26 -0400
> >Received: from mail.rdc1.on.home.com (ha1.rdc1.on.wave.home.com [24.2.9.66])
> >  by mail.cabi.net (8.8.5/8.8.4) with ESMTP
> >   id SAA17501 for <[EMAIL PROTECTED]>; Mon, 19 Apr 1999 
>18:20:23 -0400
> >Received: from integrity ([24.112.163.82]) by mail.rdc1.on.home.com
> >  (InterMail v4.00.03 201-229-104) with SMTP
> >  id <19990419222502.VNH25391.mail.rdc1.on.home.com@integrity>
> >  for <[EMAIL PROTECTED]>;
> >  Mon, 19 Apr 1999 15:25:02 -0700
> >From: Greg Sarsons <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: unsubscribe
> >Date: Mon, 19 Apr 1999 18:20:04 -0400
> >X-Mailer: KMail [version 1.0.17]
> >Content-Type: text/plain
> >MIME-Version: 1.0
> >Message-Id: <99041918202000.09623@integrity>
> >Content-Transfer-Encoding: 8bit
> >
> >
--
--
[EMAIL PROTECTED]
--
..ooOo   *oOoo..
  \ 0 0 /
  '''''
  


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



isPopupTrigger

1999-05-07 Thread Greg O'Keefe

HI

Which mmouse button is  supposed to be the popup trigger in linux? I
have some code that worked under M$ win95, where right clicking bought
up a pop up menu, but I can't get the menu up under Linux unless I
remove the if(e.isPopupTrigger()) code. Or isn't it as simple as that?
I'm using rh5.2 with kde1.1, and Blackdown jdk1.2 pre v1, and none of
the mouse buttons seems to satisfy isPopupTrigger(). Is it a bug, or do
I need to put something in a config file somewhere or what?

Cheers

GregO


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



Re: isPopupTrigger

1999-05-08 Thread Greg O'Keefe

Juergen Kreileder wrote:

> On ms windows `right button released' is the popup trigger but on
> Xwindows it's 'right button pressed'!
> You have to test for isPopupTrigger both in mousePressed and
> mouseReleased.
> 
> Juergen

Thanks Juergen, and other respondants. Now you mention this, I now
recall when coding this on win, reading that you should putthe test
in both mousePressed and Released, but it was working so I didn't
bother. *Bad* man. It won't happen again!

GregO


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



native threads Java with glibc 2.1

1999-06-09 Thread Greg Wolodkin

Hi all-
I should start by saying "Thanks!" for all the great work that's
being done by the Blackdown folks.

Also, I'm wondering how long it might be until a native-threads
version of the JDK (either 1.1.x or 1.2) is working with glibc 2.1.
Is the problem in linuxthreads, or the JDK?  Where can I read more
about it, and possibly lend a hand?

In reading this mailing list, mostly all I've seen is the 
recommendation to use green threads with glibc 2.1, but since I
really need to use the JNI heavily that's not an option.

Thanks for any tips!
Greg


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



sockets problem

1999-07-14 Thread Greg Walker

I am having a problem with a server written in java that uses sockets.
The server runs fine; the problem arises when I try to access it. The
client is simply telnet and after making a connection, and receiving a
handful of bytes, the client hangs as if the server is not responding.
Yet the server seems to be fine because I can establish another
connection to it. 

This problem goes away if I use the java -debug option (which
incidentally throws an exception) or run the server with jdb. 

I am using jdk1.1.7b and RedHat 6.0 (kernel 2.2.5-15). There was a rumor
that java 1.1.6 had a bug with sockets which was fixed in 1.1.7, but I
can't locate the docs and I still seem to have a problem.

On additional note, ... the server ran fine while I was using a dynamic
DHCP address. Once my provider switched me to a static IP address, this
problem appeared. Any ideas ?

Thanks,
-- 
Greg Walker
[EMAIL PROTECTED]


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



Parsing date strings in 1.2.2

1999-08-04 Thread Greg Tomalesky

Hi Gang:

I have been parsing date strings (such as 4-Aug-1999) under JDK1.1.6
using the DateFormat "parse" method. When I switched to 1.2.2 I keep getting

"ParseException:Unparseable date:"4-Aug-1999"

Is this a bug in 1.2.2 or have I left something out. I have scanned the
FAQs and come up dry. Has anyone seen this before?

Thanks in advance
Greg Tomalesky



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



Java2 (1.2.x) plugin ?

1999-08-11 Thread Greg Tomalesky

Hi Gang:

Has anyone heard about the availability of the 1.2.x plugin for Linux?

Thanks,Greg


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



native/green

1999-08-11 Thread Greg Walker


I know I have seen this here before. What does it typically mean if my
java app runs with native threads, but not in green threads (117_v3)? 

-- 
Greg Walker
[EMAIL PROTECTED]


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



OK what about a 1.1.x plugin?

1999-08-12 Thread Greg Tomalesky

Hi gang:

OK if there is no 1.2.x plugin then is there a 1.1.x version. I think I
downloaded it from somewhere(blackdown.org ?) but that was a long time ago.
If there is such a thing then where can I get it now?

Greg Tomalesky



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



do different jvm perform calcs differently?

1999-08-18 Thread Greg Walker

A mere curiosity ...

I have a class that performs many calcs. The values are *slightly*
(after about 14 significant figures) different depending on the jvm I
use (either ibm's 1.1.6 or blackdown's 1.1.7). Is there a difference
between algorithms to solve for trig functions or logarithms between
jvm's? If so, which is more accurate?  Isn't there a standard for math
operations (IEEE) that both jvm's use? I am not sure I see why this
happens. jit or nojit does not make a difference (ibm) and native or
green does not make a difference (blackdown).

Note: I have NOT been able to reproduce this with single math
operations.

-- 
Greg Walker
[EMAIL PROTECTED]


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



JTable in browsers

1999-08-21 Thread Greg Tomalesky

Hi Gang:

I have just successfully run an 1.1.x applet(JApplet) in a browser that
does not have the 1.1.x plugin. The applet consists of some buttons and a
JTable. The table is populated interactively based on button activity. When
a user clicks a button, en entry is made into two cells(in the same row) of
the table. One of the new cells mat contain data that is periodically
updating and therin lies the problem. New values placed in the cell
overwrite the old value WITHOUT first clearing the old contents! When this
applet is run as an application, this does not happen. The swingall.jar file
is from the 1.1.1-beta2 distribution.

Any Clues???

Thanks,
Greg



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



RE: NoClassDefFoundError and RH6.0

1999-09-30 Thread Roll, Greg

Actually yes  Is this incorrect?  I'm fairly new to the Java thing
but I compile fine with the same steps on a Solaris machine.

GR

-Original Message-
From: Chris Abbey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 29, 1999 8:05 PM
To: Roll, Greg
Cc: [EMAIL PROTECTED]
Subject: Re: NoClassDefFoundError and RH6.0


At 09:04 9/29/99 -0500, Roll, Greg wrote:
>Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class

you didn't by any chance type "java HelloWorld.class" did you?

  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]



RE: NoClassDefFoundError and RH6.0

1999-09-30 Thread Roll, Greg

That still yields the same error... I tried that many times too!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 30, 1999 10:41 AM
To: Roll, Greg
Cc: [EMAIL PROTECTED]
Subject: RE: NoClassDefFoundError and RH6.0


Hi Greg, everyone,

On Thu, 30 Sep 1999, Roll, Greg wrote:

> Actually yes  Is this incorrect?  I'm fairly new to the Java thing
> but I compile fine with the same steps on a Solaris machine.
> 
> GR
> 
> From: Chris Abbey [mailto:[EMAIL PROTECTED]]
> 
> you didn't by any chance type "java HelloWorld.class" did you?

The argument to java should be just the class name, thus:

java HelloWorld

. . . Sean.


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



Applet parameters not recognized.

1999-10-06 Thread Roll, Greg

I am experiencing a strange problem in that I can't seem to get the
parameters I am passing to my applet to be recognized correctly.  I have
written a small sample program from one of my texts and still receive the
problem... when I run the following code I would expect to see "Hello
Bonzo!" but am instead seeing "Hello name!"...  I imagine that I have some
small coding mistake that I can't see... can anyone identify it?  
 
HTML Source:
 


Hello



Hello to you!



 
Java Source:
 
import java.awt.Graphics;
import java.awt.Font;
import java.awt.Color;
 
public class HelloApplet extends java.applet.Applet
{
Font f = new Font("TimesRoman", Font.BOLD, 36);
String name;
 
public void init()
{
name = getParameter("name");
if (name == null)
name = "Smith";
 
name = "Hello " + name + "!";
}

public void paint(Graphics g)
{
g.setFont(f);
g.setColor(Color.red);
g.drawString(name, 5, 40);
}
}


 
 
Greg E. Roll


BT Office Products Intl.
Interface/Conversions Team
phone - (817) 323-1300 ext. 2921
e-mail  - [EMAIL PROTECTED] 


 Tech Tools.gif


Applet transparency?

1999-10-07 Thread Roll, Greg

Hi All,
 
Anyone know if there a way to set an applets background color to be
transparent? 
 
Greg E. Roll


BT Office Products Intl.
Interface/Conversions Team
phone - (817) 323-1300 ext. 2921
e-mail  - [EMAIL PROTECTED] 


 Tech Tools.gif


RE: Applet transparency?

1999-10-07 Thread Roll, Greg

No, setting it to null will yield the default as the background color.

GR

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 07, 1999 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Applet transparency?


Try setting the background color to null.

I think that works.

-Jerry


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



1.2.2 Sun sources vs. pre-v2 diffs :(

1999-10-22 Thread Greg Wolodkin

Hi all -
After registering with Sun, all I find there are the 1.2.2 JDK 
sources, and a patch from 1.2 -> 1.2.2 that I cannot reverse cleanly.

The diffs available from Blackdown don't apply cleanly (obviously)
to the 1.2.2 Sun tree after doing the patch-o-matic renaming etc.

Can anyone provide a diff from Sun's 1.2.2 sources which are currently
available to the Blackdown 1.2pre-v2 code?  Alternatively, are the
original 1.2FCS sources still available at Sun and I'm just not seeing
them?

Thanks for any info!
Greg

p.s. what's the motivation behind pushing the Motif dependencies 
 into libawt.so in the 1.2 builds?  This seems to make it 
 impossible to have a Motif application which uses the JNI
 to do Java stuff (with AWT, anyway).  Probably I'm missing
 something, but I thought the scheme with 1.1.7 was pretty
 happening (at least for JNI..)


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



Re: 1.2.2 Sun sources vs. pre-v2 diffs :(

1999-10-22 Thread Greg Wolodkin

Nathan Meyers writes:

> On 22 Oct, Greg Wolodkin wrote:
> > p.s. what's the motivation behind pushing the Motif dependencies 
> >  into libawt.so in the 1.2 builds?  This seems to make it 
> >  impossible to have a Motif application which uses the JNI
> >  to do Java stuff (with AWT, anyway).  Probably I'm missing
> >  something, but I thought the scheme with 1.1.7 was pretty
> >  happening (at least for JNI..)
>
> Hmmm... never seen that complaint before.
>
> The JDK1.2 scheme allows a non-AWT application to run without any
> dependencies on finding a Motif library, and without shipping a bunch
> of different JVMs the way Blackdown JDK1.1 does. It's good news for
> deployment on servers.
>
> I'm not clear to me what is now made impossible. Could you clarify?

Impossible may be stretching it.  But suppose you have a program
which already does a lot of Motif stuff, and you want to add some
Java capabilities.  You need to link your main program against
libXm.a or libXm.so, and now libawt.so is going to suck in another
copy of Motif.

At a minimum, you've got a 2MB bigger footprint than you need.  In the
worst cast, there is static data in Motif that I now have two copies
of, and I suspect that is going to cause lots of trouble.  I haven't
dug into it yet, but a simple frame test created in Java via JNI (it
works in 1.1.7 no problem) now works OK in 1.2 until I link the main
program against Motif, at which point the java thread seg-faults.

Would it be possible to distribute another libawt.so which doesn't
have Motif built in?  (Sort of like java and java_dyn used to be?)
If I have to build my own JDK, I'm much more restricted in how other
people can use it.  But having all of the Motif symbols live in awt
and not be exported for my main program to use is a bummer.  It
literally prevents me from using Motif and Java together on Linux,
at least from what I can see.

Thanks for any advice or thoughts -
Greg



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



Kernel 2.2.13 breaks JNI on ix86, /proc/01234 weirdness

1999-10-30 Thread Greg Wolodkin

Hi all -
After upgrading my Linux kernel from 2.2.12 to 2.2.13, Java JNI
examples fail to load the virtual machine *if* the process number
is below 1.

I'm not sure whether or not this is a bug in the 2.2.13 kernel, or a
bug in the Blackdown JDK (1.1.7 v1a,v3), but the error I see when
starting the VM is "Cannot open /proc/09640 for GC" where 9640 is the
process ID of the guy who's trying to start the VM.

A simpler C program which reliably illustrates the same behavior is this:

#include 
void main(void) { if (fopen("/proc/1","r") == NULL) printf("Oops.\n"); }

where in 2.2.12 and before, /proc/1 would map to /proc/1.  In 
2.2.13 that's no longer true.

Backing out these two patches (below) fixes the problem, but I'm
wondering where the bug is (kernel or JDK) and what is the right fix?
The 1.2 JDK from Blackdown doesn't seem to have this problem, so
maybe the correct answer is a bug in the 1.1.7 JDK?  A quick scan of
the proc man page didn't reveal any details as to whether or not I
should be able to open /proc/1 instead of /proc/1.

Either way, I hope this simple example helps -- Thanks!
Greg

diff -u --recursive --new-file v2.2.12/linux/fs/proc/fd.c linux/fs/proc/fd.c
--- v2.2.12/linux/fs/proc/fd.c  Fri Apr 23 21:20:38 1999
+++ linux/fs/proc/fd.c  Tue Oct 19 17:14:02 1999
@@ -87,6 +87,7 @@
fd = 0;
len = dentry->d_name.len;
name = dentry->d_name.name;
+   if (len > 1 && *name == '0') goto out;
while (len-- > 0) {
c = *name - '0';
name++;
diff -u --recursive --new-file v2.2.12/linux/fs/proc/root.c linux/fs/proc/root.c
--- v2.2.12/linux/fs/proc/root.cMon Aug  9 16:05:57 1999
+++ linux/fs/proc/root.cTue Oct 19 17:14:02 1999
@@ -845,6 +845,7 @@
}
pid *= 10;
pid += c;
+   if (!pid) break;
if (pid & 0x) {
pid = 0;
break;



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



Printing with 1.2

1999-11-11 Thread Greg Tomalesky

Hi Gang:

Does anyone know where I can get some examples of printing under JDK
1.2?

Thanks
Greg



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



Printing with 1.2

1999-11-11 Thread Greg Tomalesky

Hi Gang:

Does anyone know where I can get some examples of printing under JDK
1.2?

Thanks
Greg



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



Printing with 1.2

1999-11-11 Thread Greg Tomalesky

Hi Gang:

Does anyone know where I can get some examples of printing under JDK
1.2?

Thanks
Greg



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



Printing with 1.2

1999-11-11 Thread Greg Tomalesky

Hi Gang:

Does anyone know where I can get some examples of printing under JDK
1.2?

Thanks
Greg



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



multiple posts

1999-11-11 Thread Greg Tomalesky

Hi Gang:

Sorry for the multiple posts..Using Outlook Express on NT

Greg



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



JDK 1.2 Printing part 2

1999-11-15 Thread Greg Tomalesky

Hi Gang:

First, thanks to all who responded to my first query. The article
pointed to was a big help. My next question concerns paper orientation.
Under Windoz I can set the orientation from portrait to landscape and the
printer understands. On Solaris, the pop-up dialog box does not allow the
orientation to be changed but does allow for extra printer commands. I have
set the PageFormat orientation to be PageFormat.LANDSCAPE by default which
,again, works fine with NT. On Solaris, the dimension of the page is set as
though it was going to print in landscape, but the paper is not turned on
its side to accept the output. Any Clues??

Thanks,
Greg



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



Java Workstation for Linux

1999-11-17 Thread Greg Tomalesky

Hi Gang:

I just installed JWS 3.0 on my NT box at work. Pretty nice. There is a
port to Solaris as well. I was wondering if anyone has tried to port this to
Linux?

Thanks,
Greg



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



Still vexed, JNI + Motif in 1.2 JDK

1999-11-29 Thread Greg Wolodkin

Hi all -
Has anyone had any luck using the newer 1.2 JDKs (1.2-preXX and/or the
latest 1.2.2-RCxx) from within a Motif app?  Specifically I'm trying
to use the JNI to make calls from within a C program, and running into
trouble due to the fact that libawt.so contains a statically linked
copy of Motif.

The 1.1.7 model (where Motif was resolved by java, javac, etc) worked with
no problems.  But I've tried everything (except for building my own JDK
from Sun sources and Blackdown diffs) and I'm convinced there is no way I
can do this given the current distribution.

Thanks for any ideas - I have a bug report filed on the Blackdown pages
but I think it may be a while before the Incoming pile gets small enough 
for it to get noticed.  (1437 is the number).

Cheers-
Greg


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



Building 1.2.2 from Sun sources + Blackdown diffs

1999-11-29 Thread Greg Wolodkin

Hi all -
I've spent some time over the last two weeks trying to track down
the original 1.2 Sun sources (they're no longer on Sun's web pages,
only the 1.2.2 stuff is there).

Given the name of the latest 1.2.2-RC2 release, I'm thinking it is
probably based on the 1.2.2 source tree.  If so, how can I get a copy
of the Blackdown diffs for this latest release?

I realize everyone on the porting team is probably swamped, and I'm
ready and willing to tackle a few issues myself and submit patches,
but it's been incredibly difficult to even get started.  For 1.2 I
have the diffs but no source tree.  For 1.2.2 I have the source tree
but no diffs.

Do the porting team folks read this list anymore?  Hope so!  Thanks
in advance for any advice -

Greg


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



Re: IDE's

1999-12-01 Thread Greg Tomalesky

Hi:

JBuilder3 is ok. I has some serious(IMHO) shortcomings. I will
enumerate:

1. No GUI way to define JTable data model or other JTable helper classes
such as TableHeader or ColumnModel

2. No GUI way to modify tab labels in a JTabbedPane.

3. No GUI way to add icons to buttons etc.


These shortcomings may be overcome by modifying the code directly but
that kind of defeats the purpose of a visual design tool. NetBeans has GUIs
for icon assignment and table properties.

Greg

- Original Message -
From: Paolo Ciccone <[EMAIL PROTECTED]>
To: Glenn Holmer <[EMAIL PROTECTED]>
Cc: java-linux mailing list <[EMAIL PROTECTED]>
Sent: Friday, November 19, 1999 11:32 AM
Subject: Re: IDE's


> On Fri, Nov 19, 1999 at 07:08:13AM -0600, Glenn Holmer wrote:
> > The no-brainers that made the list right away are Visual Age,
> > JBuilder, and NetBeans, because they all run (or will soon) on
> > Linux.  Can anybody give opinions or sources of info that will
> > help us with this decision?  What I want to prepare is a feature-
> > for-feature comparison.
>
> Some of the main features of JBuilder:
>
> - 100% Java.
> - CodeInsight: shows dynamically the completion of the method and the
>   arguments while your typing.
> - Dynamic syntax check shows error in code before you compile
> - Full support of JDk 1.2
> - Visual Designer with two-way tool (you change the code in the editor
>   and the designer updates the view).
> - Debugger with handling of deadlock in Threads.
> - Integrated and command-line compiler with true dependency checker
>   and minimal compilation.
> - Remote debugging.
> - Applet,Servlet,Javabean support.
> - OpenTools architecture to extend the IDE with add-ins.
> - Extensive on-line help.
> - Available for Solaris now, Linux very soon.
>
>
> --
> Paolo Ciccone
> JBuilder dev. team
>
>
> --
> 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: IDE's

1999-12-02 Thread Greg Tomalesky

Hi Paolo:

That Solaris edition must be way newer than the demo CD I have:

jBuilder
Enterprise
Version 3.00

Build 003.000.273.000.English
09d/05m/1999 03:00:12

I was able to set the tab labels via the "constraint" parameter of an
embedded jPanel. I still can't see where to set the icon of the tab or of
any buttons. The model parameter for the jTable shows as  when I
select it and complains when I complete the selection. So based on this
version/build of the demo my original concerns are mostly intact.

Greg

- Original Message -
From: Paolo Ciccone <[EMAIL PROTECTED]>
To: Greg Tomalesky <[EMAIL PROTECTED]>
Cc: Java-Linux <[EMAIL PROTECTED]>
Sent: Wednesday, December 01, 1999 3:48 PM
Subject: Re: IDE's


> On Wed, Dec 01, 1999 at 04:25:47PM -0600, Greg Tomalesky wrote:
> > Hi:
> >
> > JBuilder3 is ok. I has some serious(IMHO) shortcomings. I will
> > enumerate:
>
> I'll use the Solaris edition, just released, to answer to this. The Linux
> version, under development and demoed at the last LWCE, uses the same code
> since JBuilder is now 100% Java.
>
> > 1. No GUI way to define JTable data model or other JTable helper
classes
> > such as TableHeader or ColumnModel
>
> All these properties are accessible from the property list in the Visual
> Designer together with many others.
>
> > 2. No GUI way to modify tab labels in a JTabbedPane.
>
> This is available, just type the label in the related property in the
> designer.
>
> > 3. No GUI way to add icons to buttons etc.
>
> Again this is accessible from the designer.
>
> I hope this addresses the problems you mentioned if there is any
suggestion
> about JBuilder or other Borland products please send us feedback, we have
> set up a community website just for this, see http://community.borland.com
> or http://www.borland.com
>
> Regards,
>
> --
> Paolo Ciccone
> JBuilder dev. team
>
>


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



Re: Problems jdk-1.1.8-v3 + Slackware7.0

2000-11-01 Thread Greg Wolodkin

> > I'm sorry if this is a silly or always-repeated question, but I didn't
> > find any reference in the faq, and I really need urgently a solution.
> >
> > The problem is, I'm trying to run jdk-1.1.8-v3-glibc-2.1.3 with my
> > Slackware-7.0 linux distribution (glibc-2.1 based!). It's not possible for
> > my to use newer versions, I need this one.
[..]
> > zapl:~$ /opt/jdk118_v3/bin/javac
> > SIGSEGV   11*  segmentation violation
> > stackbase=0xb198, stackpointer=0xb060
[..]
> > *current thread*
> > java.lang.System.initializeSystemClass(System.java)

You are missing the en_US locale, which the VM depends upon for
character translation.  I'm not sure of the best way to install
it for Slackware (i.e. what package contains it).  Typically 
your locales will live in /usr/share/locale/* or /usr/lib/locale/*
and you need to get en_US/ in there.

You might also try this tidbit from the glibc INSTALL notes:

>After installation you might want to configure the timezone and
> locale installation of your system.  The GNU C library comes with a
> locale database which gets configured with `localedef'.  For example, to
> set up a German locale with name `de_DE', simply issue the command
> `localedef -i de_DE -f ISO-8859-1 de_DE'.  To configure all locales
> that are supported by glibc, you can issue from your build directory the
> command `make localedata/install-locales'.

Greg


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




Re: CVS vs RCS vs ? Thanks

2000-11-14 Thread Greg Lewis

Barnet Wagman wrote:
> Thanks for the advice.  CVS is clearly the system to use.

Well, noone else has really put forward any other alternatives ;).  You
could also look at similar systems such as

Aegis <http://www.canb.auug.org.au/~millerp/aegis/aegis.html>
PRCS <http://www.cs.berkeley.edu/~jmacd/prcs.html>
etc.

You can find a comprehensive list in the "Configuration Management Tool 
Summary" at http://www.iac.honeywell.com/Pub/Tech/CM/CMTools.html

    - Greg


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




Re: UML designer...

2000-11-16 Thread Greg Lewis

Erick wrote:
> Is ther a UML desinger like visio for Linux, so we can avoid doing all those 
> calcs and plans on the paper?

Well, while not specifically for Linux, you could try Dia, which is now
part of the Gnome project.  It also has a design goal of being like Visio.

http://www.lysator.liu.se/~alla/dia/

Since this is a Java mailing list, you could also try ArgoUML:

http://argouml.tigris.org/

- Greg


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




Best Linux distribution to compile on?

2001-02-23 Thread Greg Lewis

Hopefully this isn't too controversial a question :).

Given that Sun have made 1.3 available under the SCSL, does anyone
have any tips on what is the best distribution to compile this under?
I guess the obvious one is whichever Sun uses, but I'm not sure what
that is.  I'd very much appreciate it if someone could enlighten me :).

    regards, Greg
-- 
Greg LewisEmail : [EMAIL PROTECTED]
Eyes Beyond   Mobile: 0419 868 494
Information TechnologyWeb   : http://www.eyesbeyond.com


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




Re: J2SE 1.4 & Linux & i686/green_threads

2001-07-26 Thread Greg Lewis

On Thu, Jul 26, 2001 at 10:04:47PM -0700, Danny wrote:
> I downloaded the J2SE v 1.4.0 Beta version for Linux from Sun,
> http://java.sun.com/j2se/1.4/, and applications requiring
> Java_Home/bin/i686/green_threads/java won't run.  After unpacking
> J2SE 1.4 beta, only Java_Home/bin/i386/native_threads were installed
> on my system.  The JDK 1.1.8 bin directory contains an i386, i486,
> i586, & i686 directory and each of these directories contains a
> green_threads and native_threads directory.  My question is how do
> I install i686 /green_threads and i686/native_threads in my J2SE
> v 1.4.0 /bin directory?  I've tried symbolic links to the J2SE v
> 1.4 i386 directory and updating my PATH environment variable to
> point the JRE libhpi.so directory but this didn't work.  Any help
> would be appreciated.

1.4 will only support native threads.

-- 
Greg LewisEmail : [EMAIL PROTECTED]
Eyes Beyond   Mobile: 0419 868 494
Information TechnologyWeb   : http://www.eyesbeyond.com


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




Issues with setLocation/setSize and fvwm/fvwm2

2002-02-07 Thread Greg Wolodkin


Anyone familiar with these two bugs?

  http://developer.java.sun.com/developer/bugParade/bugs/4395578.html
  http://developer.java.sun.com/developer/bugParade/bugs/4392053.html

I can still reproduce them in FCS-02a using fvwm and fvwm2.  Below is
an example to illustrate.  If I switch to say icewm then back to fvwm2,
things work OK.  Are we getting it right for most window managers, but
not fvwm?  Or is fvwm not giving us enough information to get it right?

We've tangled with this issue before in MATLAB, and have code to get
the insets right across the board.  Before I dig into the VM and start
poking around I thought I'd ask here if anyone had any advice or pointers
into the code.

Thanks for any thoughts or info --
Greg

/* --- */

/*
 * Initial dialog should be 400x300.
 * Resized dialog should be 600x400.
 * With Java2 and fvwm, its often wildly wrong
 */

import java.awt.*;
import java.awt.event.*;

public class DialogTest {

static Frame  f;
static Dialog d;

public static void main(String[] args) {

// Create frame
f = new Frame("Dialog Test");
f.setLayout(new FlowLayout());
f.setLocation(100,100);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});

// Add buttons to frame
Button b = new Button("Show Dialog");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (d != null) return;
// Create dialog
d = new Dialog(f,"Test");
d.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
d.dispose();
d = null;
}
});
d.setLocation(200,200);
d.setSize(400,300);

// Add button to dialog
Button b1 = new Button("Hide Dialog");
b1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
d.dispose();
d = null;
}
});
d.add(b1);

// Show the dialog
d.setVisible (true);
}
});
f.add(b);
b = new Button("Resize Dialog");
b.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (d != null)
{
d.setLocation(250,250);
d.setSize(600,400);
}
}
});
f.add(b);

// Show the frame
f.pack();
f.setVisible(true);
}
}


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




Re: JVM Size Limitations on Linux x86

2002-02-12 Thread Greg Lewis

On Tue, Feb 12, 2002 at 03:31:59PM -0600, Eric wrote:
> Ahh...this may be a solution.  It looks like I could build it to not
> do mmap()s, but do malloc()s instead by using -DUSE_MALLOC (and maybe
> even link it against hoard to have a really nice malloc)
> 
> However, it appears to be a total pain to get this thing to compile...
> I have no idea where a JDK with libjvm_g.so comes from and OPEN_MAX
> wasn't defined in some file and my yacc didn't like line 125 of
> parser.y and signals_md.o has a bunch of unresolved symbols that
> should be in threads_md.o 
> 
> Seems like if I actually reverted to the version of GCC they recommend
> it might fix some of these problems, but I don't think all.  Does
> anyone actually compile this thing?  :)  Someone want to help me with
> getting one that has -DUSE_MALLOC?

While USE_MALLOC is still in the code methinks its not had any attention
for quite some time.  I eventually got it to compile at one point with
this but it then promptly segfaulted (or at least thats my recollection).

Just FYI :)

-- 
Greg LewisEmail : [EMAIL PROTECTED]
Eyes Beyond   Phone : (801) 796 6999
Information TechnologyWeb   : http://www.eyesbeyond.com


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