Re: Can Java Catch Signals ?

1998-09-25 Thread java

http://www.interstice.com/~kevinh/projects/javasignals/index.html


Trent Jarvi
[EMAIL PROTECTED]



Re: How to Write MakeFile ?

1998-11-25 Thread java

Heres a simple Makefile I use.

BIN   = /home/jarvi/java/gps/bin/
JAVAC = javac
JFLAGS= -d /home/jarvi/java/gps/bin -O
JFILES   := $(patsubst %.java,$(BIN)%.class,$(wildcard *.java))
SUBDIRS   = almanac misc route trackpoint waypoint rxtx

.SUFFIXES:.class .java

$(BIN)%.class: %.java
$(JAVAC) $(JFLAGS) $<

all:$(JFILES) $(SOFILES)
@set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done

Trent Jarvi
[EMAIL PROTECTED]



Re: Singal use in Native Threads jdk

1998-12-24 Thread java

Interesting post.  I've not read much about SIGSTOP/SIGCONT.  Should native 
libraries be catching SIGSTOP to yield to the garbage truck then?  How are
you handling this inside the black box?

Trent Jarvi
[EMAIL PROTECTED]
rxtx maintainer
http://jarvi.ezlink.com/rxtx/



RE: serial port program

1999-01-01 Thread java


One problem we are encountering with rxtx is libc5 versions of the jdk native
include files are not compiling clean with rxtx.  If anyone able to dig around
has the libc5 version installed we are interested in knowing if this is a 
problem with the libc5 jdk jni or rxtx.

The only think on the rxtx side I can think of is maybe the flags -ansi 
-D_POSIX_SOURCE -D_BSD_SOURCE could be causing problems with the jdk jni.  It
works fine on the glibc version.

This was not a problem with previous releases of the libc5 jdk/rxtx when I had
libc5 systems around.  There have been proposed changes to typedefs_md.h but 
I'm not convinced they are right.

Trent Jarvi
[EMAIL PROTECTED]
http://jarvi.ezlink.com/rxtx

[Typical problems]
> gcc -I /usr/local/lib/rxtx-1.2-beta-1 -I 
/usr/local/lib/rxtx-1.2-beta-1/i586-pc-linux-gnulibc1 -I . -I 
/usr/local/lib/java/jdk1.1//include -I 
/usr/local/lib/java/jdk1.1//include/genunix/ -g -O2 -Wall -ansi -DTIMEOUT 
-DASYNC -D_POSIX_SOURCE -D_BSD_SOURCE -c -fPIC -DPIC ../src/SerialImp.c
> In file included from /usr/local/lib/java/jdk1.1//include/typedefs.h:18,
>  from /usr/local/lib/java/jdk1.1//include/oobj.h:25,
>  from /usr/local/lib/java/jdk1.1//include/StubPreamble.h:26,
>  from ../src/SerialImp.c:24:
> /usr/local/lib/java/jdk1.1//include/genunix/typedefs_md.h:149: parse error 
before `a'
> In file included from /usr/local/lib/java/jdk1.1//include/oobj.h:25,
>  from /usr/local/lib/java/jdk1.1//include/StubPreamble.h:26,
>  from ../src/SerialImp.c:24:
> /usr/local/lib/java/jdk1.1//include/typedefs.h:31: parse error before 
`int64_t'
> /usr/local/lib/java/jdk1.1//include/typedefs.h:31: warning: no semicolon at 
end of struct or union
> /usr/local/lib/java/jdk1.1//include/typedefs.h:33: parse error before `}'

> /usr/local/lib/java/jdk1.1//include/typedefs.h:33: warning: data definition 
has no type or storage class
> In file included from /usr/local/lib/java/jdk1.1//include/StubPreamble.h:26,
>  from ../src/SerialImp.c:24:
> /usr/local/lib/java/jdk1.1//include/oobj.h:55: parse error before `number'
> /usr/local/lib/java/jdk1.1//include/oobj.h:160: parse error before `int64_t'
> /usr/local/lib/java/jdk1.1//include/oobj.h:160: warning: no semicolon at end 
of struct or union
> /usr/local/lib/java/jdk1.1//include/oobj.h:161: warning: data definition has 
no type or storage class
> /usr/local/lib/java/jdk1.1//include/oobj.h:162: parse error before 
`ClassArrayOfLong'
> /usr/local/lib/java/jdk1.1//include/oobj.h:162: warning: data definition has 
no type or storage class
> 

[One solution provided by Robert Perry  This isnt the cleanest patch...]
--- typedefs_md.h   Fri Jan  1 15:30:40 1999
+++ typedefs_md.h.new   Fri Jan  1 15:29:27 1999
@@ -1,5 +1,5 @@
 /*
- * @(#)typedefs_md.h1.32 97/06/25
+ * @(#)typedefs_md.h1.31 97/01/23
  *
  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  *
@@ -17,7 +17,6 @@
  * THIS SOFTWARE OR ITS DERIVATIVES.  *
  * CopyrightVersion 1.1_beta
-
  *
  */

@@ -25,11 +24,6 @@
  * Solaris-dependent types for Green threads
  */

-/* sbb: Johan Vos, why isn't this #ifndef inside the solaris header guard? */
-#ifndef BITSPERCHAR
-#define BITSPERCHAR 8
-#endif
-
 #ifndef _SOLARIS_TYPES_MD_H_
 #define _SOLARIS_TYPES_MD_H_

@@ -37,57 +31,33 @@
 #include 
 #include "bool.h"

-#if defined(__alpha__)
-typedef unsigned long ptr_int;
-#define PTR_IS_64 1
-#define LONG_IS_64 1
-#else
+
 typedef unsigned int ptr_int;
 #define PTR_IS_32 1
-#endif

 /* don't redefine typedef's on Solaris 2.6 or Later */

-#if !defined(_ILP32) && !defined(_LP64)

-#ifndef _UINT64_T
-#define _UINT64_T
-#ifdef LONG_IS_64
-typedef unsigned long uint64_t;
-#else
-typedef unsigned long long uint64_t;

-#endif
-#define _UINT32_T
+typedef unsigned long long uint64_t;
 typedef unsigned int uint32_t;
-#if defined(__linux__)
 typedef unsigned int uint_t;
-#endif
-#endif

-#ifndef __BIT_TYPES_DEFINED__
-#ifdef (__i386__)
-/* that should get Linux, at least */
 #ifndef _INT64_T
 #define _INT64_T
-#ifdef LONG_IS_64
-typedef long int64_t;
-#else
 typedef long long int64_t;
-#endif
-#define _INT32_T
-typedef int int32_t;
-#if defined(__linux__)
-typdef int int_t;
-#endif
-#endif
-#endif /* i386 */
+
+/* typedef int int32_t; */
+
+typedef int int_t;
 #endif /* __BIT_TYPES_DEFINED__ */

 #endif  /* !defined(_ILP32) && !defined(_LP64) */

 #ifndef BITSPERCHAR
 #define BITSPERCHAR 8
+
+
 #endif

 /* use these macros when the compiler supports the long long type */
@@ -119,28 +89,12 @@
 #define IS_NAN(x) isnan(x)
 #endif

-
-/* On Intel these conversions have to be method calls and not typecasts.
-   See the win32 typedefs_md.h file */
-#if ((defined(i386) || defined (__i386)) && defined(__solaris__)) || 
defined(__powerpc__)
-

jikes and java.lang

1999-01-20 Thread Java Distribution

I have just built jikes on a Intel RH5.2 host.

When I invoke the compiler, it aborts w/a complaint about 
not finding java.lang

What is java.lang and where do I get it?

TIA!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Guy Cole (KQ6J) * "Expert Plain And Fancy Bit Twiddling" * [EMAIL PROTECTED]
   "Evil Genius for Dummies" - Buy a copy today!  World Domination Tomorrow!



Re: jikes and java.lang

1999-01-24 Thread Java Distribution

Thanks for the condescending answer.  
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Guy Cole (KQ6J) * "Expert Plain And Fancy Bit Twiddling" * [EMAIL PROTECTED]
   "Evil Genius for Dummies" - Buy a copy today!  World Domination Tomorrow!

On Thu, 21 Jan 1999, John Summerfield wrote:

> On Wed, 20 Jan 1999, Java Distribution wrote:
> 
> > I have just built jikes on a Intel RH5.2 host.
> > 
> > When I invoke the compiler, it aborts w/a complaint about 
> > not finding java.lang
> > 
> > What is java.lang and where do I get it?
> Contains the definitions of the most-requited java classes such as
> java.lang.System, java.lang.Thread, java.lang.Integer. It's in classes.zip.
> 
> Check that you have CLASSPATH and the other JDK environment variables set.
> Reread the jikes docs. Go visit the jikes forum & ask there: the author
> watches it and doubtless is better able to help than we.
> 
> -- 
> Cheers
> John Summerfield
> http://os2.ami.com.au/os2/ for OS/2 support.
> Configuration, networking, combined IBM ftpsites index.
> 



JDK1.3 on Linux with SMP

2000-08-22 Thread Java Linux

Hi all,

We're running Red Hat Linux 6.1, kernel 2.2.12 and
glibc 2.1.2 on Pentium SMP machines. After several
hours of running, sometimes one node will crash,
giving:

Exception in thread "main" java.lang.OutOfMemoryError
<>

In fact, it's unlikely that there should be any memory
problems and this error does not occur when running on
a single node. It's also disturbing that each java
process takes only about 40 percent of the processing
capacity on each node, even though it could go up to 7

percent or more.  So, Sun's JDK 1.3 doesn't seem to be
working on SMP machines under linux.

Any advice?

Thanks.



__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/


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




Help: Read data from file.

2000-11-07 Thread New Java

Hi,

I want to read data from a file.

The data file: mydata.txt

First_Name, Last_Name, Age
John, Paul, 30
David, Lee, 26
:
:

Can I ignore the first line--> the Title and just read
from second line?

Thanks,

David


__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/


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




How to print String to default Printer, Help

2000-12-04 Thread New Java

Hi, there,

What I want to do is: 
When the following code running,
print "try to be printed" to my default printer, NOT
my screen. Could you help me on it?

Thanks!! (Sorry for the basic stupid question)

David

***

public static void main (String args[]) {
   str_mystring = "try to be printed"


}

***


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


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




Re: strange problem with jdk1.1.6v4 and debian....

1998-10-01 Thread Java News Collector

At 11:48 AM 10/1/98 -0700, you wrote:
>Hello,
>
>spurious thing
>i am developping several things, and since now had no problem executing
them...
>but now i ran into the following problem:
>
>i have a class HelpBrowser that i began to make with netbeans, this class
>includes a method  
>public static void main(java.lang.String[] args) {
>new HelpBrowser ().show ();
>  }
>
>the classpath is set to:
> echo $CLASSPATH 
>/usr/local/java/lib/classes.zip:/home/bboett/java/:/home/bboett/java/jmud/c
ommon:/home/bboett/java/jmud/server:/home/bboett/java/JLex:/home/bboett/java
/cup:/home/bboett/java/JavaCC:/home/bboett/java:/home/bboett/java/swing/swin
g.jar:/home/bboett/java/swing/windows.jar:/home/bboett/java/swing/motif.jar:
/home/bboett/java/swing/metal.jar:/home/bboett/java/swing/organic.jar:/home/
bboett/java/swing/mac.jar:.:.
>
>the compile ist fine, no probs, but when i try to execute:
> java HelpBrowser
>Can't find class HelpBrowser
>
>and i do not know what to do to get it strange enough when executed
through
>netbeans it executes

Could it be that the classpath gets truncated at 256 chars or something
like that?  Try moving the "." to the front and see if that fixes/changes
the problem.

Douglas Toltzman



Re: java crashes when starting a frame (more info)

1998-10-01 Thread Java News Collector

At 08:21 PM 10/1/98 +0200, you wrote:
>Hi again!
>
>I left out some information that might help in solving of my question.
>An output like this one is printed
>
>The output when it crashes (java and appletviewer).
>
>SIGSEGV   11*  segmentation violation
>stackbase=0xb430, stackpointer=0xb334
>
>Full thread dump:
>"Finalizer thread" (TID:0x4065e208, sys_thread_t:0x413a2f04, state:R)
prio=1
>"Async Garbage Collector" (TID:0x4065e250, sys_thread_t:0x41381f04,
state:R)
> prio=1
>"Idle thread" (TID:0x4065e298, sys_thread_t:0x41360f04, state:R) prio=0
>"Clock" (TID:0x4065e088, sys_thread_t:0x4133ff04, state:CW) prio=12
>"main" (TID:0x4065e0b0, sys_thread_t:0x81f1808, state:R) prio=5
*current thr
>ead*
>java.lang.Runtime.loadLibrary(Runtime.java)
> ...

I've seen something like this before.  It was immediately after I had
updated my JDK from 1.1.3 to 1.1.6 and I discovered that there were still
some hooks into the 1.1.3 code.  I removed the 1.1.3 and all references to
it in paths, etc. and the problem went away.

This may be a completely different problem but it could be relevant.

Douglas Toltzman



Re: Can't import Calender in java.util.Calender

1998-10-01 Thread Java News Collector

At 02:23 PM 10/1/98 -0500, you wrote:
>I recently tried to write a program trying import Calender so that I
>could use it and I got the Error: Class java.util.Calender not found in
>import.  I have my classpath set to include my classes.zip and my
>swingall.jar and it has worked find on all the other programs I have
>work on up to now?  I even upziped the classes.zip to make sure it
>contained calender and it did.  Can anyone help me with this problem
>please.
>-jeff

Are you really spelling "Calendar" as "Calender" ?

Douglas Toltzman



Re: slightly off-topic

1998-10-03 Thread Java News Collector

You're right, you are missing something pretty basic.

If you have a method that must return type Object or any less specific
class than the class you KNOW it to be, you use an explicit cast when
referring to the returned reference.  The Java runtime will issue a
run-time error if you make an illegal cast.  Here is an example (I didn't
compile this so I apologize for any lazy syntax errors).

class StringArray extends Object
{
   Vector arrayOfStrings;

   StringArray( String [] args )
   {
  int i;
  for ( i = 0; i < args.length; i++ )
 arrayOfStrings.addElement(args[i]);
   }

   String getElement( int i )
   {
  //  LOOK HERE * the next line casts a generic Object to a String
  return (String) arrayOfStrings.elementAt(i);
   }   
};

Douglas Toltzman

At 02:15 AM 10/3/98 -0500, you wrote:
>Hi,
>
>Please pardon the email handle (just something I picked to separate
mailing-lists) and the (possibly, new to the mailing-list) off-topic-ness
of this question...
>
>I keep hitting an obstacle while coding and I was hoping someone here
could help enlighten me:
>
>A bunch of the java-standard methods return "Object" and when I try to use
them, I get the following error:
>
>  >> Incompatible type for declaration. Explicit cast needed to convert
java.lang.Object to (whatever)
>
>In this particular instance, I've created a class which is a descendant of
java.awt.Checkbox.  I add an ItemListener and the listener, therefore,
receives an ItemEvent.  I call ItemEvent::getItem() and try to call a
method that I've created for the descendant class...hence the error which
would seem to imply that if I'm going to use the ItemEvent (or the java
hashtable or a bunch of other stuff that I've just worked around), I can
only call Object::(whatever Object methods there are) after my objects go
thru the mill.
>
>I'm pretty sure whatever I'm missing is pretty basic...could anyone shed
some light on this for me?
>
>Thanks,
>
>--Fred McDavid
>



Re: Netscape 4.05 support Java 1.1??

1998-10-05 Thread Java News Collector

At 04:58 AM 10/5/98 -, Chi-Ming Yang wrote:
>Thanks Juergen, Mario, Dan, Dimitrios, and John.
>Is there a RPM for the latest Netscape? (4.06?)
>Why did Red Hat 5.1 give me an old Netscape?
>It seems that Netscape is not taking Java seriously. Too bad.

Netscape is taking Java very seriously.  That statement is most unfair.
Have you noticed MicroSoft's priority on porting to other platforms and
supporting Java?  Its pretty easy to oversimplify the problem from the
outside looking in.

Douglas Toltzman

(who is thankful that Netscape is still in business and supporting the
other platforms)





Re: Does Java apps has to have .class extension?

1998-10-05 Thread Java News Collector

At 08:19 PM 10/5/98 -0400, Danny Lu wrote:
>But when I try to run a example program I wrote.. and I change
>the extension.. I got an error stating "Can't find class Example"
>
>okay at first I tried to compile my example program:
>   javac Example.java
>
>and I got Example.class... now I change the name of the Example.class to 
>Example:
>   mv Example.class Example

Your requirement seems strange but, have you tried;

ln Example.class Example

and then execute Example ?  I don't know if this will address your problem
since you didn't tell us what you are trying to do.

Another solution may be to create a script that contains "java Example".

>then I made the example executable:
>   chmod u+x Example
>
>and then I ran it...
>   ./Example
>
>I got the error message saying:
>   "Can't find class Example"
>
>that's what I was trying to say hehe =)
>
>Dan

Just a work around if it helps.

Douglas Toltzman



Re: Problem installing JDK

1998-10-05 Thread Java News Collector

It sounds to me like you FTP'd the file in ASCII mode rather than IMAGE
(binary) mode!  You have a corrupted tar file.

At 08:46 AM 10/5/98 -0500, Bordelon wrote:
>I am fairly new to the Unix (esp. Linux) world.  I am trying to set up a
small Linux server for my client in an effort to demonstrate its
capabilities as a web server.  Unfortunately, I am having troubles
installing the JDK.  It is probably an error between the chair and desk,
but if anyone can help me out, please reply.  Here are the steps I took:
>
>1. On my Windows Machine (I know, I know), I downloaded the glibc version
of 1.1.6 from the blackdown web site
>2. Then I FTPed the file over to the Linux box.
>3. Finally, I ran "tar xzvf jdk1_1_6-v2-glibc_tar.gz"
>
>It unpacks a bunch of header files (*.h) under the directory:
./jdk1.1.6/include
>Than it returns the message "tar:skipping to next file header"
>
>That's it.
>
>I would really appreciate any help.
>
>Thanks,
>Michael Bordelon
>
>Attachment Converted: "P:\USR\MEMO\EMAIL\Problemi.htm"
>



Re: JIT ????

1998-10-06 Thread Java News Collector

At 05:59 PM 10/6/98 -0400, Mehrdad Jahansoozi wrote:
>Greetings,
>
>Apparently, There is a confusion between JIT compiler, and JIT virtual
>machine( VM ).

And this isn't helping.
The JIT is not the Java compiler.  It is the "just in time" compiler which
is also platform-specific and actually processes your classes at runtime to
improve the efficiency of execution.  The JIT on OS/2 does an excellent
job.  Java code executes very quickly (once its loaded).  There is a hit in
load time and the line numbers are lost in exception reports but things
like compression/decompression utilities get a great boost.

>I was looking for a  linux ( VM ) and I thought clarify  Java classes
>need ( VM )  to run.
>VM is platform specific.

It is true, the VM is a platform-specific, Java-bytecode interpreter.

>A compiler is what creates Java classes from xxx.java files.
>I compile my java files in NT , and I need VM in Linux to run them on
>Linux.
>
>Regards,
>
>Mehrdad

In spite of the numerous question marks in the subject line, this post
doesn't read like a question.  I hope my response doesn't read like an answer.

Douglas Toltzman


/*
* Assuming a problem is something that stands in the way of achieving a
* goal, it must be true that people without goals cannot have problems.
* Is it also true that people without problems don't have goals?
**/



RE: Java app without X installed

1998-10-07 Thread Java News Collector

At 01:14 PM 10/7/98 -0400, you wrote:
>Let me just put in my two cents as another newbie.  It's a pain in the
>a** to have to RTFM all the time.  Has anyone counted up all the
>thousands of pages of documents there are out there?  Speaking as
>someone who has been R'ing TFM instead of asking, I have to say that
>while it gives me a great deal of satisfaction to have figured it out on
>my own, there has been more than one occasion when I've been up all
>night long searching for an answer in the docs that one of you gurus
>could have answered without thinking.  I recently got married, I work
>full time, I'm in graduate school, and I'm one of those people who
>requires 8 hours of sleep a night in order to function.  My time is at a
>premium, and if I post a question to the group it's not because I'm too
>lazy to find it myself, it's because I just plain don't have the time to
>do it myself and I'm hoping someone out there will be a little
>understanding and give me a helping hand.  I'm not asking you to come to
>my house and do it for me, after all.

Well, I also value my time and I'm a professional consultant.  Speaking
strictly for myself, I believe people have two options; 1) take their own
time to read the documentation and ask questions if they still don't
understand, 2) pay an expert for the answers that they have invested the
time to acquire.  IMHO, those are you only choices.  I understand time is
valuable but no one owes anyone answers they aren't willing to work for or
pay for.

What John is responding to (and rightly so, as far as I am concerned) is
the frustration that comes from answering the same questions over and over
when he and others like him have taken the time to record the answers to
the most commonly asked questions in the documentation that is shipped with
the, need I mention FREE, product.

Ask if you like, but, if you aren't paying for the answer, then accept what
you get.  Over time, I'm sure the documentation will get better.  As far as
I know, the contributers aren't getting paid so the consumers should be
grateful for what there is.

Douglas J. Toltzman
President/CEO
Oak Street Software, Inc.
(910) 326-6210
http://www.oakstrsft.com/



Re: lifeless javac with RedHat 5.0 JDK1.1.6v5

1998-10-15 Thread Java News Collector

Jason,

Your path may still be the problem.  Un*x doesn't search the current
directory unless the path contains a "." and, if the path does contain a
".", the current directory will be searched after any directories that
precede that "." in the path.

It sounds like you may be executing a different javac.  Have you got kaffe
installed, by chance?

Douglas Toltzman

At 12:08 PM 10/15/98 -0700, Chambers Jason wrote:
>I picked up the following message from the mailing list:
>
>
>>2. Having uncompressed JDK116v5 (the one without the "b" at the end) it
>>creates all the directories to hold the jdk.  If I go into
>/jdk116v5/bin
>>and create a test.java file and then invoke "javac test.java", nothing
>>happens.  I just get a command prompt back.  No test.class file is
>created,
>>no errors, no messages, nothing.  Both the test.java and the javac are
>in
>>that directory so paths shouldn't be the problem.  Any ideas?
>
>
>I am having the exact same problem. I still haven't managed to solve
>it. If you have solved it by now, let
>me know. I heard a recommendation that a new version of
>glibc needs to be installed. I think its quite risky to 
>blindly install such a fundamental library. I would much sooner
>install a patch if indeed this is the problem. Another thing that was
>recommended was that I remove the linux libraries from the green
>threads directory. I did this but still it didn't work. I figured the
>Java compiler might be missing a library, so I hacked the script to do
>an ldd on the actual executable - all libraries are found.
>
>I know of someone else who had this problem. Their solution was to
>revert back to JDK.1.1.5 but I don't want to do that.
>_
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>



Re: SIGSEGV 11* segmentation violation

1998-10-15 Thread Java News Collector

Andrew,

I'd like to say, in the nicest way possible, your java installation isn't
using the correct libraries.  Either you have a mixed set of libraries or
some mixed java code.  I would suggest removing previous versions of java
that may use the old libc5 libraries, making sure you have a clean glibc
installation, and re-installing the JDK or JRE (for glibc).  I know it will
work if you have matching libraries and your path doesn't point to the
wrong binaries, etc., etc.

Douglas Toltzman

At 08:26 PM 10/15/98 +0200, Andrew Lipnitsky wrote:
>Hello All.
>
>Some time ago on my linux box JDK-1.1.3 + libc5
>was working fine.
>Then I have decided  to update my linux to glibc2.
>So, I downloaded and installed glibc2 (2.0.95). Then
>I downloaded and installed jdk1.1.6v2-i386-glibc.tar.gz
>to /usr/local/opt/JDK. (files libc.so and libdl.so was
>removed from lib/i586/green_threads/ (but it does not
>matter at all as well as value of NS_JAVA variable)).
>When I try run java without arguments I get :
>
>Usage: java [-options] class
>
>where options include:
>-help print out this message
>..
>-verify   verify all classes when read in
>-verifyremote verify classes read in over the network [default]
>-noverify     do not verify any class
>
>It's ok.
>
>But when I try something like:
>$java Hello
>I get:
>
>SIGSEGV   11*  segmentation violation
>
>Full thread dump:
>Monitor Cache Dump:
>Registered Monitor Dump:
>Monitor IO lock: 
>Child death monitor: 
>Event monitor: 
>I/O monitor: 
>Alarm monitor: 
>Monitor registry: 
>Thread Alarm Q:
>
>8-((
>
>When I try to compile some java code I get the same messages.
>
>Output of ldconfig -D is
>
>ldconfig: version 1.9.5
>ldconfig: warning: /lib/ld-linux.so has inconsistent soname
>(ld-linux.so.1)
>ldconfig: warning: /lib/libnss_files-2.0.6.so has inconsistent soname
>(libnss_files.so.1)
>ldconfig: warning: /lib/libpthread-0.7.so has inconsistent soname
>(libpthread.so.0)
>ldconfig: warning: /lib/ld-2.0.95.so has inconsistent soname
>(ld-linux.so.2)
>ldconfig: warning: /lib/libBrokenLocale-2.0.95.so has inconsistent
>soname (libBrokenLocale.so.1)
>ldconfig: warning: /lib/libc-2.0.95.so has inconsistent soname
>(libc.so.6)
>ldconfig: warning: /lib/libcrypt-2.0.95.so has inconsistent soname
>(libcrypt.so.1)
>ldconfig: warning: /lib/libdb-2.0.95.so has inconsistent soname
>(libdb.so.3)
>ldconfig: warning: /lib/libdl-2.0.95.so has inconsistent soname
>(libdl.so.2)
>ldconfig: warning: /lib/libm-2.0.95.so has inconsistent soname
>(libm.so.6)
>ldconfig: warning: /lib/libnsl-2.0.95.so has inconsistent soname
>(libnsl.so.1)
>ldconfig: warning: /lib/libnss_compat-2.0.95.so has inconsistent soname
>(libnss_compat.so.2)
>ldconfig: warning: /lib/libnss_db-2.0.95.so has inconsistent soname
>(libnss_db.so.2)
>ldconfig: warning: /lib/libnss_dns-2.0.95.so has inconsistent soname
>(libnss_dns.so.2)
>ldconfig: warning: /lib/libnss_files-2.0.95.so has inconsistent soname
>(libnss_files.so.2)
>ldconfig: warning: /lib/libnss_hesiod-2.0.95.so has inconsistent soname
>(libnss_hesiod.so.2)
>ldconfig: warning: /lib/libnss_nis-2.0.95.so has inconsistent soname
>(libnss_nis.so.2)
>ldconfig: warning: /lib/libnss_nisplus-2.0.95.so has inconsistent soname
>(libnss_nisplus.so.2)
>ldconfig: warning: /lib/libresolv-2.0.95.so has inconsistent soname
>(libresolv.so.2)
>ldconfig: warning: /lib/librt-2.0.95.so has inconsistent soname
>(librt.so.1)
>ldconfig: warning: /lib/libutil-2.0.95.so has inconsistent soname
>(libutil.so.1)
>/usr/X11R6/lib:
> libXtst.so.6 => libXtst.so.6.1
> libXt.so.6 => libXt.so.6.0
> libXp.so.6 => libXp.so.6.2
> libXmu.so.6 => libXmu.so.6.0
> libXi.so.6 => libXi.so.6.0
> libXext.so.6 => libXext.so.6.3
> libXaw.so.6 => libXaw.so.6.1
> libXIE.so.6 => libXIE.so.6.0
> libX11.so.6 => libX11.so.6.1
> libSM.so.6 => libSM.so.6.0
> libPEX5.so.6 => libPEX5.so.6.0
> libICE.so.6 => libICE.so.6.3
> libXpm.so.4 => libXpm.so.4.3
>/usr/local/opt/JDK/lib/i586/green_threads:
> libsysresource.so => libsysresource.so
> libsysresource_g.so => libsysresource_g.so
> libjpeg.so => libjpeg.so
> libjpeg_g.so => libjpeg_g.so
> libtawt.so => libtawt.so
> libtawt_g.so => libtawt_g.so
> libawt.so => libawt.so
> libawt_g.so => libawt_g.so
> libmmedia.so => libmmedia.so
> libmmedia_g.so => libmmedia_g.so
> libagent.so => libagent.so
> libagent_g.so => libagent_g.so
> libnet.so => libnet.so
> libnet_g.so => libnet_g.so
> libzip.so => libzip.so
> libzip_g.so => libzip_g.so
&g

Re: jdk 1.1.x without X-windows support

1998-10-22 Thread Java News Collector

It has been written previously so I quote;

>It is a bit hidden - it is in the README.linux file under the NS_JAVA
>option.  :-)
>
>If you set that environment variable, the non-statically linked non-AWT
>JVM will be used.
>

At 12:10 PM 10/22/98 +0200, Michal Fadljevic wrote:
>Hi everyone,
>
>I have couple of pure Java application daemons listening
>on sockets. Everything is going well {:). The only trouble is 
>that Java interpreter is too big and I don't need AWT classes 
>at all.
>
>Is it possible to get Java interpreter without X-windows support ?
>Can you point me to an appropriate place to see ?
>
>Thank you very much
>Michal
>-- 
>Michal Fadljevic ([EMAIL PROTECTED]) +420/2/701-719
>



Re: nusty linux exception

1998-10-23 Thread Java News Collector

At 01:50 PM 10/23/98 +0300, Pinca George wrote:
>hello world,
>
>I made a program useing symantec's classes.zip.
>
>It works fine on windows bat when I move it to Linux I get a nusty
>NullPointerException exception on the line :
>
>
>searchButton.setImageURL(symantec.itools.net.RelativeURL.getURL("xx.jpg"));
>
>The image is there
>
>Does anyone ,have a clue ?
>
>thenx
>gg

My money is on case sensitivity.  ""xx.jpg" was FTP'd from Windows and its
really "XX.JPG".  DOS people always get burned by case sensitive filesystems!

Just a hunch.

Douglas Toltzman



Re: Problem compiling with the JDK

1998-10-23 Thread Java News Collector

At 04:41 PM 10/22/98 -0500, Andrew P. Karels wrote:
>I am having problems useing the javac compiler in the Blackdown JDK.
>When I just type "javac" I get the message "No library path set".  I
>have RedHat linux ver. 5.1 JDK version 1.1.6.v5 glibc.
>
>Thanks for any help you can provide.
>
>Andy K.

Check which javac you are running.  Sounds like you might have Kaffe
installed or an earlier version of Java.

you might try "which javac"

Douglas Toltzman



Re: Is there a decent file explorer for Linux?

1998-10-25 Thread Java News Collector

At 03:23 AM 10/26/98 -, Chi-Ming Yang wrote:
>Hi there,
>   Is there a decent file explorer (manager) for Linux?
>   I installed Red Hat 5.1. It comes with two file manager utilities, xtm
and mid-night command. I am new to Linux. I really have problem to get use
to it.
>   I think it is not difficult to use swing to do one. Do you think it is
worthy to write one? Would anyone Linux user like it? One article said that
Unix geeks who think graphical interfaces are for sissies. (see:
http://www.msnbc.com/news/175558.asp) Is that true?
>
>
>Thanks

GUI's have their place.  If you want to automate a task or get a lot of
work done, generally a command line works faster.  Command lines tend to
intimidate those who don't know the commands.  I wouldn't necessarily call
them "sissies".

This has been my opinion, of course.

Douglas Toltzman



Re: Graphics Blaster Extreeme

1998-10-27 Thread Java News Collector

What has this got to do with Java on Linux ?

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



Re: newbie question

1998-10-29 Thread Java News Collector

At 11:47 AM 10/29/98 -0700, you wrote:
>Hi all,
>I just installed the glibc verison of the blackdown JDK 1.1.6 and I am
>getting this error when trying to complile a simple program using javac.
>
>/usr/local/jdk116_v5/bin/../bin/i586/green_threads/java: error in loading
>shared libraries
>libXpm.so.4: cannot open shared object file: No such file or directory
>
>thanks for the help

Are you also getting an error from the script?
There is a known bug in the java_wrapper script that is very easy to correct.
There is a space missing in a call to a subroutine.

This is quoted from the revised script.  Note the space after the
curly-brace in the second line.

>if isGreaterOrEqual "$libdlVers" 1.9.6 ||
>   { isGreaterOrEqual "$libcVers" 1.5.44 &&
>isGreaterOrEqual "$libdlVers" 1.9.9 }
>



Re: Off-topic issues

1998-10-29 Thread Java News Collector

How about this;

Its not Ok to post off-topic to any newsgroup.

--- or ---

Those of us who get tired of filtering it manually just unsubscribe and let
this list go the way so many have before it.  I'm sure the hardest working,
most dedicated people will be the first to go.

There are some things that are not on-topic but are related.  These posts I
understand.  However, completely off-topic posts (e.g. video controllers
supported by X-servers) are just noise.

Douglas Toltzman
(someone who likes to help whenever possible but has unsubscribed from many
lists once the signal-to-noise ratio became intolerable)

At 03:30 PM 10/29/98 +0100, Ernst de Haan wrote:
>Hi Java gnurus,
>
>Concerning all the off-topic issues posted on this newsgroup lately:
>IMHO it's ok to use this network to bring things to the attention of the
>people on this list (i.e. not concerning either the Java-Linux port or
>the use of Java under Linux), but it would be a good thing to explicitly
>state this in the subject line.
>
>What about agreeing on prepending "OFFTOPIC: " to the subject line if
>the message neither concerns the port nor using Java on Linux? Those of
>us who want to, can filter these messages out...
>
>Whaddayathink?
>
>
>Ernst
>
>-- 
> _
>|  "Come to me all you who are weary and burdened, and I  |
>|  will give you rest."   |
>| |
>| -- Jesus Christ (Mt. 11:28) |
>|_|
>| Ernst de Haan | email [EMAIL PROTECTED]|
>| Java programmer   | web   members.xoom.com/znerd/   |
>| Utrecht University| icq#  21871778  |
>|___|_|
>



Re: Interest in a JIT on Linux

1998-11-02 Thread Java News Collector

At 03:40 PM 11/2/98 -0800, [EMAIL PROTECTED] wrote:
>> user who happens to work for IBM in the Research division, I've been
wondering
>> if some of the technology we have here could be useful to the Java on Linux
>> effort.  More specifically, I was thinking that I might be able to get a
>> "research" effort going to port IBM's Intel JVM with its JIT (we have a
pretty
>> good one) to Linux.
>
>
>Well, there is the TYA JIT ftp://gonzalez.cyberus.ca/pub/Linux/java/
>It certainly *seems* fast, but I am curious if there are any
>benchmarks for it.
>
>M.

If he speaks of the JIT used for OS/2 on Intel.  It performs very nicely.
I was amazed at the difference between the performance of Java on OS/2 and
the same on Linux, Win95 and Mac.  To be fair, I haven't tried the TYA JIT
for Linux.

Douglas Toltzman
Oak Street Software, Inc.



Re: Open Java

1998-11-04 Thread Java News Collector

At 11:44 PM 11/4/98 -0500, Nelson Minar wrote:
>I'd really hate to see this list get dragged into a debate about 
>Java Linux porting team politics. The folks who have donated their
>effort to bringing Java to Linux - all of them - have done a wonderful
>job. Thanks to you all!

Agreed.

--- big snip ---

>What we do need, in the research community, is a more open Java
>system. Something we can all hack on, experiment with. It's not going
>to come from Sun, and therefore I suspect it's not going to come from
>the Linux porting team.
>
>It could possibly come from one of the free VM efforts - Kaffe,
>Japhar, or what Cygnus is up to. If you're really interested in
>building an open Java base to experiment with, I think those are the
>places to start.

For the most part, I agree with what Sun is doing.  Imagine if we had a
half-dozen or so variations of TCP/IP.  I don't want Java to go down the
road HTML is on.  There are Netscape extensions and Microsoft extensions,
etc.  Most of it works everywhere but not all.

Java is something for which I have waited a long time.  A tightly
controlled standard is necessary if its going to be interoperable.  So far,
I'm relatively happy with Java's progress.

Nothing is perfect and nothing ever will be.

Just my $.02.

Douglas Toltzman
Oak Street Software, Inc.




Re: java

1998-11-06 Thread Java News Collector

Also, make sure you are running what you think you are running.
Do a "which java" and make sure you don't have a conflicting package like
Kaffe or older version of Java.

At 10:25 AM 11/6/98 -0500, Aleksey Sudakov wrote:
>: I am running the lates glibc version of jdk on a Pentium66 with linux 5.0. 
>: 
>: I looked and appear to have the correct versions of the glibc libraries.
>: 
>: But everytime I run any of the jdk program. I get no output. No errors, no 
>: ..class files, no nothing. I don't even get a core dump.
>: 
>: Does anyone now what is going on? 
>
>I guess I experienced the same. Even simple things like javac
HelloWorld.java failed silently while java --help worked. I upgraded to the
most recent glibc which is if I am not mistaken x-x-29 and problems went away.
>
>Regards,
>Aleksey
>
>P.S. Well, glibc was not the only thing that I upgraded from default
RedHat 5.0 installation, so may be the solution was there.



Re: java runtime object invoke a linux interavtive command

1998-11-27 Thread Java News Collector

At 04:58 PM 11/26/98 +0800, optima wrote:
>hellow friend 
>I can use the runtime object to exec() a "ls".
>But I can't invoke the command "passwd "
>because it need to comfirm the passwd .how can I do
>thank my linux fan.

If you aren't using shadow passwords, you can just locate the password in
the password file, call crypt() with the clear-text password to get the
cyphertext and compare the cyphertext to what you got from /etc/passwd.
The passwd utility was designed to be used by users and to be as secure as
possible.  Therefore, many tricks with redirecting i/o don't work.  i.e. it
won't let you!

A note about crypt()... it needs a seed.  The seed is stored in the first
[2] characters of the cyphertext in the password file.

I'm sure there is a similar approach that would support shadow passwords, I
just haven't had a chance to look it up, yet.  If you need a complete
reference implementation, find the source code for "passwd".  That is the
great part about being in open-software systems!

Douglas Toltzman
 



for the record

1998-12-01 Thread Java News Collector

To all the good people who are working hard to grow java on linux;  I, for
one, appreciate your efforts.  In my opinion, you are underpaid!

This recent barrage of criticism from new subscribers and wall flowers is
completely baseless.  We need to make everyone aware that there is a 100%
money-back-guarantee.  If you aren't completely satisfied, it won't cost
you a cent.

Its also worth pointing out (again) that this list generates a lot of
traffic.  It would be to the benefit of everyone involved to stay on the
topic.  As much as I enjoy MS-bashing, we don't need to do it here.  We
also don't need to discuss list management issues or badmouth people who
haven't yet got it all figured out.

I'd like to call a cease-fire and get back to coding, please.  If you must
reply to this, please reply to me directly.

Thank you.  I am sorry for adding to the pollution.

Douglas Toltzman




Re: Servlet program compile error

1998-12-04 Thread Java News Collector

It would appear from the stack-trace you provided that your servlet is
never executing.  Its probably not even being loaded.  The exception ...

>Failed to locate native function:
>java/util/zip/Inflater.init(Z)V
>java.lang.UnsatisfiedLinkError
>at java/util/zip/ZipFile.getInputStream(line unknown, pc 0x8373d8a)

... appears to be complaining about a missing native function for inflating
a zip file (probably a required .jar file).  This probably has something to
do with the installation and configuration of your servlet environment.

At 07:02 PM 11/28/98 +0900, ÇÑ»óÇ wrote:
>OS : Redhat 5.0
>JDK : JDK1.17
>JSDK :JSDK2.0
>
>I installed JDK1.1.7 and JSDK2.0.
>
>and I test application program and It's OK
>but I test servlet program.. but It has some problems.
>I din't see this problem before in Othre OS(Solaris or NT)
>and I have a trouble in this problem.
>
>the Problem is
>the source code is very simple

 snip 



Re: [FYI] Java violates US patent?

1998-12-07 Thread Java News Collector

At 01:07 PM 12/7/98 +0100, you wrote:
>Found a link to this article on JavaLobby:
>
>  http://www.pbs.org/cringely/pulpit/pulpit19981203.html
>
>Could turn out bad. Very bad.
>

I read the abstract of this patent.  I'm going to order a copy of the full
patent because, IMHO, the patent abstract doesn't sufficiently describe the
technology being patented.  It is a sweeping description of any external
executable content that allows further interaction and manipulation of
embedded hypermedia content.  It specifically states that the executable
content may execute on the source server, the client workstation or any
other remote host.  It sounds like they patented an idea (not unlike
X-windows).  It will either be difficult to enforce or so generally
applicable that we may as well just cancel our internet accounts.

I am a little miffed that Sun knew about this before they led us down the
Java road.  If Java is negatively impacted at the expense of all of us who
have invested our time and money in it, Sun is completely responsible.
According to Cringely, they should have been aware of a potential patent
filing.

Douglas Toltzman



Re: [FYI] Java violates US patent?

1998-12-07 Thread Java News Collector

At 12:06 PM 12/7/98 -0600, Justin Lee wrote:
>Ernst de Haan wrote:
--- snip ---
>Yet, surely the concept of portable code can't be contained within that
patent.
>Portable, interpreted code has been around far longer than that patent.
For an
>example, pick any form of BASIC.  Isn't Java just another multiplatform
>interpreted language?  The only difference is the source code is compiled
into a
>binary format rather than the engligh-esque nature of other intrepreted
>languages.

Not even that.  BASIC tokenized its "executable" before writing it to disk.

Douglas Toltzman




Re: [FYI] Java violates US patent?

1998-12-07 Thread Java News Collector

At 10:21 AM 12/7/98 -0800, David Wall wrote:
>>What is the idea of Java? Portable code.
>
>If that's all they claim, they will lose, since portable code has existed
>long before their patent.  Now, portable code inside web browser may be
>different, though some might argue that HTML itself is code that executes
>inside a browser, so again, such patents may be VERY hard to enforce.
>
>David

Its more like they patented the browser plug-in concept with distributed
capability(?)  Java can run outside the browser.  If the patent is
applicable to Java it should only pertain to the Java plug-in and
in-browser execution.

Patents may be found at http://www.uspto.gov/

Douglas Toltzman (who will now stop sending all this noise)



Re: what tools do you use for programming

1998-12-10 Thread Java Development Account


> 
> Anybody got any impressions on this Linux On A Disk deal? I'm not sure 
> whether my system  will handle three drives, but if not maybe I could 
> replace the 1.0Gb with  the 6.4Gb. I guess I'm still a little gun shy 
> at installing Linux alongside NT, because I had some real headaches 
> last year when I tried to intall the two os's together. It seemed that 
> NT did not like Linux being on the same machine, so because I "needed"
> the NT app's, I gave up on Linux. Now I'm ready to try it again. And 
> OK, I admit it, I'm not ready to be completely weaned from NT until 
> I'm comfortable with Linux.

You can install both OS's, but you must be careful about which to
install fisrt... (NT, of course, linux is a little more friendly with
other OSs:)

> 
> Also is there a xemacs for Linux? I always like to duplicate somehow 
> the development environment I use at work.
> 

The question should be : Is there a xemacs for Windows? (There's 
a xemacs for linux, try http://www.xemacs.org/ftp-sites.html) 

BTW, I  almost prefer for linux emacs to xemacs, (emacs gets XXX 
Terabytes of your HD and xemacs about XXX0 (well, actually 18M vs. 40M))

> TIA for any suggestions.
> 
> Michael
> 

Javier.




RE: JDBC-connection in Linux

1998-12-13 Thread Java News Collector

At 02:17 AM 12/12/98 -0800, Tauren Mills wrote:
>I'd highly recommend taking a look at MySQL.  www.mysql.com
>
>I'm using RedHat 5.2, JRun 2.2.1, and MySQL with type 4 JDBC drivers.  The
>database and JDBC drivers are free.  The database is faster than anything
>else I've seen, including the big ones like Oracle, MS SQL, Informix, etc.

This discussion really belongs on a database forum but here goes...

Regarding performance of mySQL vs. Oracle or Informix;

I hate to throw water on your fire but the real database engines (MS SQL is
*not* one of them) use raw disk space and run on *real* unix systems with
I/O subsystems capable of 80+ MB/s sustained transfer rates.  We've worked
with Informix engines supporting 250 simultaneous users on databases
exceeding 100GB.  I don't think its fair to even talk about comparing mySQL
to a mature, commercial database engine.

When trying to determine how a database engine might perform under a heavy
load, one of the first questions you might ask is "does it use raw or
cooked disk space?".  If it uses cooked disk space (i.e. files in the
filesytem), it will be significantly slower than a similarly well designed
system that uses raw disk space.  By eliminating the unnecessary
file-access calls through the O/S, the overhead of I/O is reduced.  Also,
nothing can replace a *fast* SCSI subsystem.  Don't even bother with IDE.
Regardless of what they say about throughput, the IDE interface requires
constant management by your CPU and doesn't allow overlapping I/O (most
SCSI controllers allow 255+ concurrent I/O operations).  In my experience,
a slow SCSI subsystem on a heavily loaded system will outperform the best IDE.

I am working intensively with postgreSQL.  It has a rather rich set of
features but it isn't ANSI compliant (yet).  The documentation needs some
work.  After writing some complex triggers and external functions, I think
I am going to write some HOWTO's and submit them to the postgres project team.

Douglas Toltzman
http://www.oakstrsft.com/



Re: JDBC-connection in Linux

1998-12-13 Thread Java News Collector

At 07:38 PM 12/12/98 -0500, Leo Cyr wrote:
>I too have had great success with postgresql (www.postgresql.org ;-) --
>I've used the driver and code I wrote on many platforms including 4.x+
>browsers and it works great so far.
>
>Is anyone using postgreSQL (6.3.2 or other) with postgresql.jar in any
>"high load" production environment like in an application server
>(running on a linux jdk)? How is it doing? any problems...

We are putting postgreSQL through its paces but we haven't gotten to
production testing, yet.  We have been pumping our httpd logs into the
database for a few months so there are at least a few hundred-thousand rows
in the log tables.  Although the load isn't high, we haven't seen a single
crash in about 5 months of continuous use.

Douglas Toltzman




Re: list/mail

1998-12-16 Thread Java News Collector

just send a message to [EMAIL PROTECTED]  put
"unsubscribe" in the subject of the message.

At 01:25 PM 12/16/98 -0500, Miguell Morillas wrote:
>Miguell Morillas wrote:
>> 
>> > I don't want to receive any more mail.What can I do to unsubscribe from
>>  this list?
>> 
>> MIGUEL
>



Re: has anyone got the native threads jdk1.1.7a1 running?

1998-12-16 Thread Java News Collector

At 05:00 PM 12/16/98 -0600, Moses DeJong wrote:
>I have not seen much about the native threads port for 1.1.7 in the
>mailing list archives. Is there anyone out there that has gotten the
>native threads version of 1.1.7a1 to work with JNI? I have an application
>that compiles and works on Solaris, Windows, and IRIX but when I try to
>run it on my RedHat5.2 (glibc) system at home I get an error like
>"can not find java.lang.Object" when calling JNI_CreateJavaVM. The
>CLASSPATH includes the installed classes.zip so I have no idea what
>could be causing the error. If anyone out there wants to try out
>the code I was compiling it can be downloaded here.

Is your CLASSPATH *really* set?  Remember that, if you classpath is set in
a .bashrc or .bashprofile then it only gets set in a bash shell.  If you
are invoking the JVM without a shell, you may want to take care that the
environment is really correctly set for the process that will be exec'ing
the JVM.

I'm not sure what you setup is like or how your program gets invoked.
However, your error sounds like the JVM cannot find classes.zip.  I would
begin by verifying that the environment is setup correctly and is getting
passed along to the JVM.

Douglas Toltzman



Re: Problem on mSQL.

1999-01-03 Thread Java News-collector

This sounds like your DNS is returning a different name for your machine
(when the IP is used to do a reverse lookup) than your machine claims to
be.  Otherwise, mSQL may be setup to use identd to verify the user (I
haven't setup mSQL so I am not sure of its authentication scheme), in this
case, you would need to configure it to "trust" the win98 client.

You should ask this question on a mSQL forum.  It is NOT a Java or JDBC
problem.

On Sat, 2 Jan 1999, Gao Lei wrote:

> Dear friends,
> 
> When I use JDBC driver to connect the mSQL.
> I get following error message on one of my machine.
> "-1:Hostname/IP address mismatch"; but on other machines,
> the java application runs well.
> 
> Then, if I telnet the mSQL port(2224), I also get the same
> string from the database server, of course, on other machines,
> there's no this problem. The server is a Linux box.
> 
> The client OS is Win98. Dose this matter? Are there any
> configurations need me to set(both the server and client)?
> 
> Thanks for any hint of it.
> 
> Gao Lei.
> 



Re: backtab

1999-01-06 Thread Java News-collector

There was a previous post on this;
reference "http://www.oakstrsft.com/~javanews/msg0110.htm"

On Wed, 6 Jan 1999, Rob Nugent wrote:

> I just noticed on jdk117_v1a that I no longer appear to be getting a
> keyPressed
> KeyEvent for backtab i.e. shift+tab. I get the event for the shift key
> on its
> own going down, but then subsequently nothing when the tab key is then
> pressed.
> 
> Has anyone else seen this or can comment before I put in the effort to
> create a
> standalone test case ?
> 
> This is all on RH52
> 
> Thanks
> Rob
> Rob Nugent
> Development Manager
> UniKix Technologies Europe
> 
> 



Re: Sorry: Ignore that last post (Is this a JVM bug? Why is my local variable not initialized?)

1999-01-07 Thread Java News-collector

Obviously you have limited knowledge/experience with the internals of
object-oriented environments.  I wouldn't be too quick to call the object
construction/initialization sequence "dumb" without a detailed analysis.

I would be inclined to say that calling an abstract/virtual method that
must be defined in a subclass from within a constructor is a bad/dangerous
programming practice that will yield unpredictable results, at best.

Douglas Toltzman
Senior Software Engineer, Oak Street Software, Inc.
[EMAIL PROTECTED]

On Wed, 6 Jan 1999, Richard Jones wrote:

> 
> I've just found out why `d' isn't initialized ...
> it seems to be a dumb design decision in Java
> rather than a bug in the JVM.
> 
> Rich.
> 
> -- 
> -  Richard Jones. Linux contractor London and SE areas.-
> -Very boring homepage at: http://www.annexia.demon.co.uk/  -
> - You are currently the 1,991,243,100th visitor to this signature. -
> -Original message content Copyright (C) 1998 Richard Jones.-
> 



Re: jdk1.1.6 (sparc) dumping core

1999-01-18 Thread Java News-collector


You may have had Kaffe installed which resulted in the library complaint.
Do a "which java" to see if you are running Kaffe (it will be
/usr/bin/java rather than /usr/local/jdk...).  Uninstall Kaffe and
uninstall libc5 if this is true.  That should get you running.

Caveate: I'm running Redhat on Intel platforms.  If this experience
doesn't apply on Sparc, I apologize for my ignorance.


Douglas Toltzman




java-linux-digest Digest V02 #36

2002-06-05 Thread java-linux-digest-request
--- Begin Message ---

java-linux-digest DigestVolume 02 : Issue 36

Today's Topics:
  JDialog.setVisible(true) -> iconifie  [ Dick Repasky <[EMAIL PROTECTED] ]
  Re: JDialog.setVisible(true) -> icon  [ "Sudhir Kumar" <[EMAIL PROTECTED]> ]
  Re: JDialog.setVisible(true) -> icon  [ Juergen Kreileder <[EMAIL PROTECTED]> ]
  Re: HELP : Stable JVM for running JB  [ "Craig O'Shannessy" <[EMAIL PROTECTED] ]

--- End Message ---
--- Begin Message ---

Hi,

I'm having difficulty with JDialog.setVisible() on Blackdown Java-Linux 
Java(TM) 2 SDK, Standard Edition Version 1.3.1  FCS and above (meaning the
latest, too).  The first time that I use the setVisible method of
a dialog it comes up fine.  After I hide it with setVisible(false),
calls to setVisible(true) make the JDialog visible but only as a closed
icon, and I must click on the icon to actually see the JDialog.  This wasn't
a problem on earlier versions of Blackdown, and I don't have the problem
using Sun's JRE on Windows or Solaris or using the latest Apple MRJ
for Mac OS X.

What's up?

Thanks,

Dick


--- End Message ---


building a JDK bootstrap on Linux

1998-11-30 Thread Carlos Lucasius -- ACE Java Licensee Engineering

Steve:

Building a JDK on Linux involves bootstrapping against an
older JDK on Linux.  What if I want to build that bootstrap
itself from scratch (C/C++ code only)?  Any ideas/pointers?

Thanks,


   /___/\ Carlos B. Lucasius,
  /__ \\ \Licensee Support Engineer @
 /___\ \\ /   Java Software Division (JSD)
/___/ \/ / /
   /___/ /   \//\ Sun Microsystems of Canada, Inc.
   \___\//\   / / Americas Customer Engineering
\___/ / /\ /
 \___/ \\ \   140 Renfrew Drive, Suite 206
  \___\ \\Markham, Ontario
   \___\/ Canada L3R 6B3