Re: First time user of jdk - cannot run Javac

1999-08-14 Thread Hermon

Thanks for your answer.   I have scanned my whole HDD, and javac is only under the jdk 
directory. I haven't
found kaffe either.

Hermon

Michael Sinz wrote:

> On Fri, 13 Aug 1999 21:17:21 +0200, Hermon wrote:
>
> >Hello,
> >
> >I have installed jdk-1.1.7_v1a glibc on a RedHat 5.2 Linux i386 , with 2.2.10 
>kernel (rpm installation).
> >
> >When trying to run javac, I get the following message :
> >"unable to initialize threads: cannot find class java/lang/Thread".
>
> This error sounds just like what you get when you have kaffe installed
> in the "RedHat" way.  That is, /usr/bin/javac is a simple script that
> tries to run via kaffe...
>
> Either remove kaffe or put the /usr/local/jdk117_v1a/bin directory
> first in your path.
>
> You can verify this by typing:
>
> /usr/local/jdk117_v1a/bin/javac
>
> which should show you the usage information.
>
> --
> Michael Sinz -- Director of Research & Development, NextBus Inc.
> mailto:[EMAIL PROTECTED] - http://www.nextbus.com
> My place on the web ---> http://www.users.fast.net/~michael_sinz



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



RE: Windows'98 / Linux disparity.

1999-08-14 Thread Aravind Selvaraje

Did you try with the tya jit ?

Is the win98 running with the jit enabled or not ?

I would also try the IBM JDK on Linux for speed comparisons. It is quite
fast.

-- Aravind


> -Original Message-
> From: Amlan Saha [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 13 August 1999 14:18
> To: [EMAIL PROTECTED]
> Subject: Windows'98 / Linux disparity.
>
>
> Hi people
>
> I tried the Java benchmark "Caffeine Mark 3.0" on both a Windows'98
> machine and a Linux machine running the JDK 1.1.7 from SUN.  The
> configuration for the Linux machine was RedHat 6.0 distribution,
> 2.2.6 kernel and running JDK 1.1.7.  Both the machines are Pentium
> II-300.
>
> The results are as follows -
>
>   Windows'98  Linux 2.2.6
>   ==  ===
> Sieve   4710  552
> Loop   18308  440
> Logic  67904  503
> String  4945  910
> Float   7566  439
> Method  7434  501
> Graphics 445  964
> Image177  532
> Dialog   180  122
>
> I am at a loss to understand as to why Linux fared so BADLY in
> comparison to Windows and also why graphics under Linux is so much
> better than under Windows.
>
> Has anybody done anything similar and any explanations ?
>
> -amlan.
>
> --
> Amlan Saha   [EMAIL PROTECTED]
>   [EMAIL PROTECTED]
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
>


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



Re: First time user of jdk - cannot run Javac

1999-08-14 Thread Hermon

Hello,


Thanks for taking time to answer me.

I did include classes.zip in the CLASSPATH, and to make sure I did,
after reading
your message, I tried to following command "unzip -l $CLASSPATH" and I
did get the
list of the content of classes.zip.  Even when I unset CLASSPATH, the
same error
occurs...  It looks like that the program is unable to read into
classes.zip.

I am not, yet, a java programmer.  I am also a relatively new user of
Linux (since
last january).  As a lot of programmers, I suppose, I am more familiar
with Redmond
(or Borland) tools : C++, Pascal; etc.

Here is a copy of the message I submitted at first to
[EMAIL PROTECTED]
:

 
Hello,

I have installed jdk-1.1.7_v1a glibc on a RedHat 5.2 Linux i386 , with
2.2.10
kernel (rpm installation).

When trying to run javac, I get the following message :
"unable to initialize threads: cannot find class java/lang/Thread".

The classes.zip file is installed in the lib directory, and the
java/lang/Thread.class exists in the file.

I have both tried without any  java system variables initialised
(verified with the
set command), and with the JAVA_HOME,  and CLASSPATH set as explained in
the
documentation - same error

The install directory is /usr/local/jdk117_v1a..

I have dowloaded jre117_v1a also to use with StarOffice 5.1.  It seems
that I have
a similar problem with the java/lang/Thread, I get the following message
:

"mac/java_lang_String.c:738: java_lang_String_intern:
 assertion '!"Forgot to call use_java_lang_String(env) before
calling
 method intern ()Ljava/lang/String;' failed"

when trying to run the Java Console. Strangely enough as root, the Java
Console
under StarOffice works, as well as the java applets.   StarDivision
support was
unable to explain that,  maybe because of some obscure configuration
problem of my
system.

(By the way, I have tried, unsucessfully, to run javac as root!!!)

In the mean time, I cannot use jdk,  I would be glad to get some help :
does
anybody have an idea of the cause of my problem ?  Would be glad to get
it working
:-)

Thanx

Hermon



Regards,

Hermon

[EMAIL PROTECTED] wrote:

> > Thanx, but it was set, as I explained in my mail (unless you didn't get a full
> > copy...
>
> You said you'd set it according to the documentation, but are you sure you
> haven't forgotten to include classes.zip?
>
> I don't know if you're a Java programmer or not, but the error message you
> are getting means that, as far as the JVM is concerned, java.lang.Thread
> doesn't exist. That indicated that the .jar/.zip/directory containing that
> class is not in the CLASSPATH. And in this case, the archive in question
> is classes.ip. I'd look for typos in the CLASSPATH.
>
> Or better yet; unset the CLASSPATH all together ("unset CLASSPATH" if you're
> in bash), and then run javac again. Do you get the same error message? If
> not, I am 99.9% certain that there's something wrong with the CLASSPATH.
>
> As I said, for the JVM to work you have to
>
> * run it with no CLASSPATH set (it's *not* sufficient to set the CLASSPATH
> to "" - it must not *exist*).
>
>---OR---
>
> * include classes.zip in the CLASSPATH *aswell* as any other archive you
> needed.
>
> --
> / Peter Schuller
>
> PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
> Key retrival: Send an E-Mail to [EMAIL PROTECTED]
> E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
>
>   
>Part 1.2Type: application/pgp-signature



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



Frame Layout

1999-08-14 Thread Sebastien Vidon

Hi everybody

I'm trying to get rid of the borders of any Frame or JFrame. I've tried
to find a method
to set its Insets, but unsuccessfully. Does anyone know a trick?
Thanks

Sebastien


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



Re: Swing doesnt seem to work with 32bit X11 colour depth.

1999-08-14 Thread Nathan Meyers

Mark O'Donohue wrote:
> 
> Hi
> 
> I changed my X11 colour depth to 32bit and now swing doesn't run.  I get
> the following error message.

JDK1.2 Graphics2D rendering works with depths and models that tend to be
found on Solaris; XFree86 confuses it at many of high-depth settings it
offers.

Nathan Meyers
[EMAIL PROTECTED]


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



Announcing: Xwinwrap - a tool to run Java programs in private X colormaps and visuals

1999-08-14 Thread Nathan Meyers

Announcing: Xwinwrap

This is a tool I wrote out of frustration with the JDK's inability to
run in a non-default visual or to install a private colormap. Using
Xwinwrap, you can do a couple of useful things that are currently
unavailable:

1) Install a private colormap... like the "netscape -install" option. No
more running out of colors because the default colormap is crowded.

2) Use a non-default X visual. If your default is 8-bit PseudoColor and
you want 8-bit GrayScale, Xwinwrap will let you do it... it lets you
choose any visual offered by the X server. When the next release of
XFree86 offers multiple depths, you can use this feature to run Java in
a visual it can handle even if the default visual is one Java can't
handle (the cause of those annoying "incompatible with ColorModel"
messages).

Xwinwrap is not at all Java-specific; it'll work with any X client. But
I wrote it to address my frustrations with Java, and suspect some of you
will find it useful. It does its thing by implementing a thin shared
library to "wrap" around an X client with the LD_PRELOAD capability.

To obtain it, visit http://www.teleport.com/~nmeyers/FreeWare/ and look
for the section on Xwinwrap. You'll also find a pointer to a README that
gives more detail than I've given here.

Nathan Meyers
[EMAIL PROTECTED]


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



Re: netscape 4.61, Java, Redhat 6.0

1999-08-14 Thread James H. Cloos Jr.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> "Nelson" == Nelson Minar <[EMAIL PROTECTED]> writes:

Nelson> Could it really just be me? I'm running pretty basic Netscape,
Nelson> about the only change I made was running Fortify over the
Nelson> browser. Trivial applets like
Nelson> 
http://nelson.www.media.mit.edu/people/nelson/research/mas964/ps2/CircleRepetition.html
Nelson> are killing it. Try it yourself - run the applet, click and
Nelson> hold in the window and drag around awhile. (Enjoy the pretty
Nelson> circles). For me, after about 15 seconds of this, Netscape
Nelson> locks up solid.

I gave it about 5 minutes w/o a crash.  I'm running RH6.0 on this box
and have the netscape-{communicator,navigator,common}-4.6-1.i386.rpm
RPMs installed and fortified.  I'm also running XFree86_3DFX-SVGA-3.3.3-5
as the X server, have all the fonts in the fontserver's font path, and
- -- this might be it -- do not have CLASSPATH set.

Try adding an `unset CLASSPATH' to your netscape wrapper script.
Might help.

Or not.

But it is worth (IMO) a test.

- -JimC
- -- 
James H. Cloos, Jr.   1024D/ED7DAEA6 
<[EMAIL PROTECTED]>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Save Trees:  Get E-Gold! 
-BEGIN PGP SIGNATURE-
Version: GnuPG v0.9.10 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3tjd4mXqfF+19rqYRAra2AJwJg8ihud2djqg17E4fk0T1NhlVPgCfc5/b
Chrb7Zt7qgoIYttMLop3IKc=
=4onf
-END PGP SIGNATURE-


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



Re: netscape 4.61, Java, Redhat 6.0

1999-08-14 Thread James H. Cloos Jr.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> "Zdenek" == Zdenek Kabelac <[EMAIL PROTECTED]> writes:

Zdenek> There is no problem to have a stable version of netscape in
Zdenek> any distribution - you just have to use older libc5 version.

No.  RH's RPM (as updated) for 6.0 works in 6.0 (at least if
fortified).  At least if CLASSPATH is not set

And:

# ldd /usr/lib/netscape/netscape-communicator
/lib/libNoVersion.so.1 => /lib/libNoVersion.so.1 (0x40014000)
libBrokenLocale.so.1 => /lib/libBrokenLocale.so.1 (0x4001c000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4001e000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4006b000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40074000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4008b000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4009e000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400ab000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400b7000)
libdl.so.2 => /lib/libdl.so.2 (0x4015b000)
libstdc++.so.2.8 => /usr/lib/libstdc++.so.2.8 (0x4015f000)
libm.so.6 => /lib/libm.so.6 (0x401a)
libc.so.6 => /lib/libc.so.6 (0x401bc000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

NB that I used to have the tight loop problem w/ my previous box
(mostly RH5.2, updated for 2.1 and then 2.2/2.3 kernels).  That box
had certain RPMs (eg jfc-1.1-3 and jgl-3.0.0-1) installed that added
scripts in /etc/profile.d/ which set the CLASSPATH.  I suspect that
is where the problems were.

As a side note, I also had significant problems w/ netscape when I was
running an X server hacked to support TT fonts natively (as opposed to
the current std setup under RH using the std servers and a fontserver
hacked to support TT).  Under that setup, the second time I used
netscape's Close option to close a window, the process seg faulted.

BTW, do note that you get a bus error from netscape because the signal
handler issues one when it receives things like seg fault signals, etc.
Try running it under gdb for fun

- -JimC
- -- 
James H. Cloos, Jr.   1024D/ED7DAEA6 
<[EMAIL PROTECTED]>  E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Save Trees:  Get E-Gold! 

-BEGIN PGP SIGNATURE-
Version: GnuPG v0.9.10 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE3tjofmXqfF+19rqYRAvN2AJ95OeU+05VCqwn9On9MJuHOU8oVwwCcDNsl
Z4RZr/F9/uU82ijkFN33BCA=
=WBGK
-END PGP SIGNATURE-


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