newbie question

1998-10-29 Thread a

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



classpath problems?

1998-10-29 Thread a

Hi all 
Still having problems. My CLASSPATH is set to the needed directories as
well as classes.zip but I still keep getting these dang errors.

Can't find class test.class (the test program)
Unable to initialize threads: cannot find class java/lang/Thread

help!




Re: classpath problems?

1998-10-29 Thread a

Here is my CLASSPATH that is not working

CLASSPATH=.:/usr/local/jdk116_v5/lib/classes.zip:/usr/local/jdk116_v5/lib:/u
sr/local/jdk116_v5/lib/moreClasses:/usr/local/apache1.3.3/share/j-bin


At 04:11 PM 10/29/98 -0500, Martin Little wrote:
>This is indicitive that you don't have your /lib/classes.zip in
your
>classpath
>
>../Martin
>
>a wrote:
>
>> Hi all
>> Still having problems. My CLASSPATH is set to the needed directories as
>> well as classes.zip but I still keep getting these dang errors.
>>
>> Can't find class test.class (the test program)
>> Unable to initialize threads: cannot find class java/lang/Thread
>>
>> help!
> 



Re: classpath problems?

1998-10-29 Thread a

This works:
javap -classpath $CLASSPATH java.lang.Object

This don't work: (my.class is in same directory)
javap -classpath $CLASSPATH my.class
Class 'my.class' not found

This don't work:
java -classpath $CLASSPATH my.class
Can't find class my.class

This works:
java -classpath $CLASSPATH java.lang.Object
In class java.lang.Object: void main(String argv[]) is not defined

-aaz

At 04:26 PM 10/29/98 -0500, you wrote:
>Are you saying you can issue javap, but not java?
>
>a wrote:
>
>> That works.
>> No kaffe installed
>>
>> At 04:18 PM 10/29/98 -0500, you wrote:
>> >Do you have kaffe installed on your box?  Also, what happens if you do
this:
>> >
>> >javap -classpath $CLASSPATH java.lang.Object
>> >
>> >a wrote:
>> >
>> >>
>>
CLASSPATH=.:/usr/local/jdk116_v5/lib/classes.zip:/usr/local/jdk116_v5/lib:/u
>> >> sr/local/jdk116_v5/lib/moreClasses:/usr/local/apache1.3.3/share/j-bin
>> >>
>> >> At 04:11 PM 10/29/98 -0500, you wrote:
>> >> >Could you show me your class path?
>> >> >
>> >> >Also, have you tried this:
>> >> >
>> >> >java -classpath $CLASSPATH ...
>> >> >
>> >> >a wrote:
>> >> >
>> >> >> Hi all
>> >> >> Still having problems. My CLASSPATH is set to the needed
directories as
>> >> >> well as classes.zip but I still keep getting these dang errors.
>> >> >>
>> >> >> Can't find class test.class (the test program)
>> >> >> Unable to initialize threads: cannot find class java/lang/Thread
>> >> >>
>> >> >> help!
>> >> >
>> >
> 



Re: classpath problems?

1998-10-29 Thread a

Thanks Scot and everyone else. I was calling it with the *.class extension.
Without it it works.


At 04:38 PM 10/29/98 -0500, you wrote:
>OK, where is my.class located?  Also, is the java source for my.class
defined in
>terms of a package?  Also, are you trying to run my.class like this:
>
>1) java -classpath $CLASSPATH my.class
>
>OR
>
>2) java -classpath $CLASSPATH my
>
>
>If you are doing 1) above, try 2).
>
>
>
>a wrote:
>
>> This works:
>> javap -classpath $CLASSPATH java.lang.Object
>>
>> This don't work: (my.class is in same directory)
>> javap -classpath $CLASSPATH my.class
>> Class 'my.class' not found
>>
>> This don't work:
>> java -classpath $CLASSPATH my.class
>> Can't find class my.class
>>
>> This works:
>> java -classpath $CLASSPATH java.lang.Object
>> In class java.lang.Object: void main(String argv[]) is not defined
>>
>> -aaz
>>
>> At 04:26 PM 10/29/98 -0500, you wrote:
>> >Are you saying you can issue javap, but not java?
>> >
>> >a wrote:
>> >
>> >> That works.
>> >> No kaffe installed
>> >>
>> >> At 04:18 PM 10/29/98 -0500, you wrote:
>> >> >Do you have kaffe installed on your box?  Also, what happens if you do
>> this:
>> >> >
>> >> >javap -classpath $CLASSPATH java.lang.Object
>> >> >
>> >> >a wrote:
>> >> >
>> >> >>
>> >>
>>
CLASSPATH=.:/usr/local/jdk116_v5/lib/classes.zip:/usr/local/jdk116_v5/lib:/u
>> >> >> sr/local/jdk116_v5/lib/moreClasses:/usr/local/apache1.3.3/share/j-bin
>> >> >>
>> >> >> At 04:11 PM 10/29/98 -0500, you wrote:
>> >> >> >Could you show me your class path?
>> >> >> >
>> >> >> >Also, have you tried this:
>> >> >> >
>> >> >> >java -classpath $CLASSPATH ...
>> >> >> >
>> >> >> >a wrote:
>> >> >> >
>> >> >> >> Hi all
>> >> >> >> Still having problems. My CLASSPATH is set to the needed
>> directories as
>> >> >> >> well as classes.zip but I still keep getting these dang errors.
>> >> >> >>
>> >> >> >> Can't find class test.class (the test program)
>> >> >> >> Unable to initialize threads: cannot find class java/lang/Thread
>> >> >> >>
>> >> >> >> help!
>> >> >> >
>> >> >
>> >
> 



RE: Java Servlets -N- Linux?

1998-09-04 Thread A . KLOS


--
| From: steve /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Java Servlets -N- Linux?
| Date: Thursday, September 03, 1998 3:36PM
|
| Hello,
|
|   Can Java Servlets be developed on a Linux box? We are setting up a 
|Linux
| web server and want to use Java Servlets if possible. Is there a Linux
| version of the Java Servlet Development Kit or do I need something like
| JRun from livesoftware ( http://www.livesoftware.com )? Any help is
| appreciated

If you run the apache web server you should plug in mod_jserv 0.9.11 
available at:
http://www.apache.org/java/

I manager to get servlets up and running with apache 1.3.0 and mod_jserv 0.9.11

Good luck,

Addy.



RE: Benchmark

1998-09-04 Thread A . KLOS


--
| From: qtxperw /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Benchmark
| Date: Friday, September 04, 1998 11:19AM
|
| Hello all!
|
| Where can I find a widely used benchmark program?
|
| There are currently quite many JVM:s available for
| Linux, and it would be nice to be able to compare
| them.

I use the benchmarks which are included in the Kaffe distribution (at 
least in the 0.9.2 one). They only do bare bone calculation stuff like 
qsort, fibonacci, sieve etc.

I am interested in becnhmarks that do AWT benchmarking as well. I think
volanomark and caffeinemark are benchmarking tools that do these kind
of tests

Cheers,
Addy.


|
| /Per Widerlund
| 



Re: JDK1.1.6v4a can't find library libXp.so.6

1998-09-08 Thread A . KLOS


| ---
| In message , [EMAIL PROTECTED] writes:
|
| I have the same setup as Wim does (RedHat4.2) and encounter the
| same problems: can't load library libXp.so.6 .
|
| For now, you want to grab the .tar.gz for libc5 and install it by hand.

Actually I don't want to be bothered with the upgrade to XFree86-3.3.2 
if it is not absolutely nescessary.

Does somebody know if the dependency of jdk116v4a on XFree86-3.3.2 
happened coincidentally or was it on purpose, but just forgotten to 
write about in the release notes...

Addy.



RE: SEGV from iostream in native method on Linux, FreeBSD, not Windoze

1998-09-15 Thread A . KLOS

To add another comment...

be sure you have a version > JDK1.1.3, because until 1.1.3 JNI didn't 
work for me on Linux. JDK1.1.5 did work however!

Cheers,

Addy.

--
| From: rmlynch /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: SEGV from iostream in native method on Linux, FreeBSD, not Windoze
| Date: Monday, September 14, 1998 11:01PM
|
| Hi-
|
| Apologize if this is a FAQ.  It seems that a "Hello World" JNI demo (see
| below .sig) that uses iostreams for output give a SEGV on Linux and
| FreeBSD, but not Windoze.  I didn't have the compiler to build a .dll to
| see the latter case with my own eyes, but someone did it for me and it
| works on Windoze fer shure, I've seen it in action.
|
| Wonder how come?
|
| Bob L.
|
| P.S. Of course the example works when using  and printf(..).
| --
| Robert Lynch-Berkeley CA [EMAIL PROTECTED]
| http://www.best.com/~rmlynch/
| --
| class test
| {
|public native void display();
|
|static { System.loadLibrary("hello"); }
|
|public static void main(String[] args)
|{
|   new test().display();
|}
| }
| ---
| /* hello.C */
| #include 
| #include "test.h"
| #include 
|
| JNIEXPORT void JNICALL
| Java_test_display(JNIEnv *env, jobject obj)
| {
|  cout << "Hello world!\n" << endl;
|  return;
| }
| ---
| [user@ravel native]$ g++ -Wall -shared -fPIC
| -I/usr/local/jdk1.1.6/include -I/usr/local/jdk1.1.6/include/genunix -o
| libhello.so hello.C
| ---
| [user@ravel native]$ LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH java test > err
| 2>&1
| Aborted
| [user@ravel native]$ more err
| SIGSEGV   11*  segmentation violation
| stackbase=0xb668, stackpointer=0xb56c
|
| Full thread dump:
| "Finalizer thread" (TID:0x40660208, sys_thread_t:0x413a4e0c,
| state:R) prio=1
| "Async Garbage Collector" (TID:0x40660250, sys_thread_t:0x41383e0c,
| state:R)
|  prio=1
| "Idle thread" (TID:0x40660298, sys_thread_t:0x41362e0c, state:R)
| prio=0
| "Clock" (TID:0x40660088, sys_thread_t:0x41341e0c, state:CW) prio=12
| "main" (TID:0x406600b0, sys_thread_t:0x81a4908, state:R) prio=5
| *current thr
| ead*
| test.main(test.java:9)
| Monitor Cache Dump:
| Registered Monitor Dump:
| Thread queue lock: 
| Name and type hash table lock: 
| String intern lock: 
| JNI pinning lock: 
| JNI global reference lock: 
| BinClass lock: 
| Class loading lock: 
| Java stack lock: 
| Code rewrite lock: 
| Heap lock: 
| Has finalization queue lock: 
| Finalize me queue lock: 
| Monitor IO lock: 
| Child death monitor: 
| Event monitor: 
| I/O monitor: 
| Alarm monitor: 
| Waiting to be notified:
| "Clock" (0x41341e0c)
| Monitor registry: owner "main" (0x81a4908, 1 entry)
| Thread Alarm Q:
| --END msg.
| 



JDK 1.1.5 Download!!

1998-05-25 Thread Muthukumaran .A

Hi,

I'am not able to download JDK1.1.5 v7 for arch libc from the
mirror sites available in the blackdown.org ,after exactly 6508828 bytes
the connection gets cut and after that i'am not able to recover,i have
tried as many as 20 times and i get in to the same problem.

Can u please tell me the original site or some other site for
java-linux port??,can u please help on this.

Thanks in advance,
Muthukumaran.A






RE: Swing package

1998-07-09 Thread A . KLOS


--
| From: jcassidy /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Swing package
| Date: Thursday, July 09, 1998 3:59PM
|
|
| Could someone please let me know how to set things up to
| use the swing classes?  I've got things set up to compile
| java programs ok, but can't get the swing lib to be located.
| (jdk1.1.6 is located in /usr/local).
|
| I've got a copy of swing101.zip, and placed it in various
| locations with various permutations of the CLASSPATH env
| var.  But I keep getting the message:

Take a look inside this swing101.zip. It seems to me that this the 
plain distribution archive from JavaSoft, which first have to be unzipped.
After that, you will find .jar files which you should specify on your classpath

Addy.


|
| 'com.sun.java.swing.*' not found
|
| when I try to compile a program that imports from it.
|
| Thanks for any assistance!
| Jim.
|
| 



Re: JDK1.1.6v4a can't find library libXp.so.6

1998-09-08 Thread A . KLOS

I have the same setup as Wim does (RedHat4.2) and encounter the same 
problems: can't load library libXp.so.6 .
Upgrading to a newer version of XFree86 should be easy with the RPM 
mechanism of RedHat. Unfortunately RedHat 4 is linked against libc5 and 
RedHat 5.x is linked against libc6 (a.k.a. glibc).
I am afraid that the only RPM of XFree86 3.3.2 I can find will be 
linked against glibc or is there anybody that knows of a  XFree86 3.3.2 
RPM linked against libc5?

Cheers,

Addy Klos
Shell Research
The Netherlands.


--
| From: mats.petersson /  mime, , , [EMAIL PROTECTED]
| To: wim.ceulemans /  mime, , , [EMAIL PROTECTED]
| Cc: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: JDK1.1.6v4a can't find library libXp.so.6
| Date: Tuesday, September 08, 1998 9:15AM
|
| On Tue, 8 Sep 1998, Wim Ceulemans wrote:
|
| > Hi
| >
| > I have upgraded my jdk1.1.6v2 to jdk 1.1.6v4a and ran into an error. After
| > installing when I run javac it displays the following error:
| >
| > /usr/local/jdk1.1.6v4a/bin/../bin/green-threads/java: Can.t load library
| > libXp.so.6
| >
| > Does anyone know what is in libXp and where to find it? or what is the
| > problem?
| > I have a Redhat linux 4.2 (2.0.30) with the correct libc5 and ld installed
| > (worked with the v2).
| >
| > Regards
| > Wim Ceulemans
| > Nice Software Solutions
| >
| >
| >
|
| Apparently this library appeared in later X releases. I tried XFree86
| v3.3.2 patchlevel 3, which corresponds to 6.3 i think of X11, and there
| this particular library is included.
| It's bad they don't write what requirements of X11 JDK needs, I had
| to find this out myself :(
|
| Mats
| 



Re: Swing & Navigator

1998-09-16 Thread A . KLOS


--
| From: drobnic.pavlo /  mime, , , [EMAIL PROTECTED]
| To: dpinya /  mime, , , [EMAIL PROTECTED]
| Cc: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: Swing & Navigator
| Date: Saturday, May 16, 1998 8:59AM
|
| >I'm usign Swing 1.0.2 and Communicator 4.05, and when I load any applet
| > that uses some Swing class, I have the next message:
| >
| > java.lang.NoSuchMethodError: java.awt.Component: method enableEvent(J)V
| > not found
| >   at com.sun.java.swing.JComponent(JComponent.java:130)
| >   at com.sun.java.swing.JRootPane.   at com.sun.java.swing.JApplet.createRootPane(JApplet.java:133)
| > * at com.sun.java.swing.JApplet.(JApplet.java:113)
| >   at SwingingApplet.(SwingingApplet.java:27)
| >   at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
| >   at java.lang.Thread.run(Thread.java)
| >
| >I have the packages swing.jar, motif.jar & window.jar in the classpath
| > and in in the class directory of netscape
| > (/usr/local/netscape/java/classes).
| >
|
| The matter is that version of Java VM in Navigator is slightly different
| ;-) from yores and is incompatible for Swing-applet running at all. You
| may update Navigator's VM for newest. Sun has a product named Java
| Plug-in. It could be found at
| http://java.sun.com:80/products/plugin/index.html.
|   I have tried it under Win32 and it was working properly. But the major
| problem in Linux case is that there aren't ports of Java Plug-in
| available :-(


There *IS* a plug-in port available for Linux. I've got one somewhere. 
Don't remember where I got it from and I didn't find the time to give 
it a try. I think it even has the name beta-version: Activator...

 I did try the windows version though, and that one worked once pretty good.
Nowadays, I can't use the plug-in anymore, since upgrading/uninstalling 
and installing of various versions of this product was too much for the 
beautifull windows registry  8-(

Cheers, Addy.






RE: JIT compiler TYA

1998-09-18 Thread A . KLOS


--
| From: cs.lywab /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: JIT compiler TYA
| Date: Friday, September 18, 1998 3:21AM
|
| Dear all,
|
|   I would like to ask do TYA support a JAVA application with native
| C function call?  It seem that I got core dump in this suitation.  I would
| like to confirm it!

Yes, it does support it, I 've got it up and running. I remeber that it 
didn't work for me
the first time. I sent a note to Albrecht Kleine and he advised me to 
do the following:

1. Outcomment in tyaconfig.h
#define FAST_NATIVE102STYLE

2. recompile TYA

It did work for me!

Good luck,

Addy.





RE: java AWT and Swing without XWindows

1998-09-25 Thread A . KLOS


--
| From: arjun.panday /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: java AWT and Swing without XWindows
| Date: Friday, September 25, 1998 4:40PM
|
| To the java port developpers,
|
| I'm designing an embedded application (=>small footprint!) in Java that I'd
| like to have running on a Linux OS. Is there a way to have Java (especially
| the AWT and Swing components) run without XWindows?
| That would mean using either
|the frame buffer,
| orGGI,
| orSVGI lib.

Theoretically it should be possible, but it will mean that you will 
have to re-implement
the AWT on top of whatever graphical subsystem you want it to have it 
on (e.g. GGI or SVGAlib???) and that will be a lot of work.


Cheers, Addy.| 



Re: JDK 1.2 Support for CORBA

1998-09-30 Thread A . KLOS


--
| From: drobnic.pavlo /  mime, , , [EMAIL PROTECTED]
| To: hswong /  mime, , , [EMAIL PROTECTED]; java-linux /
| mime, , , [EMAIL PROTECTED]
| Subject: Re: JDK 1.2 Support for CORBA
| Date: Monday, September 28, 1998 12:28PM
|
| > I'm looking for JDK1.2 for Linux as I need CORBA support. I was
| > wondering what the timeline is for the release and whether I can help
| > with the porting. Thanks
|
|   Probably you don't need JDK1.2 for playing with CORBA.
| There are few CORBA2 compatible ORBs writen completely in java who
| alredy implements all functionality what you can even want:
|   org.omg.CORBA.* package,
|   idl 2 java compiler,
|   interface repository server,
|   couple of good knowable services end ets.
|   
|   Take a look on http://www.ooc.com  It's an official site of ORBacus
| CORBA2 ORB. Whose really good and totaly free.

I needed CORBA support for Linux as well. At time I was not aware of 
any free Java ORB availbale so I did the following... I unzipped 
classes.zip from JDK1.2beta3
for win32 and picked out the stuff related to CORBA (something like 
org.omg.corba.*)
and re-zipped it as OMGCORBA.zip). I used this class archive 
successfully under Linux!!! I admit it is a bit of hacking, but it 
proves the portability of Java (at least of
the ORB implemented by JavaSoft).

Cheers,
Addy.



Re: Write Once Run Anywhere?

1998-10-01 Thread A . KLOS


--
| From: stevecoh /  mime, , , [EMAIL PROTECTED]
| To: mctiew /  mime, , , [EMAIL PROTECTED]
| Cc: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: Write Once Run Anywhere?
| Date: Thursday, October 01, 1998 2:12PM
|
| Ming-Ching Tiew wrote:
|
| > Steve Cohen wrote:
| > >
| > > I have built an application and an applet using jdk 1.1.6 under linux
| > > RedHat 5.0.  Both the application and the applet (which use much of the
| > > same code) compile and work under linux.
| > > When I copy the class files to a Win95 system, they fail with
| > > NoClassDefFoundError.
| > > If, instead, I copy the .java files to the Win95 system and compile them
| > > there, then again, both the applet and the application run exactly as
| > > they did under linux.
| > >
| > > Why could this be happening?
| >
| > If what you claim is true, then this is really worthy of further
| > investigation. The problem of Java WORA is usually a lot more subtle
| > then this, it is usually something along the line of slight
| > differences in behaviour, GUI for example. It shouldn't be as
| > gross as what you described.
| >
| > Ming-Ching
|
| Yes, I do notice some slight differences in GUI, but I'm not concerned about
| those for now.
| It's really pretty straightforward.  The CLASSPATH is not the issue as
| transferred class files fail but recompiled source succeeds with the same
| CLASSPATH.  I copied the files across using a DOS floppy disk and the linux
| mcopy program.   The files were copied in jar's, first a jar with the class
| files and then a different jar with the source files.
| A key clue is this:  When we get the NoClassDefFoundError, the class it is
| looking for is package.1.class.  No such class exists, but package.
| is the class containing the main
| method.
|

Maybe it has something to do with class access modifiers. Is you main 
class specified as "public". It still doesn't explain why it does give 
an error on one and
not the other, but...

Addy.



Re: JDK 1.2 Support for CORBA

1998-10-01 Thread A . KLOS


--
| From: hswong /  mime, , , [EMAIL PROTECTED]
| To: A.KLOS /  mime, , , A.KLOS
| Cc: drobnic.pavlo /  mime, , , [EMAIL PROTECTED];
| java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: JDK 1.2 Support for CORBA
| Date: Thursday, October 01, 1998 9:50AM
|
| > I needed CORBA support for Linux as well. At time I was not aware of
| > any free Java ORB availbale so I did the following... I unzipped
| > classes.zip from JDK1.2beta3
| > for win32 and picked out the stuff related to CORBA (something like
| > org.omg.corba.*)
| > and re-zipped it as OMGCORBA.zip). I used this class archive
| > successfully under Linux!!! I admit it is a bit of hacking, but it
| > proves the portability of Java (at least of
| > the ORB implemented by JavaSoft).
| >
| How would I be able to generate the java code from the IDL files?

Indeed, you need to generate the java source code with the windows
JDK. Some other things....

You also will need to have a C/C++ compiler on Windows, since JavaIDL
use the preprocessor of any existing C/C++ compiler (however they recommend
MS VC++ 4.2 or higher I think :-(  )

I was not able to start the nameserver on Linux. I can't remember what 
the error message was, but it just didn't work.

Addy



RE: Arbitrary Precision Arithmetic?

1998-10-09 Thread A . KLOS


--
| From: poincare /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Arbitrary Precision Arithmetic?
| Date: Thursday, October 08, 1998 11:17PM
|
| Hi,
| Has anyone implemented any arbitrary precision arithmetic routines in
| java?


Take a look at:

http://gams.nist.gov/javanumerics/

and maybe from there:
http://members.xoom.com/znerd/java/jump/index.html


|
| --
| Dimitrios Vyzovitis  -- Information Processing Laboratory
| [EMAIL PROTECTED] -- Aristotle University of Thessaloniki
| [EMAIL PROTECTED] -- Dept. of Electrical and Computer Engineering
| http://egnatia.ee.auth.gr/~dviz
|
|
| 



Re: Linux JIT?

1998-10-09 Thread A . KLOS


--
| From: nmatsumu /  mime, , , [EMAIL PROTECTED]
| To: user57 /  mime, , , [EMAIL PROTECTED]
| Cc: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: Linux JIT?
| Date: Friday, October 09, 1998 2:39PM
|
| Hi,
|
| > Is there any other JIT compiler for Linux other than TYA?  I have 
been using
| (snip)
| see http://www.shudo.net/jit/index-j.html
| hope this helps.

Unfortunately this page is only in Japanese  :-(

Addy.

|
| Nozomi Matsumura
| [EMAIL PROTECTED]
| 



RE: Sun's ORB & Java-Linux

1998-10-16 Thread A . KLOS


--
| From: gutier /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Sun's ORB & Java-Linux
| Date: Wednesday, October 14, 1998 4:14AM
|
| Has anyone got Sun's ORB to work with Linux's Java port ? I'd like to
| use CORBA with Java but it says on Sun's web page that JavAIDL is for
| JDK1.2 only. It'd also be great if the ORB is actually stable.
| Suggestions for alternative ORBs perhaps ?

I have used only the client part of the ORB from under Linux. What I 
did was I stripped the CORBA related class files from JDK1.2beta3 and 
put those in a separate file e.g. OMGCORBA.zip.

However I could not get the nameserver to work under Linux. It said 
something like:
"Not supported under Linux".. if I remember correctly.
Additionally you still need a IDL compiler...

Maybe is http://www.ooc.com provides a good option like David Lucas 
suggested...

|
| Thanks.
| 



Re: Java Plugin doesn't work

1998-10-28 Thread A . KLOS


--
| From: Michael.Sinz /  mime, , , [EMAIL PROTECTED]
| To: lamb /  mime, , , [EMAIL PROTECTED]; fst.robert /
|  mime, , , [EMAIL PROTECTED]
| Cc: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: Java Plugin doesn't work
| Date: Tuesday, October 20, 1998 2:42PM
|
| On Tue, 20 Oct 1998 13:10:43 +0800 (HKT), Robert P. Biuk-Aghai wrote:
|
| >On Fri, 16 Oct 1998, Patrick Lamb wrote:
| >
| >> I got it to work by setting the NPX_PLUGIN_PATH environment variable.
| >> (It's in one of the FMs...)  IIRC, it isn't supposed to be needed for a
| >> default installation, but the plugin suddenly started working when I set
| >> it anyhow.  In my case I set
| >>   NPX_PLUGIN_PATH=/home/pdlamb/.netscape/plugins
| >>   export NPX_PLUGIN_PATH
| >> in my .bashrc.
| >>
| >>Pat
| >
| >I have in the meantime downloaded the activator.i18n-linux-glibc
| >plugin (previously I used the activator-linux-glibc plugin), installed
| >it, and set the NPX_PLUGIN_PATH variable to the ~/.netscape/plugins
| >directory. Upon starting Netscape 4.06, I get following message:
|
| Just a simple question - is there a reason why you are trying the
| plug-in in 4.06?  I have seen things about problems starting in 4.05
| with the plug-in due to some changes in the browser.  Also, starting in
| 4.06, Netscape has finally main-lined the JDK 1.1.x Java into their
| browsers and thus there generally is no need for the plugin.

I can think of two reasons...

1. If you don't make use of the Plug-in signed applets and security 
related code
in an applet have to comply either to the Netscape specific API or 
MS IE specific
API.

2. if you want to start using JDK1.2bx dependent stuff in a browser... 
Of course , this isn't an option for Linux yet.

Cheers, Addy.



RE: Interprocess Communication with a Java Application

1998-10-29 Thread A . KLOS

Checkout the RogueWave suite of libraries. I think Tools.h++ or ToolsPro.h++
is able to exchange data with JTools.h++ the Java version of Tools.h++.

Of course these libs are not free, but not expensive either.

Cheers,

Addy.



RE: Open Java

1998-11-05 Thread A . KLOS


--
| From: sbb /  mime, , , [EMAIL PROTECTED]
| To: nelson /  mime, , , [EMAIL PROTECTED]
| Cc: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Open Java
| Date: Thursday, November 05, 1998 7:53AM
|
| Nelson Minar writes:
|  > 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!
|  >
|  >
|  > However, there's an interesting point here:
|  >
|  > >The big problem I have is the current closed porting method is only
|  > >related to Java today. This completely ignores all possibility of
|  > >advancing java when backward compatibility is not and issue.
|  >
|  > I'm not exactly sure what the poster has in mind, but it reminds me of
|  > one of my major problems with Java. Sun has a tight lock on what
|  > "Java" is, what the definition of it is. They don't seem very
|  > interested in having people hack up the VM or the language, or in
|  > general pushing Java in any future research directions they do not
|  > directly control. I think this is horribly short-sighted of Sun, and
|  > very frustrating, but that's their position (at least, as I see it.)
|  >
|  > Unfortunately, the JDK licensing terms reflect Sun's attempts to keep
|  > Java locked up.
|
| Let's be VERY clear on this point: they're keeping their 
IMPLEMENTATION locked
| up.  Not the specs for the language.  You don't need a license to implement a
| Java virtual machine and/or the class libraries.  This is pretty rare in the
| software world.  Would you believe that ParcPlace claims ownership of 
the CLASS
| HIERARCHY of Smalltalk, and actually threatens litigation if you don't pay
| their (minimal) licensing fee?
|
| Sun has been quite reasonable with respect to having review and 
feedback cycles
| for all new APIs -- ever hear of M$ doing that?  They're trying to be as open
| as they can be, in an ocean where sharks live.
|
| Remember the big announcement last year about Sun's standards process winning
| preferred submitter status with ISO (I think it was ISO)?  At least 
the members
| of the organization were satisfied that Sun's standards process was
| sufficiently open to vote to grant them that status.
|
| Can Sun do better?  Sure, almost anyone can do better than they have done,
| including corporations.  We'd all like to see them say "Today, the JDK is
| completely open source".  Should we hold our breath waiting?
|
|  > I don't think it's fair to blame the Linux Java porting team for not
|  > making Java an open language. Their effort has been to port the Sun
|  > JDK to Linux. And they've done a wonderful job of it.
|
| I want to also say that we are LEGALLY OBLIGATED to protect the sources.
| Part of that protection includes having a porting mailing list that's 
not open
| to people who do not have sources because we talk about things in the sources
| and sometimes even include diffs that have small parts of the sources 
in them.
|
|
|  > 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.
|
| Certainly not from me -- I'm very tainted in a lot of different areas wrt
| Java.  I view that the Linux community has two choices:
|
|a) we wait until completely open source versions of the Java VM, including
|   all the bells and whistles (in the meanwhile not being able to
|   develop Java applications on Linux)
|
| - or -
|
|b) we have some members of the community make available state of the art
|   versions of Java, and, *in parallel* others in the Linux/open source
|   community work on catching up with open source versions of Java.
|
| The second alternative is what we have now.  I think it's the best of both
| worlds.
|
| Steve
|

I completely agree with Steve's point of view. There are a lot of 
companies that are less open than Sun and they try to get as much 
feedback as they can from the IT Community. I think Sun is doing pretty well!

Addy.



Re: which is the best CORBA/Java implementation?

1998-11-12 Thread A . KLOS


--
| From: seifertd /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Re: which is the best CORBA/Java implementation?
| Date: Thursday, November 12, 1998 4:12PM
|
|
| >   Any chance to find something like this? BTW is anyone here 
using CORBA in
| >   conjunction with java?
|
| Hello,
|
| We have been able to get the JDK1.2beta CORBA implementation to work on
| our Linux box.  All we did was unjar the jdk1.2beta classes.zip and then
| jar up all the org/omg stuff into a new archive.  Put the new archive in
| your $CLASSPATH and you've got a "free" CORBA implementation.  So far,
| we've experienced no problems with it; it even runs fine using the
| shuJIT just-in-time compiler.  We did have problems using it with TYA,
| however :(

I did exactly the same and worked perfectly for me as well, but I 
didn't try it with JIT compilation switched on.
Please note that you won't have an IDL compiler under Linux, because 
that part of JDK1.2 isn't written in Java :-(
The problem I experienced (with JDK1.2b2) is that I couldn't start the 
TransientNameServer under Linux, although this should be pure Java. It 
simply set something like:
"Not supported under Linux"
Maybe this was politics

Cheers,
Addy.




JDK 1.1.7

1998-11-19 Thread a . yilmaz

I had some problems while trying to install JDK(main being, I couldn't
figure out how to install it!).  Could you help me somehow?



RE: javah generating wierd stubs '0005f'

1998-06-26 Thread A . KLOS


--
| From: craig /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: javah generating wierd stubs '0005f'
| Date: Thursday, June 25, 1998 10:43PM
|
| Hi,
|
| Has anyone seen this strange problem?  Happening under both solaris
| jdk1.1.6 and linux jdk1.1.3.
|
| For a class named package.Name javah is generating stubs named
| package_0005fName.c and package_0005fName.h
| What do these '0005f' strings mean?

I had the same problem when I decided to put my classes into a package  
with a name containing an underscore (com.origin_it.)

0005f is probably either the unicode or ascii code for the underscore.  
IU asked a question to the guys at JavaSoft if this is normal behaviour  
or not, but I did not get any reply yet.


Regards, Addy.


P.S.: please let me know if it indeed has something to do with an underscore.


|
| The strangest thing is this is happening for only three distinct classes
| out of a whole set that have native calls.  The only thing different about
| these three classes is that they happen to be the latest three to have
| native methods added.  Since their native methods are identical (in
| naming) to those in other classes, I simply cut and paste the method
| declarations.  So there is effectively no source code difference, and no
| difference in my use of javah.
|
| Where do I look?
|
| Cheers, Craig
|
| --
| "Imagine if every Thursday your shoes exploded if you tied them the
|  usual way.  This happens to us all the time with computers, and nobody
|  thinks of complaining."
| -- Jeff Raskin, interviewed in Doctor Dobb's Journal
|
| ==
| Craig Taverner   --==   Email:[EMAIL PROTECTED]
| ComOpt AB   --Tel:   +46-42-212580
| Michael Löfmans Gata 6 --==   Fax:   +46-42-210585
| SE-254 38 Helsingborg   --   Cell:  +46-708-212598
| Sweden   --==http://www.comopt.com
| ==
|  




RE: SSLava like ?

1998-07-01 Thread A . KLOS


--
| From: mjnf /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: SSLava like ?
| Date: Tuesday, June 30, 1998 7:06PM
|
| Hi
|
| Does anyone know if there is a product like SSLava (or similar as long as it
| implements SSL for java) available that is free ?
|

I thought secure sockets will be a standard feature in JDK1.2, but I am 
not sure

Addy.



RE: RMI on Linux

1998-07-02 Thread A . KLOS


--
| From: Nick /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: RMI on Linux
| Date: Wednesday, July 01, 1998 4:52PM
|
| Mornin'(or whatever) all
|
| I'm currently playing around with RMI applications on Linux.  I get a very
| strange error in that when I try to run the application on a Linux I get the
| message 'Cannot find class xxx'.  Other classes in the same directory run
| fine, name alterations have been tried and failed.  The application was
| written and compiled under WinNT(I know, there's no need to tell me), but so
| were the working classes.  Any ideas?

Are you sure that the CLASSPATH includes your specific class directory *before*
you start rmiregistry? This is really nescessary.

Please let me know is this the solution.

Addy.


|
| Cheers, Nick
|
| 
| now the giraffe if you stand on a stool,
| but the hedgehog can hardly ever
|
| Nanny Ogg
| 
| 



RE: JDK 1.1.3 + Swing 1.0.1 is slow : why ?

1998-07-03 Thread A . KLOS


--
| From: Daniel.Le.Berre /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: JDK 1.1.3 + Swing 1.0.1 is slow : why ?
| Date: Friday, July 03, 1998 9:52AM
|
|
| Hi,
|
| I'm using JDK 1.1.3 on my linux box (RH 4.2), with Swing 1.0.1.

Im am using Swing 1.0.2...


| (I 've only installed the JDK 1.1.3 rpm coming from Suse 5.2)
|
| I use this version since I 've seen that earlier versions had memory
| problems, and that is the "stable" version of the JDK.
|
| The problem is that Swing with this version of the JDK is very slow.
| Some person have mentionned here that Swing was working perfectly under
| linux, better than windows : for me, it's the contrary ! What's wrong with my
| configuration ?

Which version of JDK do you use? Because JDK1.1.6 for Win32 has got a 
JIT and use that one by default (unless you explicitly disable the JIT 
with java -nojit...)
JDK1.1.6v2 hasn't got a JIT built in, but you could use one called TYA 
(v0.7: http://www.dragon1.net/software/tya/) and takes only 50K.

It improves the speed quite a bit (aprox. 3 times faster), but not as 
dramatically as the JIT that comes with JDK1.1.6 for Win32 (symantec JIT).

Furthermore TYA is not entirely stable yet, but is definitely worth to try!


|
| Does the JDK 1.1.6v2 have enhanced graphic support ?

Don't know actually.



Kind regards,
Addy Klos
Shell Research
The Netherlands




--
| From: Daniel.Le.Berre /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: JDK 1.1.3 + Swing 1.0.1 is slow : why ?
| Date: Friday, July 03, 1998 9:52AM
|
|
| Hi,
|
| I'm using JDK 1.1.3 on my linux box (RH 4.2), with Swing 1.0.1.
| (I 've only installed the JDK 1.1.3 rpm coming from Suse 5.2)
|
| I use this version since I 've seen that earlier versions had memory
| problems, and that is the "stable" version of the JDK.
|
| The problem is that Swing with this version of the JDK is very slow.
| Some person have mentionned here that Swing was working perfectly under
| linux, better than windows : for me, it's the contrary ! What's wrong with my
| configuration ?
|
| Does the JDK 1.1.6v2 have enhanced graphic support ?
|
| (My linux box is a P133 laptop with 32 Mo of RAM and 64 Mo of swap)
|
|  Daniel Le Berre
| 



RE: Startup problems

1998-07-08 Thread A . KLOS
2p.so.2.3
|   libcom_err.so.2 => libcom_err.so.2.0
|   libutil.so.1 => libutil-2.0.5.so
|   libresolv.so.2 => libresolv-2.0.5.so
|   libpthread.so.0 => libpthread-0.6.so
|   libnss_nis.so.1 => libnss_nis-2.0.5.so
|   libnss_files.so.1 => libnss_files-2.0.5.so
|   libnss_dns.so.1 => libnss_dns-2.0.5.so
|   libnss_db.so.1 => libnss_db-2.0.5.so
|   libnss_compat.so.1 => libnss_compat-2.0.5.so
|   libnsl.so.1 => libnsl-2.0.5.so
|   libm.so.6 => libm-2.0.5.so
|   libdl.so.2 => libdl-2.0.5.so
|   libdb.so.2 => libdb-2.0.5.so
|       libcrypt.so.1 => libcrypt-2.0.5.so
|   libc.so.6 => libc-2.0.5.so
|   libBrokenLocale.so.1 => libBrokenLocale-2.0.5.so
|   ld-linux.so.2 => ld-2.0.5.so
|   libtermcap.so.2 => libtermcap.so.2.0.8
|

Indeed, you need to upgrade libc.so to at least libc.5.4.44.. I don't 
know if upgrading to the glibc version of libc will be a good idea. 
Maybe somebody else can comment on this?

Regards,
Addy.



RE: When will JDK 1.2 beta be released?

1998-07-08 Thread A . KLOS


--
| From: bank /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: When will JDK 1.2 beta be released?
| Date: Tuesday, July 07, 1998 11:40PM
|
|   I want to use a package that requires Java2D and Java3D which are
| new for JDK 1.2 beta, so I was wondering two things (1) when/if do you
| think you will release version 1.2? (2) is it possible to just download
| the Java2D and Java3D classes and stick them in my classpath?
|

For Java3D you will need a shared llibrary that will interface between 
the Java3D classes and OpenGL (for the Linux world that will be 
Mesa...). You could download either the Solaris version or the Win32 
version of Java3D and rip the classes from there, but you still need 
the native library..
For Java2D I am not really sure, but I think more or less the same 
story applies.

Cheers,
Addy.

| thanks,
| Seth
| 



RE: NetBeans

1998-07-08 Thread A . KLOS


--
| From: dulberg /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: NetBeans
| Date: Wednesday, July 08, 1998 1:55PM
|
| Hi,
|
| I wonder, did anyone try to run NetBeans on Linux? When I tried to
| run it I got only very nice welcome screen and after this nothing
| happened.

I came a little further, but it eventually it locked up as well :-(

Addy.



Re: java map engines

1998-07-10 Thread A . KLOS


Maybe you could check out a library called Carnac from INT
http://www.int.com

I don't know how far the mapping stiff goes, but I briefly saw some  
demos of this toolkit and one of them, displayed some maps.

Cheers,
Addy.

|
| I'm also searching for some Java based GIS tools.
|
| You can look at:
| http://www.gislinx.com/java.html
|
| I still don't know which one to choose,
| if you come across some good package,
| please let me know.
|
| Thanks,
|
| Sze Yuen
| -Original Message-
| From: B. Craig Taverner <[EMAIL PROTECTED]>
| To: Java Linux <[EMAIL PROTECTED]>
| Date: Thursday, July 09, 1998 2:48 PM
| Subject: java map engines
|
|
| Hi,
|
| Does anyone know of any java based generic map toolkits written in pure
| java (so I can run on linux, solaris and win32)?  Something that will
| allow me to easily add a map (vector &| bitmap) into my applications with
| the ability to place custom objects/components on the map.
| I've not looked too closely at java2D, but have been given the impression
| that it's too graphics/presentation orientated, and not nearly enough map
| specific features.
|
| Cheers, Craig
|
| --
| "Basic, n.:
| A programming language.  Related to certain social diseases in
| that those who have it will not admit it in polite company."
|
| ==
| Craig Taverner   --==   Email:[EMAIL PROTECTED]
| ComOpt AB   --Tel:   +46-42-212580
| Michael Löfmans Gata 6 --==   Fax:   +46-42-210585
| SE-254 38 Helsingborg   --   Cell:  +46-708-212598
| Sweden   --==http://www.comopt.com
| ==
|
|
|  



RE: NetBeans

1998-07-10 Thread A . KLOS


--
| From: peter.schuller /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: RE: NetBeans
| Date: Friday, July 10, 1998 2:11PM
|
| > I wonder, did anyone try to run NetBeans on Linux? When I tried to
| > run it I got only very nice welcome screen and after this nothing
| > happened.
|
| If you're on 1.1.5v7 that happens almost all the time. In 1.1.6v2 it happens
| sometimes, but just try again and it should work. That's my experience at
| least.
|
| Unfortunately, NetBeans hangs "now and then" after it's up and running. and
| consumes A LOT of CPU. Around 40% by just sitting there doing nothing , on my
| P133.

40% of how much memory?




Re: [may be a stupid question..] the method of input?

1998-07-20 Thread A . KLOS


--
| From: maheshm /  shar, , , [EMAIL PROTECTED]
| To: java-linux /  shar, , , [EMAIL PROTECTED]
| Subject: Re: [may be a stupid question..] the method of input?
| Date: Tuesday, March 17, 1998 10:41AM
|
| Received: from shell.nl by ksopenml.ksepl.shell.nl with ESMTP
|   (1.40.112.12/16.2) id AA090202439; Mon, 20 Jul 1998 10:13:59 +0200
| Received: by shell.nl; id KAA04313; Mon, 20 Jul 1998 10:13:58 +0200 (METDST)
| Received: from shell.ncm.com(198.67.33.248) by charon-1.shell.nl via 
smap (3.2)
|   id xma004283; Mon, 20 Jul 98 10:13:39 +0200
| Received: (from listadm@localhost) by shell.ncm.com
| (8.8.5/8.7.5) id EAA12803; Mon, 20 Jul 1998 04:12:58 -0400
| Resent-Date: Mon, 20 Jul 1998 04:12:58 -0400
| From: [EMAIL PROTECTED]
| X-Lotus-Fromdomain: NSEIL
| To: [EMAIL PROTECTED]
| Message-Id: <[EMAIL PROTECTED]>
| Date: Mon, 20 Jul 1998 13:41:35 +300500
| Subject: Re: [may be a stupid question..] the method of input?
| Resent-Message-Id: <"F_vgE3.0.t73.7mlir"@shell>
| Resent-From: [EMAIL PROTECTED]
| X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/1256
| X-Loop: [EMAIL PROTECTED]
| Precedence: list
| Resent-Sender: [EMAIL PROTECTED]
|
| ---
|
| In motif the method of input have a few
| ways(OnTheSpot,OffTheSpot,OverTheSpot,and RootWIndow) with relation to
| multi byte character.
| Isn't it possible in java to change the way of input,too?
| Bye..


|
| god knows??
|


Stupid questions don't exist; stupid answers do however, like this answer :-(



RE: Linux/Java/KDE

1998-07-21 Thread A . KLOS


--
| From: jwillans /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: Linux/Java/KDE
| Date: Tuesday, July 21, 1998 3:38PM
|
| Hi,
|
| Are there any plans to port java so that it uses the KDE toolkit
| (http://www.kde.org)?

What do you mean by using the KDE toolkit? Do you mean the Qt library 
with which KDE was built? If so, what would be the benefits?

Addy.


|
| Many Thanks
|
| James
| 
__
_ James Wil
| lans
| Computing Officer
| University of Keele
| Staffordshire
| ST5 5BG   Telephone 01782 583437
| 



RE: [Fwd: AppletSecurityException in browsers]

1998-07-23 Thread A . KLOS


--
| From: lala /  mime, , , [EMAIL PROTECTED]
| To: java-linux /  mime, , , [EMAIL PROTECTED]
| Subject: [Fwd: AppletSecurityException in browsers]
| Date: Thursday, July 23, 1998 8:49PM
|
|
|
| ---
| FROM: lala / mime ([EMAIL PROTECTED])
|
|   TO: java-linux / mime ([EMAIL PROTECTED])
|
| ---
| Java People,
|
| How can I get my applet (when ran through a browser) to
| read/write a text file? It works well, as usual, using
| appletviewer.

You have to put your stuff in a JAR-file and sign that JAR-file using a 
signing-tool.

JDK1.1.x ships such a tool called javakey. javakey uses an alogorithm, 
called DSA, which is a public domain encryption algorithm.
Netscape however doesn't understand DSA, but only RSA instead, which is 
patented by RSA Inc.
Netscape delivers a free tool called SignTool (formerly known as 
Zigbert, I believe), which you can download somewhere from 
developer.netscape.com with which you should be able to sign your 
applets in a way the Netscape browser understand it.

The Internet Exploder is a totally different story, which I don't know 
to much about


There is an article I know of, you might find usefull:

http://ourworld.compuserve.com/homepages/jozart/article/index.html


Good luck,

Addy Klos
Software Engineer
Shell Research
Rijswijk, The Netherlands


|
| Thank you (in advance).
|
| -- Laura
|
|
|
| 



Re: Java DB browsing utility

1998-08-19 Thread A . KLOS

I know of a guy who developed a utility called SQLExplorer.
Don't ask me where I got it from, but you try to search with this name 
as a keyword.

Cheers,

Addy.



Java wrappers

1999-05-25 Thread a . saha

Hi there

I was wondering if there are any java wrapper libraries or sample
code available to access C exported functions.  I am not very 
familiar with this, as I have programmed all my life in C - but
basically what I would like to do is - if I have my routine in C to
access the kernel network stack and change certain parameters, 
I want my java application to be able to use this routine. So, as
I understand, I would need to write a wrapper which will enable 
the apps on top to call this in the form of a shared object library
or so.  

Any pointers on this is appreciated.

-Amlan.

-- 
Amlan Saha[EMAIL PROTECTED]
Mobile Computing and Protocols Group  
Center for Wireless Comms, 20 Science Park Rd, Singapore 117674
+65.8709.265 (Tel) +65.779.5441 (Fax)   **I speak only for myself**


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



Sun/Inprise/GPL Linux JDK

1999-12-08 Thread a b

Hi
   
I wonder what would happen if any of the Blackdown developers had put a GPL
license in any part of their code fixes?
   
How would that affect Sun's Community Source license?
   
Maybe GPL was a good idea after all?   Now we see what they mean by
protecting your rights to give away your software.
   
A well wisher.





Get FREE voicemail, fax and email at http://voicemail.excite.com
Talk online at http://voicechat.excite.com


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



Re: Sun/Inprise/GPL Linux JDK

1999-12-10 Thread a b

A strong opinionated colleague of mine said the following:

> > RedHat have revenues of $10m -- and are capitalized on the NASDAQ 
> > at -- ready for this -- $20 billion -- they're worth one fifth of 
> > what Gates is worth.
> >
> > These guys should stop bleating and start demanding that RedHat 
> > recycle some of their ill-gotten gains.

I think he's got a good point though...

Mr A. Nony. Mouse


>  I was actually trying to make a reference to the fact that I have
>  not yet seen a mention of Red Hat in our discussions of who should 
>  be driving Java on Linux. Why is that?
>  
>  Jim
>  
>  
>  Tony Dean wrote:
>  > 
>  > Jim,
>  > 
>  > There is such an organization. Its called the Opensource movement. You
>  > only
>  > have to look as far as Linux to see the potential. Linux is more
>  > stable and generally
>  > performs better than Win NT and there is plenty of resources behind
>  > NT. look at Perl and
>  > gcc/g++ to see what can happen. The Opensource movement has more
>  > resources behind
>  > it than even the giants like IBM and AT&T.
>  > 
>  > [EMAIL PROTECTED] wrote:
>  > 
>  > > > ...
>  > > > But there's an awful lot of evidence that
>  > > > mounting a serious Java environment effort is not really possible
>  > > > without the financial resources to feed and clothe a small army of
>  > >
>  > > > full-time developers.
>  > > >
>  > > > Nathan
>  > >
>  > > If only there were a Linux organization/corporation with those kind
>  > > of
>  > > financial resources...
>  > >
>  > > Jim
>  > >
>  > > --
>  > > ==
>  > > ======
>  > > Jim Kimball
>  > > [EMAIL PROTECTED]
>  > >
>  > > 
>  > > -
>  > > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>  > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>  > 
>  > --
>  > Tony Dean
>  > Linux: The choice of a GNU Generation!
>  > 
>  > 
>  
>  -- 
>  =
>  Jim Kimball
>  [EMAIL PROTECTED]
>  
>  
>  --
>  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>  with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>  





___
Get FREE voicemail, fax and email at http://voicemail.excite.com 
 Talk online at http://voicechat.excite.com


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



[ANNOUNCE] Xsql-2.1.7 including *bummer*

1998-09-10 Thread Peter A. Pilgrim

SOFTWARE RELEASE ANNOUNCEMENT
===

Xenonsoft, South London, England is very pleased to announce the
availability of:


XenonSQL, the java based interactive SQL Editor, version 2.1.7.  
 The Personal End User Edition. 


This software allows you use connect to relational database like
MySql, Sybase, and Oracle and submit SQL queries and commands to the
target databases.

The XenonSql software can be obtain from the web site:
`http://www.xenonsoft.demon.co.uk/software.html'

The requires the Java Development Kit minimum version 1.1.3 and Swing also
known as the Java Foundation Classes miminum version 1.0.1.
These are available from SunSoft web site:
`http://java.sun.com/products/'

The software was developed on Linux with Blackdown's 1.1.6v3 port of the
JDK `http://www.blackdown.org/java-linux.html'


Yours
Peter Pilgrim


Fri Sep 10 02:48:35 BST 1998


[BUMMER]
 Fri Sep 11 02:01:09 BST 1998 

Unfortunately the jar archive `xsql20.jar' did not make it into the first
release! The wrong `Makefile' was copied and supplied in the distribution.
Now you should be able to successfully perform `make all', `make install'
 and also perform `make uninstall'.

Thanks for your attention

Please accept my apologies for not checking the final release.
Peter Pilgrim




-- 
Del Segno Al Coda

Pete

Powered By
__
   / /=  __ ___  __ __ __ __ __
  / /=  / //   |/ // // /  // /
 / /__ / // /| / // _/ / >  <==
//__//_/=|__///__/__/= Slackware 3.5
  == ==  ===   == ==
"... ,because Unix is the best!"



Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-15 Thread Stefaan A Eeckels

Albrecht,

> > java.lang.UnsatisfiedLinkError: readImage
> >  at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:137)
> >  at
> > sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:265
> > )
> >  at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:151)
> >  at sun.awt.image.ImageFetcher.run(ImageFetcher.java:127)
> > 
> > Any idea what I forgot to install?  (1.1.5v7 gives the same
>  
>  IMHO you've installed too much on you linux box:
>  
>  locate for libjava.so, if you find an additional
>  lib in  /usr/X11/lib/  I recommend to move away 
>  this file (at least for a test).  Now jpeg should work.
I've only got libjava.so in /usr/lib/jdk1.1.6/lib/i686/green_threads.
It seems to me the reason should be in classes.zip and not
in libjava.so, what do you think? Without source code for the
java classes all those marvellous line numbers mean very
little.

>  Try for example my Iview example from TYA ( = this wonderful
>  Maltese architecture ).
It's exactly this program that first gave me this error
message. I get the same with muffin, too.

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Stefaan A Eeckels

Jürgen,

>  IMHO this states that the native method readImage couldn't be linked.
>  Do a nm on your libjpeg.so, it should give something like that:
>  
>  123> nm /public/languages/JDK-1.1.6v2/lib/i686/green_threads/libjpeg.so |
>  grep readImage
>  000103e4 T Java_sun_awt_image_JPEGImageDecoder_readImage_stub
>  22d8 T sun_awt_image_JPEGImageDecoder_reeadImage
Could you confirm that JPEG images work for you? It seems
to me that JPEGImageDecoder.produceImage tries to call
the wrong external (readImage), whereas the JPEG library contains
only sun_awt_image_JPEGImageDecoder_readImage. I don't know enough
about the java innards to know how the function names are
cooked up, but should the error message not be something like
java.lang.UnsatisfiedLinkError: sun_awt_image_JPEGImageDecoder_reeadImage
and not just 'readImage'

Just grasping at straws.

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
_______
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




RE: How many sockets can you serve?

1998-06-30 Thread Stefaan A Eeckels


On 30-Jun-98 Charles Forsythe wrote:
>  I have a simple client/sever benchmark (code below) designed to see how
>  many simultanious open sockets I can sustain.  The answer seems to be
>  about 250.  This is really sad because the crufty HP-UX JDK 1.1.3
>  managed to make it to 1200.  The exception is weird, too.  Linux throws:
Linux has a compile-time limit of 256 open files. You'll need to change
the NR_OPEN symbol in include/linux/fs.h and include/linux/limits.h.
Please review include/linux/posix_types.h, which explains that a
maximum of 1024 open files per process are supported, and that this
is a crib from OSF/1. From a cursory glance at the kernel sources,
it seems to me that the __FD_SETSIZE could be increased without
problems, but YMMV.

Please don't forget to update the system-wide number of open files
and inodes by echoing the appropriate value to
/proc/sys/kernel/files-max and /proc/sys/kernel/inode-max
in your rc.d boot scripts.

PS. Maybe you might want to review the design decision to
have 2500 open sockets. IMESHO you'd be better off splitting
the application over several servers. BTW, Java is a speed-hog,
is there any good reason to use it for the server?

HTH

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
_______
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




Re: linux on laptops

1998-07-29 Thread Gregory A. Kirkendall

Richard,

Try the Linux
on Laptops home page.

Enjoy!
 

Richard Dost wrote:
I want to install linux on a yet to be bought notebook. 
Are there
driver compatibility issues for the ethernet card?  Should I make
sure
to get/avoid certain ethernet cards?  Is there a list of supported
devices somewhere?  Am I just conjuring up problems where none
exist?
Thanks :)
 


Re: Swing in JDK 1.2

1998-08-08 Thread Scott A. Miller

Agree, we should all respond to this.  In addition to forcing developers
to put classes in com.sun.java that shouldn't exist there, this will
prevent use of the "cross platform look and feel" that Sun promised Java
developers early on in the evolution of Swing.  IOW we will only be able
to use a Win L&F on Windows, Mac L&F on Mac, etc.  If it is the opinion
of Sun's legal staff that sanctioning this capability may place Sun in
jeopardy from litigation, let Sun put *loud* disclaimers and comments in
their material that use of a proprietary L&F without permission of the
"owner" may constitute infringement on intellectual property, but leave
the final decision to the developer!

Robert Fitzsimons wrote:
> 
> Hi everybody
> 
> I'm just pointing out to everybody that JavaWorld (www.javaworld.com) are
> doing a poll, on whether it is right for Sun to put Swing under the package
> name com.sun.java.swing.
> 
> This is very important for us in the open source community to try and
> change Sun's minds.  As we may in the future want to write a open source
> version of Swing, and I don't think it is right for us to put our code
> under com.sun.java.swing.
> 
> The poll page is http://nigeria.wpi.com/cgi-bin/gwpoll/gwpoll/ballot.html
> 
> Thanks
> 
> Robert Fitzsimons
> [EMAIL PROTECTED]



Re: Socket connect timeout?

1998-08-12 Thread A. Craig West

I thought that the whole process blocked on blocking IO calls only in
the case of
System.in, due to the original implementation. I'm on thin ice here,
though. I was
under the impression that other blocking IO calls were written to use
non-blocking
OS primitives.

John Snell wrote:
> 
> Shouldn't the entire process be blocked, on a blocking IO
> call?  Thus, another user level thread wouldn't make a difference, as the
> socket open attempt would block all threads belonging to the process.
> 
> Of course, this all changes when the JDK is written with native threads.
> 

-- 
Craig West     Ph: (905) 821-8300   |  It's not a bug,
Pulse Microsystems Fx: (905) 821-7331   |  It's a feature...
2660 Meadowvale Blvd, Unit #10  | [EMAIL PROTECTED]
Mississauga, Ont., Canada L5N-6M6   | [EMAIL PROTECTED]



RE: Compilation hardware

1998-08-28 Thread Stefaan A Eeckels

On 28-Aug-98 Jerry Treweek wrote:
>  
>  There is a bewildering plethora of choice out there and I would be
>  interested in seeing what opinions and experiences the java-linux
>  community had to offer in respect of selecting components for a
>  compilation machine, specifically,
>  
>  CPU
>  Chip set
>  Motherboard
>  Memory
You forget the most important part (for a compilation machine) namely
the disk subsystem. Get a lot of memory (128Mb, or even 256Mb will
do fine, but more is better), and a couple of U2W (they're backwards
compatible with the UW ones and cost no more) on a dual Adaptec 
controller (Intel, Asus, Gigabyte, SuperMicro etc make nice boards
with integrated SCSI controllers). Get two PII-266 or PII-300
processors (they're really cheap now) instead of one PII-400.
I have a dual PII-266 (Intel Dakota, with 128Mb and SCSI disks
and I compile the Linux kernel in about 7 minutes, honest).
>  
>  It does seem that most CPU design is driven by the need of the games
>  players on one hand, or the business community on the other and the
>  benchmarks used seem to reflect that. This seems to me to miss the needs
>  of developers somewhat, as we invariably require far more out of our
>  systems than (pardon the term) 'mere users'.
Don't get an IDE machine. In my experience, they're an order of
magnitude slower than a good SCSI box.
>  
>  My main concerns are (not necessarily in this order)
>  
>  reliability
>  compilation speed
>  longevity (upgrade ability etc.)
>  price
- A dual CPU motherboard, with built-in SCSI and 100Mb/s ethernet
from a reliable supplier (see above). Get one with the BX chipset
if possible (100Mhz bus), but even an LX based board (such as the
Intel Dakota, going cheap) should be ample.
- CPU: A PII-300 is more than competent enough.
- Not necessarily the fastest CPU (CPU speed is sexy, but hugely
overrated)
- A quality case with good cooling (if it's in a cupboard, stick
in a couple of additional fans, or one of these nifty disk 
coolers)
- A UPS (they're really cheap these days) does wonders for
reliability.
- Don't sacrifice to the bleeding edge.

Enjoy!

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupéry



Re: Compilation hardware

1998-08-29 Thread Stefaan A Eeckels


On 29-Aug-98 Dan Kegel wrote:
>  Stefaan A Eeckels wrote:
> > I have a dual PII-266 (Intel Dakota, with 128Mb and SCSI disks
> > and I compile the Linux kernel in about 7 minutes, honest).
>  
>  How long does it take if you disable one CPU?  What speed
>  disks (7200RPM?) are you using?
Two 4.5G Quantum UW drives, 7200rpm. I haven't timed the 
compilation with one CPU - I recompiled the kernel with
SMP support and haven't had one problem since. 

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupéry



Re: JDK on Redhat 5.1

1998-09-01 Thread James A. Tzitzouris

If you mean "can I get the jdk-1.1.6 RPM file from the RedHat page and
install it " and have it run with Redhat 5.1 "right out of the box" yes.
I am doing it now.  However, jdk-1.1.6 does not come with the RedHat 5.1
distribution (i.e., shrink-wrapped boxed set).

Cheers,

Jim


James Tzitzouris


Whitehead Hall, Room 306-D
Department of Mathematical Sciences
Department of Electrical and Computer Engineering
Johns Hopkins University
Baltimore, MD  21218
office:  (410) 516-0158
home:(410) 366-3125
email:   [EMAIL PROTECTED]
www: http://www.mts.jhu.edu/~jimt2


On Tue, 1 Sep 1998, Mathew Harelick wrote:

> Hi: 
> 
> Do you know if the current JDK can run on Linux Red Hat 5.1 right out of
> the box? 
> 
> 
> Matthew S. Harelick
> http://www2.cybernex.net/~matth
> [EMAIL PROTECTED]
> 
> 



Re: Java Servlets -N- Linux?

1998-09-04 Thread Gregory A. Kirkendall

Check out the Java-Apache Project at http://java.apache.org/.

Greg

Steve Curry wrote:
Hello,

   
Can Java Servlets be developed on a Linux box? We are setting up a Linux
web server and want to use Java Servlets if possible. Is there a Linux
version of the Java Servlet Development Kit or do I need something
like
JRun from livesoftware ( http://www.livesoftware.com
)? Any help is
appreciated

Steve Curry
 


Re: JDK-1.1.6v4 not available on the mirrors?

1998-09-12 Thread David A. Guthrie


Check ftp://wauug.erols.com/pub/java
Uri Blumenthal wrote:
Hi,
    I've been trying to locate
JDK-1.1.6v4 for i386/libc5
    (mostly hoping that "javah"
in that release is fixed
    and can work with "classes.zip"
file).
    However, the mirrors I check
show only 1.1.6v2.
    What's wrong?
    Oh, and here's the bug report
for "javah" on Linux-2.0.33,
    libc-5.4.46, XFree86-3.3.2,
jdk-1.1.6v2.
uri@alisan:/home/uri/src/sane-0.74/japi > echo $CLASSPATH
..:/usr/lib/java/classes:/usr/lib/java/lib/SPT_0-0-9.jar:/usr/lib/java/lib/IJCE_0-0-11.jar:/usr/lib/java/lib/ALG_0-0-9.jar:/usr/lib/java/lib/ELGAMAL_0-0-2.jar:/usr/lib/java/lib/RSA_0-0-9.jar:/usr/lib/java/lib/RPK_0-0-10.jar:/usr/lib/java/lib/OLD_0-0-4.jar:/usr/lib/java/lib/TOOLS_X-Y-Z.jar:/usr/lib/java/lib/MARS.jar:/usr/lib/java/lib/swingall.jar:/usr/lib/java/lib/postgresql.jar:/usr/lib/java/lib/infobus.jar:/usr/lib/java/lib/classes.zip:/home/uri/java
uri@alisan:/home/uri/src/sane-0.74/japi > make
javah -jni Sane
java.lang.Object not found: aborting
make: *** [Sane.h] Error 1
uri@alisan:/home/uri/src/sane-0.74/japi > java -version
java version "1.1.6"
uri@alisan:/home/uri/src/sane-0.74/japi > /sbin/ldconfig -D
/sbin/ldconfig: version 1.9.9
/usr/X11R6/lib:
    libguile.so.3 => libguile.so.3.0.0
    libgdk-1.1.so.1 => libgdk-1.1.so.1.0.0
    libglib-1.1.so.0 => libglib-1.1.so.0.1.1
    libforms.so.0.88 => libforms.so.0.88
    libttf.so.1 => libttf.so.1.0.0
    libMagick.so.4.0 => libMagick.so.4.0.1
    libgck.so.1 => libgck.so.1.0.0
    libgck.so.0 => libgck.so.0.0.1
    libgtk.so.1 => libgtk.so.1.0.5
    libgdk.so.1 => libgdk.so.1.0.5
    libMrm.so.2 => libMrm.so.2.0
    libgimpui.so.1 => libgimpui.so.1.0.0
    libgimp.so.1 => libgimp.so.1.0.0
    libXm.so.2 => libXm.so.2.0
    libXp.so.6 => libXp.so.6.2
    libXext.so.6 => libXext.so.6.3
    libICE.so.6 => libICE.so.6.3
    libXtst.so.6 => libXtst.so.6.1
    libXt.so.6 => libXt.so.6.0
    libXmu.so.6 => libXmu.so.6.0
    libXi.so.6 => libXi.so.6.0
    libXaw.so.6 => libXaw.so.6.1
    libXIE.so.6 => libXIE.so.6.0
    libSM.so.6 => libSM.so.6.0
    libPEX5.so.6 => libPEX5.so.6.0
    libX11.so.6 => libX11.so.6.1
    libXpm.so.4 => libXpm.so.4.8
    libXaw3d.so.6 => libXaw3d.so.6.1
    libtk4.0.so.1 => libtk4.0.so.1
    libglib.so.1 => libglib.so.1.0.5
/usr/i486-linux/lib:
/usr/local/lib:
    libsocks5_sh.so => libsocks5_sh.so
    librv10dec.so => librv10dec.so
    librasipr.so => librasipr.so
    librarv10.so => librarv10.so
    libradnet.so => libradnet.so
    libra28_8.so => libra28_8.so
    libra14_4.so => libra14_4.so
    libdecdnet.so => libdecdnet.so
/usr/pgsql/lib:
    libecpg.so.1 => libecpg.so.1.1
    libpq++.so.1 => libpq++.so.1
    libpq.so.1 => libpq.so.1.1
    libpgtcl.so.1 => libpgtcl.so.1
/usr/qt/lib:
    libqdbttabular.so.0 => libqdbttabular.so.0.3
    libqt.so.1 => libqt.so.1.40
/usr/openwin/lib:
    libxview.so.3 => libxview.so.3.2.0
    libolgx.so.3 => libolgx.so.3.2.0
    libsspkg.so.1 => libsspkg.so.1.0
/usr/kerberos/lib:
    libkadm5srv.so.1.0 => libkadm5srv.so.1.0
    libkadm5clnt.so.1.0 => libkadm5clnt.so.1.0
    libgssrpc.so.1.0 => libgssrpc.so.1.0
    libgssapi_krb5.so.1.0 =>
libgssapi_krb5.so.1.0
    libkdb5.so.1.0 => libkdb5.so.1.0
    libkrb4.so.1.0 => libkrb4.so.1.0
    libdes425.so.1.0 => libdes425.so.1.0
    libkrb5.so.1.0 => libkrb5.so.1.0
    libcrypto.so.1.0 => libcrypto.so.1.0
    libdyn.so.1.0 => libdyn.so.1.0
    libcom_err.so.1.0 => libcom_err.so.1.0
/usr/lib:
    libxdelta.so.0 => libxdelta.so.0.0.20.0
    libaa.so.1 => libaa.so.1.0.3
    libjpeg.so.62 => libjpeg.so.62.0.0
    libbfd-2.9.1.0.7.so.0 =>
libbfd-2.9.1.0.7.so.0.0.0
    libopcodes-2.9.1.0.7.so.0
=> libopcodes-2.9.1.0.7.so.0.0.0
    libkpathsea.so.3.1.0 =>
libkpathsea.so.3.1.0
    libtcl7.5.so => libtcl7.5.so
    libtk4.2.so => libtk4.2.so
    libtcl7.6.so => libtcl7.6.so
    libncurses.so.4 => libncurses.so.4.2
    libg++.so.2.8 => libg++.so.2.8.1
    libz.so.1 => libz.so.1.1.2
    libz.so.1.0.4 => libz.so.1.0.4
    libjpeg.so.6 => libjpeg.so.6.0.1
    libstdc++.so.2.8 => libstdc++.so.2.8.0
    libtk4.1.so => libtk4.1.so
    libstdc++.so.27 => libstdc++.so.27.2.8
    libform.so.4 => libform.so.4.2
    libg++.so.27 => libg++.so.27.2.8
    libvgagl.so.1 => libvgagl.so.1.2.13
    libtcl7.4.so.1 => libtcl7.4.so.1
    libitk.so.2 => libitk.so.2
    libitcl.so.2 => libitcl.so.2
    libmh.so.3.2 => libmh.so.3.2
    libvga.so.1 => libvga.so.1.2.13
    libobjects.so.0 => libobjects.so.0.1.19
    libtiff.so.3.4 => libtiff.so.3.4.35
    libpng.so.2 => libpng.so.2.1.0.2
    libpng.so.1 => libpng.so.1.0.96
    librle.so.1 => librle.so.1.0.0
    

Re: Xsql 2.1.7

1998-09-14 Thread Peter A. Pilgrim

Phillip J. Birmingham wrote:
> 
> Hello, Mr. Pilgrim,
> 
> I've been trying to get Xsql to work on my Red Hat Linux 5.1
> machine under JDK 1.1.5 with JFC 1.1.  I get the following error
> message when I try to log in, and I was wondering if you could tell me
> what the problem is:
> 
> Xsql : Xenonsoft's interactive java based SQL Editor using Swing/JFC ( 
>V2.1.7 )
> Written by Peter A. Pilgrim, XeNoNSoFT, South London, England [c] 1998
> 
> 
> Exception occurred during event dispatching:
> java.lang.NoSuchMethodError: com.sun.java.swing.JPasswordField: method 
>getPassword()[C not found
> at xenon.xsql.editor.XsqlLoginDialog.connectDB(XsqlLoginDialog.java:638)
> at 
>xenon.xsql.editor.XsqlLoginDialog.actionPerformed(XsqlLoginDialog.java:797)
> at 
>com.sun.java.swing.AbstractButton.fireActionPerformed(AbstractButton.java:889)
> at 
>com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:924)
> at 
>com.sun.java.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:338)
> at 
>com.sun.java.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:230)
> at 
>com.sun.java.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:191)
> at java.awt.Component.processMouseEvent(Component.java:2284)
> at java.awt.Component.processEvent(Component.java:2129)
> at java.awt.Container.processEvent(Container.java:894)
> at java.awt.Component.dispatchEventImpl(Component.java:1764)
> at java.awt.Container.dispatchEventImpl(Container.java:939)
> at java.awt.Component.dispatchEvent(Component.java:1704)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1548)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1457)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1392)
> at java.awt.Container.dispatchEventImpl(Container.java:926)
> at java.awt.Window.dispatchEventImpl(Window.java:443)
> at java.awt.Component.dispatchEvent(Component.java:1704)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
> 
> Javap reports that the class file does contain a reference to
> getPassword()[C, which seems to be causing the error.  Could this be a
> typographical error that somehow slipped past the compiler?
> 
> Please let me know if you need more information or any manner of
> assistance.  Your program looks rather impressive so far, and I'd like
> to see more of it.
> 
> Regards,
> Phillip J. Birmingham

Well JPassword has a method called getPassword() officially in the
Swing-1.1beta that I have. It may that Swing 1.0.{1,2,3} does not
properly support this method properly. Yes I had a deprecation if I remember
You may need to get the latest JFC zip from Sun. Oops!

Are sure that CLASSPATH does not refers to another older JFC.

Have you got also the latest JDK 1.1.6v3 or above, but this may not help
you.

-- 
Del Segno Al Coda

Pete

Powered By
__
   / /=  __ ___  __ __ __ __ __
  / /=  / //   |/ // // /  // /
 / /__ / // /| / // _/ / >  <==
//__//_/=|__///__/__/= Slackware 3.5
  == ==  ===   == ==
"... ,because Unix is the best!"

Peter Pilgrim <mailto:[EMAIL PROTECTED]>



Re: Xsql 2.1.7

1998-09-14 Thread Peter A. Pilgrim

Phillip J. Birmingham wrote:
> 
> Hello, Mr. Pilgrim,
> 
> I've been trying to get Xsql to work on my Red Hat Linux 5.1
> machine under JDK 1.1.5 with JFC 1.1.  I get the following error
> message when I try to log in, and I was wondering if you could tell me
> what the problem is:
> 
> Xsql : Xenonsoft's interactive java based SQL Editor using Swing/JFC ( 
>V2.1.7 )
> Written by Peter A. Pilgrim, XeNoNSoFT, South London, England [c] 1998
> 
> 
> Exception occurred during event dispatching:
> java.lang.NoSuchMethodError: com.sun.java.swing.JPasswordField: method 
>getPassword()[C not found
> at xenon.xsql.editor.XsqlLoginDialog.connectDB(XsqlLoginDialog.java:638)
> at 
>xenon.xsql.editor.XsqlLoginDialog.actionPerformed(XsqlLoginDialog.java:797)
> at 
>com.sun.java.swing.AbstractButton.fireActionPerformed(AbstractButton.java:889)
> at 
>com.sun.java.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:924)
> at 
>com.sun.java.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:338)
> at 
>com.sun.java.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:230)
> at 
>com.sun.java.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:191)
> at java.awt.Component.processMouseEvent(Component.java:2284)
> at java.awt.Component.processEvent(Component.java:2129)
> at java.awt.Container.processEvent(Container.java:894)
> at java.awt.Component.dispatchEventImpl(Component.java:1764)
> at java.awt.Container.dispatchEventImpl(Container.java:939)
> at java.awt.Component.dispatchEvent(Component.java:1704)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1548)
> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1457)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1392)
> at java.awt.Container.dispatchEventImpl(Container.java:926)
> at java.awt.Window.dispatchEventImpl(Window.java:443)
> at java.awt.Component.dispatchEvent(Component.java:1704)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)
> 
> Javap reports that the class file does contain a reference to
> getPassword()[C, which seems to be causing the error.  Could this be a
> typographical error that somehow slipped past the compiler?
> 
> Please let me know if you need more information or any manner of
> assistance.  Your program looks rather impressive so far, and I'd like
> to see more of it.
> 
> Regards,
> Phillip J. Birmingham

Well JPassword has a method called getPassword() officially in the
Swing-1.1beta that I have. It may that Swing 1.0.{1,2,3} does not
properly support this method properly. Yes I had a deprecation if I remember
You may need to get the latest JFC zip from Sun. Oops!

Are sure that CLASSPATH does not refers to another older JFC.

Have you got also the latest JDK 1.1.6v3 or above, but this may not help
you.


-- 
Del Segno Al Coda

Pete

Powered By
__
   / /=  __ ___  __ __ __ __ __
  / /=  / //   |/ // // /  // /
 / /__ / // /| / // _/ / >  <==
//__//_/=|__///__/__/= Slackware 3.5
  == ==  ===   == ==
"... ,because Unix is the best!"

Peter Pilgrim <mailto:[EMAIL PROTECTED]>



multicast via slip

1998-10-03 Thread Gwobaw A. Wu

Hi,

Does anyone know whether linux java allow multicast via slip?
Currently, I am running jdk 1.1.6v1 and have a modem (28.8k) running slip.
TCP/IP runs ok but it gave me core dump when I tried to join multicast
group:
   java.net.SocketException: Cannot assign requested address
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:153)
at Client.joinMulticast(Client.java:29)
at Client.run(Client.java:39)

The code runs fine on a SUN solaris machine and on a linux box with
ethernet connection.
I have fixed ip address although I am running slip over modem.

Thanks.
--- Gwobaw ([EMAIL PROTECTED])
3115 EECS, (313) 647-3780



javah problem in package

1998-10-06 Thread Gwobaw A. Wu

Hi,
I notice that javah has a problem in generating stub include file
within a package.  Without package, javah is able to generate stub include 
( xxx.h ) file.  Here is the error message :

javah Time
Time: no such class.

CLASSPATH is set correctly since javah works without package in the
source.

I also notice that jdk115 on solaris has the same problem.
The only version I found that works is jdk113 on solaris.  jdk115,
jdk116v1 jdk116v4 on linux do not work.

Is this bug will be fixed in the near future?
Please let me know.

BTW, On SUN's jdk116 download page, it mentions that jdk116v4 fixes javah
problem.  I don't know if this is the same problem that I have.
I have not tried the new version yet.

--- Gwobaw ([EMAIL PROTECTED])
3115 EECS, (313) 647-3780



DatagramSocket option in jdk1.1.6v4

1998-10-07 Thread Gwobaw A. Wu

Hi,
I thought this problem is fixed in jdk1.1.6v4, but I still have it:
java.net.SocketException: invalid DatagramSocket option
at 
java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:155)
at java.net.MulticastSocket.create(MulticastSocket.java:111)
at java.net.DatagramSocket.(DatagramSocket.java:114)
at java.net.DatagramSocket.(DatagramSocket.java:100)
at java.net.MulticastSocket.(MulticastSocket.java:92)

jdk1.1.6v1 did not have this problem though.
Thanks.

--- Gwobaw ([EMAIL PROTECTED])
3115 EECS, (313) 647-3780



Re: javah problem in package

1998-10-07 Thread Gwobaw A. Wu

Thanks for your help.
 I guess this is first time I run javah with a package.

--- Gwobaw ([EMAIL PROTECTED])
3115 EECS, (313) 647-3780



java.lang.UnsatisfiedLinkError: readImage

1998-06-14 Thread Stefaan A Eeckels

Hi List,

I've just subscribed (and just installed jdk1.1.6-v1 on
my Linux 2.0.34 S.u.S.E based box, and I get the following
error when running some of the demo programs:

java.lang.UnsatisfiedLinkError: readImage

I also get this with tya's Iview demo package.

Sorry if this is a FAQ, but www.mail-archive.com
seems to be down.

Thanks a lot,

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




RE: java.lang.UnsatisfiedLinkError: readImage

1998-06-15 Thread Stefaan A Eeckels

Hi List,

Sorry to follow up on my own message, but it was late
yesterday night, and I should have added the complete
error message.

Here it is:
java.lang.UnsatisfiedLinkError: readImage
 at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:137)
 at
sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:265)
 at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:151)
 at sun.awt.image.ImageFetcher.run(ImageFetcher.java:127)

Any idea what I forgot to install?  (1.1.5v7 gives the same
error, but GIF files are displayed correctly).

Thanks a million,

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Stefaan A Eeckels

Hi List,

I did some more tests, and I have the following frustrating
results:
- JDK1.1.3 on Linux 2.0.34 (heavily updated Slackware 95) gives
no problems (this is an older 486/66 machine too slow to do
serious java work) 
- I exported the JDK directory from this machine, mounted it
on the PentiumII (SuSE 5.1 core and kernel 2.0.34), and made
a symbolic link (/usr/lib/java -> /net/opt/java/jdk1.1.3).
I recompiled tya0.7, and it properly recognises that version
of the JDK. Now the demo program (Iview)doesn't run. 

Conclusion - it's something on the PII box that causes the
link problem. The only difference is that on the old box,
the version of ld.so is 1.9.5, whereas it is 1.9.6 on the
new machine. 

Any clues - this really puzzles me no end, but as I have
other work to do, I'll let is simmer for a while and see
if I can come up with something.

Thanks a lot for listening,

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
_______
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




Re: java.lang.UnsatisfiedLinkError: readImage

1998-06-16 Thread Stefaan A Eeckels

On 16-Jun-98 Juergen Kreileder wrote:
>  Not necessarily.
>  
>  Try
>  strace -e trace=open java Iview Valetta.jpg
>  to see which libjpeg.so gets loaded. 
>  On my system there is a libjpeg.so in the jdk directory (this is 
>  the one that should get loaded) and there is a libjpeg.so in /usr/lib 
>  (which is the wrong library).
I only got this suggestion after I sent of my previous mail
(dialup obliges), but I can report now that this was indeed
the problem. There was a symlink to libjpeg.so.6.0.1 called
libjpeg.so on the PII, and this confused the loader. What I
don't get is why setting LD_LIBRARY_PATH to the java library
directory had no effect. Re-arranging ld.so.conf didn't work
either. 

Oh well, the vagaries of shared libraries ;-)

Many thanks, Jürgen and Albrecht. I can go back to something
more productive now.

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
_______
A consultant is a person who borrows your watch, tells you what
  time it is, pockets the watch, and sends you a bill for it.




Need a Java/Linux RedHat 5.0 configuration where getLocalHost works

1998-06-17 Thread John A. Zinky


We have not been able to find a configuration of Linux Red Hat 5.0 and
jdk 1.1.x that works for the following one line test program.

public class TestGetLocalHost {
  public static void main(String[] args) {
try {
  System.out.println(java.net.InetAddress.getLocalHost());
} catch (Exception e) { e.printStackTrace(); }
  }}

The Test program prints the IP address of local host 
(A necessary function for servers that need to publish their location)

On Solaris,NT, and  Red Hat 4.0/jdk1.1.3 this works: e.g:
   guava.bbn.com/171.78.82.34
On Linux Red Hat 5.0 jdk1.1.5 this returns the loopback address: e.g:
   localhost/127.0.0.1

We have traced the problem in to the C routines for native platform
on Line 298 in .../jdk1.1.5/src/java/net/InetAddress.java
localHost.hostName = impl.getLocalHostName();
System.out.println("local host name: " + localHost.hostName);

On linux: local host name: localhost
On Solaris:   local host name: guava.bbn.com

 Questions *
1) Does anyone have a Linux RedHat 5.0 configuration where this program works?

a) jdk1.1.3 does not work under RedHat 5.0 because it uses libc and not glibc
   Is there a way to shimmy in libc just for this one java executable?

b) We have tried several version of jdk1.1.5 and jdk1.1.6, 
   all of which we had a hard time installing.

c) How about a statically linked version of jdk1.1.x?

2) Could this be a configuration error in the linux host?

3) Could we hack the C source for impl.getLocalHostName?
 a) Where is the source code?
 b) Where is the Make?

4) Could this be a security feature?
 The news groups has lots of chatter on why getLocalHosts should not
 give the IP address IN THE CASE OF APPLETS.
 But this case, we have a SERVER, so it needs to get it's own address.

thanks
zinky




Re: JDK for 21064?

1998-10-31 Thread Michael A. Smith

On Sat, Oct 31, 1998 at 12:01:52PM -0500, Eric Bohm wrote:
> >>>>> "Uncle" == Uncle George <[EMAIL PROTECTED]> writes:
> 
> Uncle> actually a 21164a ( the "a" really counts - who wuddya

[Snip]

> Uncle> :-( . My 250 meg web xfer/month appears to be exhausted.
> Uncle> oh, well.
> 
> I could help a bit, I have a cable modem connection that is up all the
> time, downside is that my address is not static.  What I could do is
> set up a redirect from a site where I have a fixed address, but only a
> small amount of space, and host a mirror of your page on my machine.
> I have plenty of space and bandwidth.

You could set up something with Dynamic DNS. Check out the URLs below
for more info.

http://www.ddns.org
http://www.ml.org

/Mike

-- 
Michael A. Smith
"The future has already arrived; it's just not evenly distributed yet."
- William Gibson



Re: which is the best CORBA/Java implementation?

1998-11-12 Thread Douglas A. Seifert


>   Any chance to find something like this? BTW is anyone here using CORBA in
>   conjunction with java?

Hello,

We have been able to get the JDK1.2beta CORBA implementation to work on
our Linux box.  All we did was unjar the jdk1.2beta classes.zip and then
jar up all the org/omg stuff into a new archive.  Put the new archive in
your $CLASSPATH and you've got a "free" CORBA implementation.  So far,
we've experienced no problems with it; it even runs fine using the
shuJIT just-in-time compiler.  We did have problems using it with TYA,
however :(

If you want, I can email you our "corba.jar" file.  It is based on the
org/omg stuff extracted from a jdk1.2beta4 classes.zip file for Windows
NT.  But, as I've said, it works fine for us on Linux.  True "write
once, run anywhere" in action!

-Doug Seifert
 http://www.onion.net/

begin:vcard 
n:Seifert;Douglas A.
tel;pager:888-763-1229
tel;home:310-450-6788
tel;work:310-335-5200
x-mozilla-html:TRUE
url:http://www.onion.net/
org:DAS
adr:;;55 Navy St. #110;Venice;CA;90291;US
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;18080
fn:Douglas A. Seifert
end:vcard



Re: which is the best CORBA/Java implementation?

1998-11-12 Thread Douglas A. Seifert


>I did exactly the same and worked perfectly for me as well, but I
>didn't try it with JIT compilation switched on.
>Please note that you won't have an IDL compiler under Linux, because
>that part of JDK1.2 isn't written in Java :-(

Yes, no help for this.  We have had to run idltojava on a Solaris box
we have access to, then ftp over the results.

>The problem I experienced (with JDK1.2b2) is that I couldn't start the
>TransientNameServer under Linux, although this should be pure Java. It
>simply set something like:
>"Not supported under Linux"
>Maybe this was politics

Try this:

// Start up a collocated NameServer.
class NameServerThread extends Thread {
  private String [] m_args;
  public NameServerThread(String [] f_args) throws Exception {
m_args = f_args;
start();
  }
  public void run() {
 com.sun.CosNaming.TransientNameServer.main(m_args);
  }
}
NameServerThread nst = new NameServerThread(argv);

TransientNameServer wants "-ORBInitialPort " as initialization args.

You can stick this is in a stand alone app or in with your server code.  If
you put it in with your server code, make sure that you put
Thread.currentThread().yield(); right after starting the NameServerThread so
it has a chance to get going before you try connecting to it.


-Doug Seifert


begin 666 Re.txt
M#0HM+2TM+2TM+2TM#0I\($9R;VTZ('-E:69E2P@3F]V96UB97(@,3(L(#$Y.3@@
M-#HQ,E!-#0I\#0I\#0I\(#X@(" @(" @06YY(&-H86YC92!T;R!F:6YD('-O
M;65T:&EN9R!L:6ME('1H:7,_($)45R!I"X@($%L;"!W92!D:60@=V%S('5N:F%R('1H92!J
M9&LQ+C)B971A(&-L87-S97,N>FEP(&%N9"!T:&5N#0I\(&IA2!T:&4@
M2!F;W(@;64@87,@=V5L;"P@8G5T
M($D@#0ID:61N)W0@=')Y(&ET('=I=&@@2DE4(&-O;7!I;&%T:6]N('-W:71C
M:&5D(&]N+@T*4&QE87-E(&YO=&4@=&AA="!Y;W4@=V]N)W0@:&%V92!A;B!)
M1$P@8V]M<&EL97(@=6YD97(@3&EN=7@L(&)E8V%U

Unidentified subject!

1998-11-25 Thread Ramesh Babu A.


Hi,

How to write MakeFile for Java in Linux ?

Here I have snippet of makefile code. But it does not

working properply (When I each time give cmd like

make -f MakeFile, it compiles each java files even it's

time is not modified.)

If anybody know mail to me.


Regards,

Ramesha




MakeFile

---


 #**
 #
 #  Makefile for JAVA GUI
 #
 #  Author: Ramesh .A Babu, TeneT Group, 4078,,
 #
 #
 #  Change Log:  
 #  
 #
 #*/

CLASSES = Status.class FirstDemo.class UserPortMgr.class RTMgr.class \
  SecondLevelMgr.class Tester.class UpdateInterface.class \
  FileViewer.class  FillUtils.class FillNetwork.class  \
  UserPort.class CodeDownLoad.class \
  LineCard.class MntcPkt.class   PostTest.class 


  

all: $(CLASSES)

# ** Directory Path for JFC compiler 

JAVAC   = /usr/local/jdk116/bin/

# * Java files to be compile ***


# Single dependent java files

UpdateInterface.class:  UpdateInterface.java
$(JAVAC) UpdateInterface.java

FileViewer.class:   FileViewer.java
$(JAVAC) FileViewer.java

FillUtils.class:FillUtils.java
$(JAVAC) FillUtils.java

FillNetwork.class:  FillNetwork.java
$(JAVAC) FillNetwork.java

LineCard.class: LineCard.java
$(JAVAC) LineCard.java

MntcPkt.class:  MntcPkt.java
$(JAVAC) MntcPkt.java

PostTest.class: PostTest.java
$(JAVAC) PostTest.java

UserPortMgr.class:  UserPortMgr.java 
$(JAVAC) UserPortMgr.java

RTMgr.class:RTMgr.java UserPortMgr.java
$(JAVAC) RTMgr.java

SecondLevelMgr.class:   SecondLevelMgr.java
$(JAVAC) SecondLevelMgr.java

Status.class:   Status.class MntcPkt.java
$(JAVAC) Status.java

# *** Clean unwanted files *

clean:
rm -f *.*~ core *~


#  End of Makefile **




How to Write MakeFile ?

1998-11-25 Thread Ramesh Babu A.



 Hi,
 
How to write MakeFile for Java in Linux ?

Here I have snippet of makefile code. But it does not
 
working properply (When I each time give cmd like
 
make -f MakeFile, it compiles each java files even it's
 
time is not modified.)
 
If anybody know mail to me.
 
 
 Regards,
 
 Ramesha
 
 

 
MakeFile
 
---
 
 
  #**
  #
  #  Makefile for JAVA GUI
  #
  #  Author:Ramesh .A Babu, TeneT Group, 4078,,
  #
  #
  #  Change Log: 
  # 
  #
  #*/
 
 CLASSES = Status.class FirstDemo.class UserPortMgr.class RTMgr.class \
  SecondLevelMgr.class Tester.class UpdateInterface.class \
  FileViewer.class  FillUtils.class FillNetwork.class  \
  UserPort.class CodeDownLoad.class \
  LineCard.class MntcPkt.class   PostTest.class 
 
 
  
 
 all: $(CLASSES)
 
 # ** Directory Path for JFC compiler 
 
 JAVAC  = /usr/local/jdk116/bin/
 
 # * Java files to be compile ***
 
 
 # Single dependent java files
 
 UpdateInterface.class: UpdateInterface.java
$(JAVAC) UpdateInterface.java
 
 FileViewer.class:  FileViewer.java
$(JAVAC) FileViewer.java
 
 FillUtils.class:   FillUtils.java
$(JAVAC) FillUtils.java
 
 FillNetwork.class: FillNetwork.java
$(JAVAC) FillNetwork.java
 
 LineCard.class:LineCard.java
$(JAVAC) LineCard.java
 
 MntcPkt.class: MntcPkt.java
$(JAVAC) MntcPkt.java
 
 PostTest.class:PostTest.java
$(JAVAC) PostTest.java
 
 UserPortMgr.class: UserPortMgr.java 
$(JAVAC) UserPortMgr.java
 
 RTMgr.class:   RTMgr.java UserPortMgr.java
$(JAVAC) RTMgr.java
 
 SecondLevelMgr.class:  SecondLevelMgr.java
$(JAVAC) SecondLevelMgr.java
 
 Status.class:  Status.class MntcPkt.java
$(JAVAC) Status.java
 
 # *** Clean unwanted files *
 
 clean:
rm -f *.*~ core *~
 

 #  End of Makefile **
 
 
 



How to run ?

1998-11-30 Thread Ramesh Babu A.




Hi, 

I want to run my java program in Linux & WIN 95,

with out using java interpreter, but using jre.

I tried to run by giving command like this in Linux


>jre Hello

But it giving error,


Could not create Java VM


But in WIN 95

it says,

Could not find Hello.class


So, waiting for answer ...




 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




Servlets ??

1998-12-04 Thread Ramesh Babu A.


Hi,

I have RH4.1 Kernal 2.0.27, JDK1.1.5

I want to run Servlets on my Linux m/c. 

Is there anyting to install on Linux m/c, to run Java Servlets ???

Help me.



 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




Unidentified subject!

1998-12-07 Thread Ramesh Babu A.


Hi,

My friend told that Javac - compiler is written java language.

How it is possible to write first version of javac compiler

in java before java language came ?

If anybody know pls mail to me.

Thanks in advance.



 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




RE: [FYI] Java violates US patent?

1998-12-07 Thread Stefaan A Eeckels


On 07-Dec-98 Jaco Greeff wrote:
> > Found a link to this article on JavaLobby:
> > 
> >   http://www.pbs.org/cringely/pulpit/pulpit19981203.html
> > 
> > Could turn out bad. Very bad.
>  
>  Maybe in a certain sense, but remember that Java is not only used in
>  Web-wide applets, also applications. (Which is what I mainly use Java for.)
>  For the applet point of view, yes, for applications - Java is just another
>  (very cool, robust, WORA) programming language. Java is NOT just for the
>  WWW!
I don't see why it would have any bearing on the DoJ's
case vs. Microsoft (which is about business practices,
not technology) or Sun's case vs. Microsoft (which is about
not respecting license terms). Cringely suggests that MS
acquiring a license to a patent (delivered 4 years after the filing,
so it seems) would retroactively prove that they have not
behaved in an anti-competitive way. 

If Cringely really believes that 'executable content' is at the
foundation of Java, he needs his head read. 

BTW, the Eolas web site (www.eolas.com) uses Java in their
'zMap' technology. 

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupéry



Re: [FYI] Java violates US patent?

1998-12-07 Thread Stefaan A Eeckels

Sorry for continuing this fairly off-topic thread, but IMHO it
has some relevance to the use of Java on Linux (if even a little :-)

The full text of the patent can be accessed under the following
URL:

http://164.195.100.11/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=/n
etahtml/srchnum.htm&r=1&f=G&l=50&s1='5,838,906'.WKU.&OS=PN/5,838,906&RS=PN/5,838
,906

it's real easy to locate on the PTO's server (search for patent #
5 838 906).

The abstract contains the following sentence:

"After launching the program object, the user is able to interact with the
object as the invention provides for ongoing interprocess communication between
the application object (program) and the browser program."

This seems to indicate that the invention requires two programs
to interact (the browser and the program launched as a result
of the user interaction with the browser, either on the local,
or one or more remote computers. IMVHO, this does *not* describe
Java applets, as there is *no* separate program that runs when
a Java applet executes (it runs as part of the browser program,
and fully resides within the browser's address space). 

As the law is all about nit-picking, I've picked mine, and
IMHO the patent does not describe plug-ins (which are a dynamic
extension of a the browser), but *external* programs used to
control a browser through IPC. No two programs, no IPC, no
patent.

Any comments?

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupéry



Overloaded Constructor !!!

1998-12-08 Thread Ramesh Babu A.


Hi,

I read that in java, constructor should have return type.

But if i overload the constructor, and compile it is working ?

How ?

pls reply if anyone knows ? 

Thanx.


Ramesh Babu A. 
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




RE: Patents

1998-12-08 Thread Stefaan A Eeckels


On 08-Dec-98 Ray Racine wrote:
>  One thing and one thing only matters and that is the CLAIMS section of
>  the patent which is usually at the end of the patent.  YOU BEAT A PATENT
>  BY GETTING AROUND THE CLAIMS.

Thanks for the information, Ray (and congrats on the patent(s) :-)

I did read through the claims, and the most used word is
'said'. Am I glad the Bard was not a lawyer.

Claim 1 (the most generic one) specifically mentions a client 
running a browser, displaying a hypermedia document stored on 
a server, that also contains information to enable the machine 
running the browser to locate and execute a program external
to the original document for the purpose of controlling information 
presented by the browser.

Claim 2 extends claim 1 by stating that the external program
(application) can be controlled through IPC from the browser.

Claim 3 adds continued control of the application even after
it has been launched.

Claim 4 adds indirection by having the browser issue commands
to the server, which sends data to the external program for the
purpose of controlling it. The 'instructions' required to interpret
the commands are located on the server. 

Claim 5 stipulates that these instructions can also reside on the
client. 

Claims 6-10 are essentially the same as 1-5, but specifically talk
about 'program product', and seem to be the patenteze required to
turn the whole shebang into a 'product' and not an idea (IMHO).

IANAL, but it seems clear to me that the patent doesn't describe
Java as a portable language. It doesn't deal with languages at all.
It also specifically requires a system comprising a client, a server
and a network, a browser, and an *external* application. A Java
applet running *inside* a browser's address space is not an external
application. 

IMHO, Cringely made an ass of himself.

Stefaan
-- 

PGP key available from PGP key servers (http://www.pgp.net/pgpnet/)
___
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away. -- Saint-Exupéry



How to send e-mail ?

1998-12-11 Thread Ramesh Babu A.


Hi,
I want to send e-mail from my java program.

for that i opend socket on 25 (SMTP) port, and sent mail
by executing HELP, MAIL FROM:, RCPT TO:, DATA.
This is working fine only in the internal network. But if
try send to hotamil/rocketmail they are not allowing to
bind on that port.
(   new Socket(domainName, 25);   )

Pls tell, how to send mail from my java program.
also i don't want to send mail thru' executing sendmail
utility (exec()) from my Linux m/c. It should work
also in solaris/Linux/Win 95 etc.

Thanks in advance


 Ramesh Babu A.  FiLL Lab
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




How to invoke ?

1998-12-19 Thread Ramesh Babu A.


Hi,
How to invoke java enabled browser from my java application ?

If anybody knows pls mail it to me.
Thanks in advance.



How to include ?

1998-12-20 Thread Ramesh Babu A.


Hi,
I have a setup, 
JDK1.1.6, RedHat4.1
I want to include my own fonts, backgrounds in my java
application(not Applets). Is it possible to do ?

If (yes)
  pls mail it to me;
else
  Bye ...


 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




Pass By Reference ??

1998-12-20 Thread Ramesh Babu A.

Hi,
I have a couple of doubts in java. Is it a right place to ask this
type Questions. If not where can I ask ?
Is java pass arguments to functions PassByValue / PassByReference
other than primitive datatypes ?
If PassByRefernce this reference is equivalent to C++ Referencee ?
pls see the follwoing eg.

class PassBy {

  PassBy() {

String[] arr = new String[] {"Hi"};
System.out.println("B4 calling fn, " + arr[0]);
Call(arr);
System.out.println("After calling fn, " + arr[0]);
String str1 = "Ramesh";
String str2 = "Babu";
System.out.println("B4 calling fn,1 " + str1 + " 2-- " + str2);
Swap(str1, str2);
System.out.println("after calling fn,1 " + str1 + " 2-- " + str2);
String arr1[] = new String[] {"java"};
String arr2[] = new String[] {"babu"};
System.out.println("B4 calling fn,1 " + arr1[0] + " 2-- " + arr2[0]);
SwapArr(arr1, arr2);
System.out.println("after calling fn,1 " + arr1[0] + " 2-- " + arr2[0]);
  }

  void SwapArr(String a1[], String a2[]) {

String[] temp = a1;
a1[0] = a2[0];
a2[0] = temp[0];
System.out.println("In fn,1 " + a1[0] + " 2-- " + a2[0]);

  }

  void Swap(String s1, String s2) {

String temp = s1;
s1 = s2;
s2 = temp;
System.out.println("In calling fn,1 " + s1 + " 2-- " + s2);

  }

  void Call(String[] local) {

local[0] = "Bye";
System.out.println("In fn " + local[0]);

  }

  static public void main(String[] args) {

new PassBy();

  }

}

Please explain. Thanks in advance. Bye...


 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




JDB with EMACS ??

1998-12-22 Thread Ramesh Babu A.


Hi,
My friend running his c programs in Linux, and debugging all the
c code thru' gdb inside emacs and now I am also using gdb and debugging
all of c code. It is a very superb tool to debug.
Is there any tool like that for java in Linux. ?
I tried to use jdb in emacs. but it is not working.
If it works in emacs, then it is possible to trace where is
the current execution/breakpoint/etc which will be very useful.
Pls anybody help to provide tool, or anyother go ?
Thanks in advance.


 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




Re: In what rpm do I find libXm.so.2

1998-12-27 Thread David A. Guthrie

Sander van Geloven wrote:

> Hi,
>
> I am trying to install a jdk redhat pacjage but it needs libXm.so.2.
> Does anyone know where I can find that library, i.e. in what rpm is it
> stored?
>
> Thanks,
>
> Sander

Uhh.  That's motif.  You need a static build, which should be in there,
so that you don't need libXm.so.2.  Otherwise you'll have to buy motif.
 You can try lesstif, but it's not motif 2.0 compatible.  It works as
motif 1.2.
--

Grace and peace to you from God our Father
and the Lord Jesus Christ,

David Guthrie




suggestion !!!

1998-12-28 Thread Ramesh Babu A.

Hi,

I need one suggestion from u people.
I have GUI wriiten in JDK1.1.6, Linux RH4.1.
Now i want to communicate with my native code(C++).
shall I use JDK1.0 native method or JDK1.1.X native methods.
Why I am asking this question, I have tried with JDK1.0 
native interface, but it is giving lot of errors like
thread dumps, monoitor dump, SIGENV. 
How to reslove SIGENV prob?
so pls suggest which one is better ?
and in JDK1.1.X JNI - what is the advantage ?
Thanks in advance.


 Ramesh Babu A. Phone 91-44-4909208
 FiLL Project,  
 TeNet Group,   <[EMAIL PROTECTED]>
 IIT - Madras.




Re: When will JDK 1.2 beta be released?

1998-07-07 Thread David A. Guthrie

Bruce J. Carter wrote:


BTW for those interested, we are working on a "native_threads" port
of the
JDK, taking advantage of the pthreads in the glibc package, which does
include linuxthreads and the libraries libpthreads.so and libpthreads.a.
We are hoping to have this as a release in the not too distant future.
 
Yeah!
-- 

    Grace and peace to you from God our Father 
    and the Lord Jesus Christ,

    David Guthrie
 


CLASSPATH variable too large ?

1999-02-14 Thread Ken A Redergard

I have a large amount of .jar files in the library directory, and that
leads to a very large CLASSPATH variable. 

The seems that java (java version "1.1.7") won't accept the
classpath when it reaches a certain amount of characters. I currently have
331 characters in the path, and when I run a .class file java reports that
the class can't be found. If I set the classpath to a much smaller amount
of characters the program runs...

Any suggestions on how to solve this problem (except from decompressing
all the .jar files in the library directory) ?

With regards,
Ken A. Redergård
http://www.colargol.tihlde.hist.no/~kenr



Re: What should one download, exactly?

1999-03-07 Thread David A. Guthrie


You need to install the URW fonts.  These are nice, scalable fonts. 
The web page has documentation on installing them.
http://www.gimp.org/fonts.html
Nick Bailey wrote:
Congratulations on the 1.2 port!   Can't
wait to get it going.
Unfortunately, I've got a 28k8 modem, but all is not lost: I can blow
CD
ROMs at work which also has a fast internet link.
So the question is: could somebody with a similar system to mine at
home
(Red Hat 5.2) suggest exactly what I need to download?  The JDK,
obviously, but I was saw something on the digest about needing extra
fonts for swing to work nicely.  It would be a great help if sombody
could post or send me a list of the necessary ingredients: with any
luck,
I'll get away with blowing only one CD-ROM. 8-)
I normally use XEmacs and JDE for editing, but netbeans looks good...
All the best,
Nick/

E-Mail: Nick Bailey <[EMAIL PROTECTED]>
Web page: www.polonius.demon.co.uk
Date: 07-Mar-99; Time: 18:12:18 by XFMail v1.3
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 

    Grace and peace to you from God our Father 
    and the Lord Jesus Christ,

    David Guthrie
 


library

1999-03-10 Thread David A. Guthrie

look at the blackdown pages for shell script and an explanation, but it amounts
to making a symlink
from libstdc++.so.2.8 or libstdc++.so.2.9 named libstdc++-libc6.0-1.so.2.
Vijaykumar Krishnaswamy wrote:

> Hi,
> i jave just installed jdk1.2-pre version on my machine.I was
> playing around with it a bit and found that when i try running an applet
> demo, it throws an exception as follows.I was not able to find the library
> libstdc++-libc6.0-1.so.2 on my machine.I am running the kernel 2.2.3 and
> the redhat 5.2 installation.Can anyone tell me what the problem is and
> where i can get the above mentioned library from.
>
> thanks,
> vijay
>
> >appletviewer example1.html
>
> Exception in thread "main"
> java.lang.UnsatisfiedLinkError:
> /user/packages/java/jdk1.2/jre/lib/i386/libfontmanager.so:
> libstdc++-libc6.0-1.so.2: cannot open shared object file: No such file or
> directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(Compiled Code)
> at java.lang.ClassLoader.loadLibrary(Compiled Code)
> at java.lang.Runtime.loadLibrary0(Compiled Code)
> at java.lang.System.loadLibrary(Compiled Code)
> at sun.security.action.LoadLibraryAction.run(Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> sun.awt.font.NativeFontWrapper.(NativeFontWrapper.java:41)
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:61)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Compiled Code)
> at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Compiled Code)
> at sun.awt.motif.MToolkit.(MToolkit.java:59)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Compiled Code)
> at java.awt.Toolkit$2.run(Compiled Code)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.Toolkit.getDefaultToolkit(Compiled Code)
> at sun.applet.AppletCopyright.(Compiled Code)
> at sun.applet.AppletViewer.mainInit(Compiled Code)
> at sun.applet.AppletViewer.main(Compiled Code)
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--

Grace and peace to you from God our Father
and the Lord Jesus Christ,

David Guthrie




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



Re: JDK1.2 fails to start

1999-03-10 Thread David A. Guthrie

You don't need to put the jdk source jars in your classpath in 1.2.
inkle c wrote:

> I am having linux2.2.3, egcs1.1.1 on my x86 together with JDK1.2-pre1,
> any java command I execute, there is always same error:
>
> ===
>
> *** panic: GC: getStickySystemClass failed: java/lang/ref/Reference
> CLASSPATH may be incorrect
> SIGABRT   6*   abort (generated by abort(3) routine)
> stackpointer=0xbfffebf0
>
> Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v1, native
> threads):
> "main" (TID:0x410e21e0, sys_thread_t:0x81436d8, state:R, native
> ID:0x400) prio=5: pending=java.lang.OutOfMemoryError
> Monitor Cache Dump:
> Registered Monitor Dump:
> utf8 hash table: 
> JNI pinning lock: 
> JNI global reference lock: 
> BinClass lock: 
> Class linking lock: 
> System class loader lock: 
> Code rewrite lock: 
> Heap lock: 
> Monitor cache lock: owner "main" (0x81436d8) 1 entry
> Thread queue lock: owner "main" (0x81436d8) 1 entry
> Dynamic loading lock: 
> Monitor registry: owner "main" (0x81436d8) 1 entry
>
> ==
>
> I believe I have set up my CLASSPATH well, well, it looks like this:
>
> 
>/usr/local/jdk/lib/dt.jar:/usr/local/jdk/src.jar:/usr/local/jdk/lib/tools.jar:/usr/local/jdk/jre/lib/rt.jar:/usr/local/jdk/jre/lib/i18n.jar
>
> I only download JDK1.2, no JRE as I think it is not necessary.
>
> Anyone knows what is the problem?
> _
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--

Grace and peace to you from God our Father
    and the Lord Jesus Christ,

David Guthrie




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



createImage/swing bug

1999-03-10 Thread David A. Green

First, let me express my gratitude and congratulations to the blackdown
porting team.  Great job!

Second, I have run into a bug/issue regarding the createImage(int, int)
function in java.awt.component.  I call this function to create an
off-screen image to be used for double-buffering.  I get the following
exception:

Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Raster IntegerInterleavedRaster:
width = 300 height = 200 #Bands = 3 #DataElements 1 xOff = 0 yOff = 0
dataOffset[0] 0 is incompatible with ColorModel DirectColorModel:
rmask=ff gmask=ff00 bmask=ff amask=0
at sun.awt.motif.MComponentPeer.createImage(Compiled Code)
at java.awt.Component.createImage(Compiled Code)
at ImageTest.update(Compiled Code)
at sun.awt.motif.MComponentPeer.handleEvent(Compiled Code)
at java.awt.Component.dispatchEventImpl(Compiled Code)
at java.awt.Container.dispatchEventImpl(Compiled Code)
at java.awt.Component.dispatchEvent(Compiled Code)
at java.awt.EventQueue.dispatchEvent(Compiled Code)
at java.awt.EventDispatchThread.run(Compiled Code)

I also get the following exception whenever I try to use a swing
component.  This particular one was from the SampleTree demo app
included in the jdk1.2:

Error loading L&F: java.lang.IllegalArgumentException: Raster
IntegerInterleavedRaster: width = 64 height = 64 #Bands = 3
#DataElements 1 xOff = 0 yOff = 0 dataOffset[0] 0 is incompatible with
ColorModel DirectColorModel: rmask=ff gmask=ff00 bmask=ff amask=0
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.get(Compiled Code)
at javax.swing.UIDefaults.get(Compiled Code)
at javax.swing.MultiUIDefaults.get(Compiled Code)
at javax.swing.UIDefaults.getUIClass(Compiled Code)
at javax.swing.UIDefaults.getUI(Compiled Code)
at javax.swing.UIManager.getUI(Compiled Code)
at javax.swing.JMenuBar.updateUI(Compiled Code)
at javax.swing.JMenuBar.(Compiled Code)
at SampleTree.constructMenuBar(Compiled Code)
at SampleTree.(Compiled Code)
at SampleTree.main(Compiled Code)

All of the code that generates these exceptions works just fine using
java 1.1 or java 1.2 on both the Win32 and Solaris versions of the jdk.
I am running Debian 2.0, with some libraries upgraded to 2.1 (slink).
My only thought is that I am running in 32bpp mode in X windows and that
may be causing problems with the offscreen images being incompatible
with the DirectColorModel used to decode the pixels (which assumes 24bpp
color and 8b of alpha).  Also, despite the exceptions, the image still
loads.  This, however, is not true for the swing exception, which kills
whichever thread is creating the swing component.  I have tried in 24bpp
mode, but I just get a jvm crash whenever it loads the image.  I have
attached my test program which creates a simple double-buffered panel
with an image painted on it.  Does anyone have any thoughts?  Is this a
bug in the java classes or in the jvm?  Should I report it to sun?
Thanks.

-Dave Green




import java.awt.*;
import java.awt.event.*;
import pong.common.ImageServer;
import honors.frame.ImagePanel;

public class ImageTest extends Panel {

  private Image myImage = null;
  private Image buffer = null;
  private Graphics pad = null;
  private boolean buffered = true;
   
  public ImageTest(String filename) {
try {
  int n = Integer.parseInt(filename);
  myImage = ImageServer.getImage(n);
} catch (Exception x) {
  myImage = Toolkit.getDefaultToolkit().getImage(filename);
}
  }
  
  public void update(Graphics g) {
if (buffered) {
  if (buffer == null) {
buffer = this.createImage(this.getSize().width, 
this.getSize().height);
pad = buffer.getGraphics();
}
paint(pad);
  g.drawImage(buffer, 0, 0, this);
} else {
  paint(g);
}
}
  
  public void paint(Graphics g) {
g.setColor(Color.gray);
g.fillRect(0, 0, 300, 200);
g.drawImage(myImage, 0, 0, this);
  }
  
  public Dimension getPreferredSize() {
return new Dimension(300, 200);
  }
  
  public static void main(String[] args) {
if (args.length < 1) {
  System.out.println("please provide a file name");
  return;
} 
Frame f = new Frame("ImageTest");
f.add(new ImageTest(args[0]));
f.addWindowListener( new WindowAdapter() {
  public void windowClosing (WindowEvent w) { System.exit(0); } });
f.pack();
f.setVisible(true);
f.repaint();
  }
  
}



Re: createImage/swing bug

1999-03-10 Thread David A. Green

Sorry, the attachment on that last one had a few references to other projects that I 
had been
testing .  Here's a clean version of the ame class (it still gets the same exception). 
 Thanks
again.

-Dave

"David A. Green" wrote:

> First, let me express my gratitude and congratulations to the blackdown
> porting team.  Great job!
>
> Second, I have run into a bug/issue regarding the createImage(int, int)
> function in java.awt.component.  I call this function to create an
> off-screen image to be used for double-buffering.  I get the following
> exception:
>
> Exception occurred during event dispatching:
> java.lang.IllegalArgumentException: Raster IntegerInterleavedRaster:
> width = 300 height = 200 #Bands = 3 #DataElements 1 xOff = 0 yOff = 0
> dataOffset[0] 0 is incompatible with ColorModel DirectColorModel:
> rmask=ff gmask=ff00 bmask=ff amask=0
> at sun.awt.motif.MComponentPeer.createImage(Compiled Code)
> at java.awt.Component.createImage(Compiled Code)
> at ImageTest.update(Compiled Code)
> at sun.awt.motif.MComponentPeer.handleEvent(Compiled Code)
> at java.awt.Component.dispatchEventImpl(Compiled Code)
> at java.awt.Container.dispatchEventImpl(Compiled Code)
> at java.awt.Component.dispatchEvent(Compiled Code)
> at java.awt.EventQueue.dispatchEvent(Compiled Code)
> at java.awt.EventDispatchThread.run(Compiled Code)
>
> I also get the following exception whenever I try to use a swing
> component.  This particular one was from the SampleTree demo app
> included in the jdk1.2:
>
> Error loading L&F: java.lang.IllegalArgumentException: Raster
> IntegerInterleavedRaster: width = 64 height = 64 #Bands = 3
> #DataElements 1 xOff = 0 yOff = 0 dataOffset[0] 0 is incompatible with
> ColorModel DirectColorModel: rmask=ff gmask=ff00 bmask=ff amask=0
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.get(Compiled Code)
> at javax.swing.UIDefaults.get(Compiled Code)
> at javax.swing.MultiUIDefaults.get(Compiled Code)
> at javax.swing.UIDefaults.getUIClass(Compiled Code)
> at javax.swing.UIDefaults.getUI(Compiled Code)
> at javax.swing.UIManager.getUI(Compiled Code)
> at javax.swing.JMenuBar.updateUI(Compiled Code)
> at javax.swing.JMenuBar.(Compiled Code)
> at SampleTree.constructMenuBar(Compiled Code)
> at SampleTree.(Compiled Code)
> at SampleTree.main(Compiled Code)
>
> All of the code that generates these exceptions works just fine using
> java 1.1 or java 1.2 on both the Win32 and Solaris versions of the jdk.
> I am running Debian 2.0, with some libraries upgraded to 2.1 (slink).
> My only thought is that I am running in 32bpp mode in X windows and that
> may be causing problems with the offscreen images being incompatible
> with the DirectColorModel used to decode the pixels (which assumes 24bpp
> color and 8b of alpha).  Also, despite the exceptions, the image still
> loads.  This, however, is not true for the swing exception, which kills
> whichever thread is creating the swing component.  I have tried in 24bpp
> mode, but I just get a jvm crash whenever it loads the image.  I have
> attached my test program which creates a simple double-buffered panel
> with an image painted on it.  Does anyone have any thoughts?  Is this a
> bug in the java classes or in the jvm?  Should I report it to sun?
> Thanks.
>
> -Dave Green
>
>   
> import java.awt.*;
> import java.awt.event.*;
> import pong.common.ImageServer;
> import honors.frame.ImagePanel;
>
> public class ImageTest extends Panel {
>
>   private Image myImage = null;
>   private Image buffer = null;
>   private Graphics pad = null;
>   private boolean buffered = true;
>
>   public ImageTest(String filename) {
> try {
>   int n = Integer.parseInt(filename);
>   myImage = ImageServer.getImage(n);
> } catch (Exception x) {
>   myImage = Toolkit.getDefaultToolkit().getImage(filename);
> }
>   }
>
>   public void update(Graphics g) {
> if (buffered) {
>   if (buffer == null) {
> buffer = this.createImage(this.getSize().width, 
>this.getSize().height);
> pad = buffer.getGraphics();
> }
> paint(pad);
>   g.drawImage(buffer, 0, 0, this);
> } else {
>   paint(g);
> }
> }
>
>   public void paint(Graphics g) {
> g.setColor(Color.gray);
> g.fillRect(0, 0, 300, 200);
> g.drawImage(myImage, 0, 0,

Re: createImage/swing bug

1999-03-10 Thread David A. Green

OK, switching to 16bpp fixed the problem.  The question remains, is this a
Linux-Java bug or a Sun-Java bug?  As in, should I report it to the blackdown
team or to Sun, or have you already reported it?  If the same problem occurs
displaying to a Linux box from a Solaris machine, then it seems that it is a
Sun bug, but the crashing under 24bpp mode sounds more like a Linux problem.
What do you think?

-Dave


"Alexander V. Konstantinou" wrote:

> It is a 32bit depth problem.  You will notice the same problem if you
> display from a Solaris machine to your Linux X-server.  I also get a
> seg fault when in 24bit deph.
>
> Solutions ?  I had to switch to 16bit depth.
>
> Alexander
>
> --
> 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]



Bug in JDK 1.1.6

1998-08-05 Thread Jonathan A. LaCour

Hey, I am a developer at VertiSoft Inc, and I seem to have discovered a
bug in your version of the linux JDK.  The bug appears to be in the AWT
listbox component.  I am attaching the classes/source for a JDBC based
application in a zip file.  You will need to get the SolidDriver for
java from www.solidtech.com and put it into your CLASSPATH.  The bug is
as follows:  run the application by typing java GroupMaint.  Then type
LAC into the textfield at the top of the application.  Press the "Faxnet
Search button".   Then double click on the name that appears in the
listbox just below the textfield (this is my name).  Following this,
attempt to add TESTGROUP1 and the other groups by selecting it in the
listbox on the left and then pressing the > button.  This *should* add
the group to the box on the right and remove it from the one on the
left.   This works on the windows JDK from Sun.  This program is *far*
from completion, so don't expect any other fuctions to work.  I hope
I am of help to you.

also, you will need to be connected to the internet for this to work!

Jonathan LaCour

 files.zip


Re: Socket connect timeout?

1998-08-12 Thread A. Craig West

This thread isn't exactly topical to Java-Linux, but I'll throw in my 2
bits to bring
it some closure, I hope.
It is true that Socket.setSoTimeout(int timeout) causes reads to throw
an
InterruptedIOException, but the problem he is trying to solve is that it
does NOT
cause connects to throw an exception, or timeout in any other way. It
will timeout
eventually, depending on the OS, but there is no control over it.
When I need to do this, I use another thread to check the timeout, and
if it has
expired, I close the Socket. That tends to work to unblock the thread
doing the connect.
Actually, there is an On-Topic question for you... Does closing the
Socket on the Linux
JDK port cause the connect statement to throw an Exception of some kind?
I've never
tried it in Linux...

Juergen Sonnauer wrote:
> 
> What about Socket.setSoTimeout(int timeout)? Should throw a
> InterruptedIOException after specified milliseconds on read method.
> 

-- 
Craig West Ph: (905) 821-8300   |  It's not a bug,
Pulse Microsystems Fx: (905) 821-7331   |  It's a feature...
2660 Meadowvale Blvd, Unit #10  | [EMAIL PROTECTED]
Mississauga, Ont., Canada L5N-6M6   | [EMAIL PROTECTED]



Re: Socket connect timeout?

1998-08-13 Thread A. Craig West

You are, of course, correct about this. I seem to have confused myself
in here
somewhere. I must have done something like this in C code or something.
Now THAT's
off-topic :-) I'm sure this close trick applied to something I've done
in Java, but
I wish I could remember what.
As far as actually solving your problem goes, I believe that
Thread.interrupt will
actually be useful for this kind of thing in 1.2. Of course, first we
need a 1.2 port
for Linux...

Per Widerlund wrote:

> How do you close the socket? The only way to connect is using the socket
> constructor.. ..so how can you have a reference to invoke close() on
> before
> the actual constructor is finished.

-- 
Craig West Ph: (905) 821-8300   |  It's not a bug,
Pulse Microsystems Fx: (905) 821-7331   |  It's a feature...
2660 Meadowvale Blvd, Unit #10  | [EMAIL PROTECTED]
Mississauga, Ont., Canada L5N-6M6   | [EMAIL PROTECTED]



Question concerning the 1.2 port

1999-03-18 Thread Samuel A Mullen

Blackdowners,

I've been checking out the site on a pretty regular basis to see if 1.2 is ready
for the big time and I just saw that the row for i386 is all green.  Does that
mean that it's out of the beta stages and ready???

If it's not ready yet, is there an expected date?

Thanks,
Samuel Mullen


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



JDK 1.2 pre-v1 problem

1999-03-23 Thread Alexei A. Petrenko

Hi

I have Slackware Linux 3.5 and tries to install jdk1.2 pre-v1.
First of all (when i've just unzip it) it says that it could not find some file.
I investigate that it wants some libs such as linc.so.6 and ld-linux.so.2 which there
is not on my system.
I've found them in glibc-2.0.6. When i've install them i got "Segmentation fault"
error. In README.linux you says that 2.0 is not very good and 2.1 is much better but
2.1 is deleted from gnu.org. So I've set LD_BIND_NOW environment variable (as
README.linux says) but no changes. I've tried both green and native threads.
Can you help with it?

SY, Alexei
--
St. Petersburg Java WorkShop team



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



Re: Red Hat: no GUI due to Debian lib refs

1999-03-25 Thread David A. Guthrie

Please the read the faq.  This is all covered in that.  You do have libc6.0,
its glibc2.0.7 on redhat.
Jason Proctor wrote:

> I'm running JDK 1.2 pre 1 on Red Hat 5.2, and although I haven't had any
> problems whatsoever with the base JDK (great job guys!) I've so far been
> locked out of any GUI type stuff by the dependence on what I assume to be
> Debian-specific library references - libstdc++libc6.0-1.so.2 for example. I
> couldn't find a libc6.0 on any GNU sites, just libc2.7.2.whatever to match
> the compiler.
>
> Is there a way of getting the GUI stuff to work on Red Hat?
>
> TIA
>
> J
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

--

Grace and peace to you from God our Father
and the Lord Jesus Christ,

David Guthrie




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



Fw: JDK 1.2 pre-v1 problem

1999-03-26 Thread Alexei A. Petrenko


- Original Message -
From: Alexei A. Petrenko <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 23 ÍÁÒÔÁ 1999 Ç. 12:46
Subject: JDK 1.2 pre-v1 problem


>Hi
>
>I have Slackware Linux 3.5 and tries to install jdk1.2 pre-v1.
>First of all (when i've just unzip it) it says that it could not find some file.
>I investigate that it wants some libs such as linc.so.6 and ld-linux.so.2 which
there
>is not on my system.
>I've found them in glibc-2.0.6. When i've install them i got "Segmentation
fault"
>error. In README.linux you says that 2.0 is not very good and 2.1 is much better but
>2.1 is deleted from gnu.org. So I've set LD_BIND_NOW environment variable (as
>README.linux says) but no changes. I've tried both green and native threads.
>Can you help with it?
>
>SY, Alexei
>--
>St. Petersburg Java WorkShop team
>
>



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



JDK 1.2 Patch

1999-04-01 Thread L. A. Guest

Hello, I was wondering whether I could have a diff for the linux port
of the JDK1.2 against the Solaris reference platform?

Thanks.


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



  1   2   >