Dialogs in applets

1998-12-02 Thread Doug Welzel

I saw a message a while back in the list about using modal dialogs in
Applets.  I just want to get a Dialog to work in an applet and could use
some advice.  The constructor for a Dialog wants a Frame.  How do I get a
Frame from a JApplet?

Some documentation I had suggested using the getParent() method on the
applet, but this is no good since it returns a Container.

Doug



Unix/Linux commands using Java

1998-12-02 Thread wdacruz

Hi!

I just finished studying Java on a Windows environment using VisualJ++ and
Visual Cafe for Windows.  Now, I want to start writing a java program in my
RH5.2 linux box using JDK1.17a, which I just installed.
I have some questions before I start: 
1. Can I call Unix/Linux commands from my java program?  If I can, where
can I get information/examples?
2. Can I combine Perl with Java?
3. Can I get javax.swing package in Linux?

I will appreciate any help I could get.

Sincerely,
Walter G. da Cruz

Linux and Java will save the world :-) | 408.294.4750
http://www.concentric.net/~Wdacruz/Index.shtml | [EMAIL PROTECTED]
___|___



RE: Unix/Linux commands using Java

1998-12-02 Thread Jaco Greeff

> 1. Can I call Unix/Linux commands from my java program?

Don't know about examples, but check out the Runtime core library.
(Specifically the Exec method.)

> 2. Can I combine Perl with Java?

Ummm... Not exactly sure what you want to do, but using the Exec method
(check above) you should be able to execute perl code.

> 3. Can I get javax.swing package in Linux?

Just download Swing-1.1beta3 for the sun website, add swingall.jar to your
classpath and away you go. I'm developing using Swing under both Linux and
Windows and things are running perfectly.

Greetings,

// Jaco 



Re: Unix/Linux commands using Java

1998-12-02 Thread Chris Sommers

Check out O'Reilly books, they have a Perl toolkit set which
includes some java-Perl classes on CD-ROM. I perused the set
briefly at a bookstore. I'm pretty sure the SW was all
public-domain. This was months ago, sorry I can't be more
specific. Someone else must know the details...

- chris

Jaco Greeff wrote:
> 
> > 1. Can I call Unix/Linux commands from my java program?
> 
> Don't know about examples, but check out the Runtime core library.
> (Specifically the Exec method.)
> 
> > 2. Can I combine Perl with Java?
> 
> Ummm... Not exactly sure what you want to do, but using the Exec method
> (check above) you should be able to execute perl code.
> 
> > 3. Can I get javax.swing package in Linux?
> 
> Just download Swing-1.1beta3 for the sun website, add swingall.jar to your
> classpath and away you go. I'm developing using Swing under both Linux and
> Windows and things are running perfectly.
> 
> Greetings,
> 
> // Jaco



Re: Time slicing or tricks to simulate it?

1998-12-02 Thread Bryce McKinlay

Download and install the native threads package, and enable it by
setting the THREADS_FLAG environment variable.

Green threads do "time-slice", just not very well ;-)

regards

  [ bryce ]

Barnet Wagman wrote:

> It appear that the the linux implementation of java does not do
> time-slicing (I'm running jdk 1.1.7v1a, using the tya jit). Is that
> correct?
> If so, does anyone have any suggestions for simulating time-slicing
> (other than throwing in a lot of yields())?
> My curent problem involves writing a gui that monitors a rather
> lengthly process.  I'd like to have the compute intensive method
> update a gui monitor as it proceeds.  However, the compute intensive
> method seems to consume all the time - the gui doesn't even get
> repainted until the compute intensive method finishes. Raising the
> priority of the gui (and putting in a few yields()) doesn't make any
> differences.
> Any suggestions would be appreciated.



Re: Dialogs in applets [finding the nearest frame]

1998-12-02 Thread peter . pilgrim

Stick in this in your main applet code:

static Component getAncestorFrame( Component comp )
{
while ( comp != null && !instanceof Frame )
comp = (Component)comp.getParent() );
return (comp);
}

Pete


__ Reply Separator _
Subject: Re: Dialogs in applets
Author:  welzel ([EMAIL PROTECTED]) at lon-mime
Date:02/12/98 05:23


I saw a message a while back in the list about using modal dialogs in 
Applets.  I just want to get a Dialog to work in an applet and could use 
some advice.  The constructor for a Dialog wants a Frame.  How do I get a 
Frame from a JApplet?
 
Some documentation I had suggested using the getParent() method on the 
applet, but this is no good since it returns a Container.
 
Doug



Re: Unix/Linux commands using Java

1998-12-02 Thread ceesg



2. Can I combine Perl with Java?

Dunnow about Perl. If you want scripting under Java and are not
afraid of learning another (very simple) language, I suggest you check
out JPython. It's a Python implementation in 100% Pure Java and integrates
really good with Java - you can inherit in Python from Java classes, call
Java directly from Python, etcetera. Recommended!
http://www.python.org/jpython (IIRC)
-- 
Cees de Groot <[EMAIL PROTECTED]>
Acriter Consulting  http://www.acriter.com
 


Re: Unix/Linux commands using Java

1998-12-02 Thread Roel Hofkens


>2. Can I combine Perl with Java?

Larry Wall has written a toolkit called JPL that can be used for Java/Perl
interfacing.  You can find more information in O'Reilly's Perl Resource kit
(UNIX Edition) in the Perl Utilities Guide.  There are a few chapters
online, see http://www.oreilly.com/catalog/prkunix/excerpt/UGtoc.html

Cheers,

Roel



JDK install

1998-12-02 Thread Jaimini Ram


hi,

I downloaded the jdk for linux  from blackdown.org and installed it.
But when i say 'java' in the jdk bin directory, it gives the message :

./../bin/i586/green_threads/java: can't load library 'libXpm.so.4

X windows is NOT installed, so is there any way to make it run without
requiring x libs ? 

Thanks in advance,
Jaimini.
.

Jaimini Ram
Dharma Computers
Bangalore
Res : 5476232   
Off : 5533622/4601
.
Office:- A place where you can relax after your strenuous
 homelife.




Re: JDK install

1998-12-02 Thread Ernst de Haan

Jaimini Ram wrote:

> X windows is NOT installed, so is there any way to make it run without
> requiring x libs ?


Try the FAQ @ java.blackdown.org.


-- 
 _
|  "Come to me all you who are weary and burdened, and I  |
|  will give you rest."   |
| |
| -- Jesus Christ (Mt. 11:28) |
|___ _|
| Ernst de Haan | email [EMAIL PROTECTED]|
| Java programmer   | web   members.xoom.com/znerd/   |
| Utrecht University| icq#  21871778  |
|___|_|



installation

1998-12-02 Thread paulmoody




Hi,
    I followed the install notes 
for jdk117 on redhat 51 and get the message CLASSPATH not set ??? when i try to 
use it ,
the notes say I dont have to do 
this.
TIA and regards.


Servlet with Chinese

1998-12-02 Thread Chu Zhurong

Hello everybody,

I'm just working Java Servlet with my Web on Redhat 5.1 & Win$ NT 4.
The problem is I can't pass my Chinese characters to my Servlets via
GET or PUT method, when I use getParameter(somename) to get somename's
value, it simply converts any charactor >=0x80 with 0x3f ('?'). The same
thing is also happened with jdbc.
I know it's caused by InputStream. But I have no idea to solve it. Any
one can help me?


Thanks,
 Chu  mailto:[EMAIL PROTECTED]




Re: Time slicing or tricks to simulate it?

1998-12-02 Thread Rob Nugent

You might want to check that you are not doing your compute intensive
task
on the event thread, as this is the thread that does the painting of
components.

I spin off a thread for my (very) compute intensive task, set its
priority low
and it works just fine on green threads.

Rob

Barnet Wagman wrote:

> It appear that the the linux implementation of java does not do
> time-slicing (I'm running jdk 1.1.7v1a, using the tya jit). Is that
> correct?
> If so, does anyone have any suggestions for simulating time-slicing
> (other than throwing in a lot of yields())?
> My curent problem involves writing a gui that monitors a rather
> lengthly process.  I'd like to have the compute intensive method
> update a gui monitor as it proceeds.  However, the compute intensive
> method seems to consume all the time - the gui doesn't even get
> repainted until the compute intensive method finishes. Raising the
> priority of the gui (and putting in a few yields()) doesn't make any
> differences.
> Any suggestions would be appreciated.
> ---
> Barnet Wagman
> [EMAIL PROTECTED]
> --



--


Rob Nugent
Development Manager
UniKix Technologies Europe
[EMAIL PROTECTED]
Tel: +44 (0) 1489 585503
Fax: +44 (0) 1489 881363




The bug is still there (and problems with the 1.1.7-v1a) (Re: A bug in the parse me

1998-12-02 Thread Kontorotsui


On 26-Nov-98 Juergen Kreileder wrote:

[About parse method]

>Get 1.1.7-v1a and try again, 1.1.7 has some bugfixes for the parse methods.

I got the 1.1.7-v1a and the bug is still there. The blanks are not skipped,
while in the docs it is clearly written that they should be.

>The parse-methods are 100% pure Java, so if 1.1.5 Linux and 1.2 Solaris
>show different behavior it doesn't have to be a Linux bug, but it means
>that there have been some changes to the java code between 1.1.5 and 1.2.

Yes, probably it's not a problem with the Linux port, but is a fact that
the behaviour is different from what I read in the docs.

Should I do a bug report to the Java developers?


Anyway, here is a real Linux port JDK 1.1.7-v1a problem.

I get this message:

/usr/local/java/bin/../bin/checkVersions: /tmp/ldd.out.889: Permission denied

every time I run java and javac. The number seems to be the PID and this
happens with my standard user and the superuser.
Beside the annoying message, anything works fine.

There seems to be something wrong somewhere in the checkVersions script. How do
I fix it?

---
Andrea "Kontorotsui" Controzzi - MALE Student of Computer Science at 
University of Pisa  -  Italy  -  E-mail: [EMAIL PROTECTED]
My home page: http://www.cli.di.unipi.it/~controzz/intro.html

Founder and Admiral of Hoshi no Senshi (italian Leiji Matsumoto's fan group).
Creator of It.Arti.Cartoni (italian anime newsgroup) and proud member of...

+-+
|.  * .   |
|   .__ . .   |
|oq  |po   _ _|
|  /  #==>>>==#,-' (_)\   |
|  |  ,-|~\\   ///_ ,()  ,_}  |
|  |  |/|~]]] /// ,-~'  .,~   /   \|  .   |
|  |\_|_|_\_\~~~~'   \   (/|. |
| ./~ \___/   [m] \   \__//   |
| _bo..__ //   `-,.~~ |
|  _-~ 0o.__( .   |
| \  o  . |
|  .  (_)00   |
|. \~~~*,,,* ~00  |
|~0 . |
|   ~~~---~~  |
|   .*|
+-+
| An e-mail network of Space Cruiser Yamato and   | 
|  StarBlazers Fans   |
+-+



https

1998-12-02 Thread Tar . Zoltan


Hello

I'm working on a project which needs to send information
such as credit card number to a web server, I'm thinking
of using protocol https, does java support https?

If it does, how?

Zoltan TAR



Re: https

1998-12-02 Thread Vincent Trussart

[EMAIL PROTECTED] wrote:

> Hello
>
> I'm working on a project which needs to send information
> such as credit card number to a web server, I'm thinking
> of using protocol https, does java support https?
>
> If it does, how?
>
> Zoltan TAR

 If I remember correctly, if an applet is loaded through https,
any socket opened by this applet will use https by default.

I could be wrong...


--
Vincent Trussart
[EMAIL PROTECTED]
Universite de Montreal, Quebec





Re: Unix/Linux commands using Java

1998-12-02 Thread Paul Ho

At 11:12 PM -0800 11/30/98, <[EMAIL PROTECTED]> wrote:
>2. Can I combine Perl with Java?


The latest Perl 5.005_54 come with JPL


Cheers,
Paul





Mylex DAC960PJ drivers

1998-12-02 Thread Stefano Gasparini


Hello,

i'm trying to install Linux 5.2
on a UNISYS Aquanta QS/2U Server, the problem is:
where i could find the driver for a MILEX DAC960PJ pci disk array
controller?

Thank's in advance.

Steve



Re: installation

1998-12-02 Thread Juergen Kreileder

> paulmoody  writes:

paulmoody> Hi,
paulmoody> I followed the install notes for jdk117 on redhat
paulmoody> 51 and get the message CLASSPATH not set ??? when i
paulmoody> try to use it , the notes say I dont
paulmoody> have to do this.
paulmoody> TIA and regards.

The error message is from kaffe not from the JDK. Deinstall kaffe
and the JDK will work. 


Juergen



Re: installation

1998-12-02 Thread Levente Farkas

> paulmoody wrote:
> 
> Hi,
> I followed the install notes for jdk117 on redhat 51 and get the message
> CLASSPATH not set ??? when i try to use it ,
> the notes say I dont have to do this.

logout and login :-)
and read the faq before ask.

 -- Levente

 --
 E-Mail:   Levente Farkas <[EMAIL PROTECTED]>
 Homepage: http://www.inf.u-szeged.hu/~lfarkas/
 PGP public key & Geek Code: [EMAIL PROTECTED]
 --



Re: help

1998-12-02 Thread Antonella Bizzotto







I need to translate some UNIX code in a Java corresponding code. Do
you know if there are java classes of Unix commands like 

uniq -c
sort
join 
...etc.
 
already made and available?
Thank you very much, 
 
Antonella, Rome (Italy) 

_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



RE: https

1998-12-02 Thread Nguyen, Tram N.

Yes, Java does support https . All you need to do is instead of setting your
URL to http://www.abc.com/something.html , you set that to
https://www.abc.com/something.html (provided you enable your virtual
directory).

regards,

Tram Nguyen N.
Science Application International Corporation
http://www.saic.com


> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, December 02, 1998 7:02 AM
> To:   [EMAIL PROTECTED]
> Subject:  https
> 
> 
> Hello
> 
> I'm working on a project which needs to send information
> such as credit card number to a web server, I'm thinking
> of using protocol https, does java support https?
> 
> If it does, how?
> 
>   Zoltan TAR



Re: installation

1998-12-02 Thread wdacruz

This is what I did:
1. Deinstall Kaffe.
2. mkdir /java  // of course, you have to specify your directory
3. chown wdacruz /java
4. chgrp wdacruz /java
5. su wdacruz
6. tar xvzf jdk_1_1_7-v1a-glibc-x86_tar.gz
7. tar xvzf jdk_1_1_7-v1a-glibc-x86-native_tar.gz
8. My java directory looks like this:
...
drwxr-s-x 5 wdacruz wdacruz 1024 Nov 29 18:43 jdk117_v1a
...
9. cd /home/wdacruz
10. vi .bashrc
11. add line at the end: export PATH=/java/jdk117_v1a/bin:$PATH
12. Save file, exit, and login again
13. type: 'which java' You should get: /java/jdk117_v1a/bin/java
14. type: 'java -version' You should get: java version "1.1.7"

I hope this could help.

Regards, Walter

At 11:04 PM 12/3/98 +0930, you wrote:
>Hi, I followed the install notes  for jdk117 on redhat 51 and get
>the message CLASSPATH not set ??? when i try to  use it , the notes say I
>dont have to do  this. TIA and regards. 
Linux and Java will save the world :-) | 408.294.4750
http://www.concentric.net/~Wdacruz/Index.shtml | [EMAIL PROTECTED]
___|___



Re: JDK install

1998-12-02 Thread John Summerfield

On Wed, 2 Dec 1998, Jaimini Ram wrote:

> 
> hi,
> 
> I downloaded the jdk for linux  from blackdown.org and installed it.
> But when i say 'java' in the jdk bin directory, it gives the message :
> 
> ./../bin/i586/green_threads/java: can't load library 'libXpm.so.4
> 
> X windows is NOT installed, so is there any way to make it run without
> requiring x libs ? 
[summer@possum jserv0.9.11]$ locate README | grep jdk
then see
Java Virtual Machine variations
---

There are three versions of the Java interpreter that are shipped with this
release.  The default one depends on having X libraries present on your system,
and has Motif statically linked in (so it does not require Motif to be
installed on your machine).  One other version has no dependency on X, and


-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.



Re: The bug is still there (and problems with the 1.1.7-v1a) (Re:A bug in the parse me

1998-12-02 Thread John Summerfield

On Tue, 1 Dec 1998, Kontorotsui wrote:

> 
> On 26-Nov-98 Juergen Kreileder wrote:
> 
> [About parse method]
> 
> >Get 1.1.7-v1a and try again, 1.1.7 has some bugfixes for the parse methods.
> 
> I got the 1.1.7-v1a and the bug is still there. The blanks are not skipped,
> while in the docs it is clearly written that they should be.
> 
> >The parse-methods are 100% pure Java, so if 1.1.5 Linux and 1.2 Solaris
> >show different behavior it doesn't have to be a Linux bug, but it means
> >that there have been some changes to the java code between 1.1.5 and 1.2.
> 
> Yes, probably it's not a problem with the Linux port, but is a fact that
> the behaviour is different from what I read in the docs.
> 
> Should I do a bug report to the Java developers?

That is a good idea.
It would be sensible first to verify it in an applet in Netscape (which
does not use the Blackdown port).
> 
> 
> Anyway, here is a real Linux port JDK 1.1.7-v1a problem.
> 
> I get this message:
> 
> /usr/local/java/bin/../bin/checkVersions: /tmp/ldd.out.889: Permission denied

This is more usually a permissions problem, though it's odd that it happens
with root.

Can you, from the commandline, execute the command
ls >/tmp/Clancy.was.here

Does this show anything odd?
ls -dl /tmp
For reference, I get this:
[summer@emu summer]$ ls -dl /tmp -d
drwxrwxrwt   8 root root 3072 Dec  3 07:06 /tmp

You can bypass this by running
export JDK_NO_VERS_CHECK=don\'tbother
or the csh equivalent.
> 
> every time I run java and javac. The number seems to be the PID and this
> happens with my standard user and the superuser.
> Beside the annoying message, anything works fine.
> 

-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.