Re: Cannot convert string "xxxx" to type VirtualBinding

2001-07-28 Thread Jesus M. Salvo Jr.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


What are the differences? ( Are they documented somewhere? )
How do you get rid of the warning messages?


On Sat, 28 Jul 2001 12:55, Juergen Kreileder wrote:
> Jesus M. Salvo, Jr. <[EMAIL PROTECTED]> writes:
> > Ever since I converted my bash prompt to something other than the
> > default, I have been getting the message indicated in the subject
> > line when I run Swing apps. ( JDK 1.3.1 Sun or Blackdown )
>
> [...]
>
> > Warning: Cannot convert string "Escape,_Key_Cancel" to type
> > VirtualBinding
> >
> > Warning: Cannot convert string "Home,_Key_Begin" to type
> > Warning: Cannot convert string "VirtualBinding F1,_Key_Help" to
> > Warning: Cannot convert string "type VirtualBinding
> > Warning: Cannot convert string "ShiftF10,_Key_Menu" to type
>
> This is not related to the bash prompt.  These warnings are the result
> of small differences between the Motif versions used by Blackdown and
> Sun.  Only Sun's version emits these warnings on some systems.
>
>
> Juergen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjtia1QACgkQAvd5SY4qWYzXgQCdHz9xiGmfm6QfoNNZoCg8L0yH
qm8AnRPWw3sc6RgoH8wZOiJHS2fuLwlM
=tOTe
-END PGP SIGNATURE-


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




Running an executable from Java

2001-07-28 Thread bhuvaneswari thirumoorthy

hi,
I am using JDK1.2.2 with RedHat Linux6.2.2. I would
like to run an executable from a java program.For eg:
I am using the following command:

Runtime r=Runtime.getRuntime();
r.exec("sh /home/test/./javacon");

For this code, no error is coming. And while running,
it ends up with a silence. Nothing happens. Please
help me. Thanks in advance.

=
"My grandfather once told me that there are two kinds of people: those who work and 
those who take the credit.He told me to try to be in the first group;there was less 
competition there"
-Indira Gandhi

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


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




Re: Running an executable from Java

2001-07-28 Thread Nathan Meyers

On Sat, Jul 28, 2001 at 05:57:25AM -0700, bhuvaneswari thirumoorthy wrote:
> hi,
> I am using JDK1.2.2 with RedHat Linux6.2.2. I would
> like to run an executable from a java program.For eg:
> I am using the following command:
> 
> Runtime r=Runtime.getRuntime();
> r.exec("sh /home/test/./javacon");
> 
> For this code, no error is coming. And while running,
> it ends up with a silence. Nothing happens. Please
> help me. Thanks in advance.

The output and error output are sent to pipes that you have to read:

Process p = r.exec("sh /home/test/./javacon");
InputStream is = p.getInputStream();
InputStream eis = p.getErrorStream();

You need to read the is and eis streams to get the standard and error
output from the process.

Nathan

> 
> =
> "My grandfather once told me that there are two kinds of people: those who work and 
>those who take the credit.He told me to try to be in the first group;there was less 
>competition there"
> -Indira Gandhi
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> 
> --
> 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: J2SE 1.4 & Linux & i686/green_threads

2001-07-28 Thread Danny

Thanks for the fix Juergen.  Java was being run from JDK 1.1.8 even though
JAVA_HOME was set to the J2SE 1.4 home directory.
Danny

- Original Message -
From: "Juergen Kreileder" <[EMAIL PROTECTED]>
To: "Danny" <[EMAIL PROTECTED]>
Cc: "Greg Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 1:02 PM
Subject: Re: J2SE 1.4 & Linux & i686/green_threads


> [EMAIL PROTECTED] writes:
>
> > I tried installing JDK 1.3.1 for Linux from Sun, but it does not
> > have the bin/i686 directory either.  It only contains the bin/i386
> > with both the green_threads and native_threads directory.  Does
> > anyone know where to get the JDK 1.3.1 bin/i686 directory?  I've
> > tried symbolic links from bin/i686 to bin/i386 but that did not
> > work.  That led to problems with loading libhpi.so which I added to
> > my path environment variable which only led to more problems.
>
> There's no need for a i686 directory, all x86 architectures use the
> i386 directory.  Applications should use j2sdk1.3.1/bin/java and not
> j2se1.3.1/bin/i386/{green,native}_threads/java.
>
> If you get an error like "java was not found in
> /usr/local/j2sdk1.3.1/bin/i686/native_threads/java", then there is
> something wrong with your setup.
> E.g. you'll get this error when JAVA_HOME points to 1.3.1 but 'java' is
> from 1.1.8:
> % JAVA_HOME=~/testbed/j2sdk1.3.1 /usr/lib/jdk1.1/bin/java
> java was not found in
/home/jk/testbed/j2sdk1.3.1/bin/i686/native_threads/java
>
>
> Juergen
>
> --
> Juergen Kreileder, Blackdown Java-Linux Team
> http://www.blackdown.org/java-linux.html
> Run Java 2 SE v1.3.1 on your iPAQ:
> http://www.handhelds.org/pipermail/ipaq/2001-June/007221.html
>
>
> --
> 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]