Java Executable?

1998-09-11 Thread horea feier

Hi,
I'm a Linux newbie with a Redhat 5.1 who would really need some help.I
downloaded the day before all the JDK 1.1.6 -v2 for  glibc Linux
directory from a mirror,together with a file jdk1_1_6-v2diffs.gz for
glibc (from the "common" directory)I unziped & untarred the files
without problems,resulting in 4 directories jdk1.1.6,jre1.1.6I also
downloaded JavaICQ from Mirabilis,but when trying to install it (after
setting the path to the Jdk home directory) I get the message "JAVA_EXEC
not found".I looked in the Jdk home directory and there was a file
"java",but it is not executable!? The only files there that are
executable are *java-wrapper,*java-rmi.cgi,and *jre.I have to add that I
didn't unzip the file jdk1_1_6-v2diffs.gz and I didn't run it because in
the jdk 1.1.6 README I wasn't told toPlease tell me what's wrong.

Many thanks in advance,Horea Feier.




Thread dump?

1998-09-11 Thread Michael Thome


I seem to have forgotten the incantation to get the VM to print a
"full thread dump" on demand - I had thought it was C-\, but it just
core dumps.

I'm currently using the glibc 116v3a.

Thanks,
-mik
-- 
Michael Thome ([EMAIL PROTECTED])



UI java-Unix

1998-09-11 Thread Laura

I must to interface a Unix script with java application.
I try with

import java.io.*;
...
try{
String[] com_ps=
{"/bin/sh", "-c", "/bin/chmod 755 esegue", "./esegue"};
Process p = Runtime.getRuntime().exec(com_ps);
}catch (IOException e0){
 System.err.println(e0);
 System.exit(0);
}
}
}

My script (esegue) has unix comand to create a ps file and show it.


Does anybody know what kind of problem is? 

Thank you all!



SWING INSTALL

1998-09-11 Thread Syed Mubin



__
 Syed Mubeen  National Centre For Biological Sciences,
 [EMAIL PROTECTED]TIFR Centre, P.B #1234,
 80-334-5615 or 4062 or 3035  IISc Campus,  
  Bangalore - 560 012. INDIA.
___
 


Hi Everybody there,


At present iam running JDK 1.1.5 on Red hat Linux 5.1 which works
fine ,recently i downloaded Swing but iam unable to install its giving

when i tried to run such a simple program given below
--
import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
import java.applet.*;


public class SimpleSwing extends Applet{

JRadioButton metalButton, motifButton, windowsButton;
JButton button;

public void init()
{
JButton button =  new JButton("Hello, world");
JRadioButton metalButton = new JRadioButton(metal);
 add(button);
 add(metalButton);
validate();
 button.show();
 metalButton.show();
}
}

Its showing following errors
-

SimpleSwing.java:3: Package com.sun.java.swing not found in import.
import com.sun.java.swing.*;
   ^
1 error


Anybody please help me where is the error,also tell me in step by
installing of Swing..


Bye.


Syed Mubeen




JRE port question?

1998-09-11 Thread Jeremy Audino

Where can I obtain a copy of the ported JRE or instructions on how to
convert the ported JDK down to JRE?

-Jeremy

Steve Byrne wrote:
> 
> Ed Huott writes:
>  > The license states that binaries derived from the licensed (Sun's)
>  > source code cannot be distributed for a fee or with any product for
>  > which a fee is charged. It also states that the Licensed Software
cannot
>  > be used "for commercial or productive" use without getting a
commercial
>  > license from Sun.
>  >
>  > On the other hand, permission is given to distribute derived binaries
>  > freely as long as it is done so "subject to a license agreement
>  > containing terms and conditions at least as protective of Sun as
those
>  > included in the binary code license used by Sun for internet
distribuion
>  > of the Java binaries."  The license also expressly gives the right to
>  > "create ports."
>  >
>  > Taken together, does this mean the following are disallowed without
>  > first getting a commercial license from Sun:
> 
> First, I'm not a lawyer.  I can only say that I know of Sun's intentions
at the
> time I was involved in drafting this wording:
> 
>  > 1) Distributing a Java product with a JRE produced by the Java-Linux
>  > porting project?
> 
> Sun's intention (as I believe it to be) is that you can ship JRE for
free no
> matter what.  It's the runtime environment, and they want it to be as
> ubiquitous as possible.
> 
>  > 2) Running a commercial web server with servlets running on a JVM
from
>  > the Java-Linux JDK or JRE?
> 
> JRE -- definitely no problem.  If the Web server contained JDK as it was
> shipped, then it must have a commercial license from Sun.  If you added
it
> after the fact, and you're not redistributing it, I think it's ok, but
that's
> just my understanding.
> 
>  > 3) Commercial Java product development using the Java-Linux JDK?
> 
> You can develop commercial products with the JDK -- you just can't SHIP
the JDK
> for free if you're charging money for your product.  The sense is that
if you
> are going to make money off of what you do by including the JDK, you owe
Sun
> some portion of that for the use of the JDK.
> 
>  > I'm assuming the above restrictions do not actually exist based on
the
>  > way the Java-Linux JDK seems to be being distributed and used.  The
>  > license that comes with the Java-Linux (binary) JDK distribution
seems
>  > to be the same one that Sun distributes with its JDKs.  I'm just
hoping
>  > that someone on this list can definitively state that this assumption
is
>  > correct.
> 
> We're distributing it for free, so no royalties are needed.  The license
*IS*
> the one that Sun ships with JDKS -- we don't change that stuff when we
do
> ports.
> 
> Steve

-- 
Jeremy F. Audino
Software Engineer
Codonics Inc.
17991 Englewood Drive
Middleburg Heights, Ohio 44130 USA
(440) 243-1198 ext. 265
[EMAIL PROTECTED]



JDK

1998-09-11 Thread Richard W.E. Furse

Just a note in case no one has told you for a while--the work you do is great.

-- Richard



Java Non-Commercial License Question

1998-09-11 Thread Steve Byrne

Ed Huott writes:
 > The license states that binaries derived from the licensed (Sun's)
 > source code cannot be distributed for a fee or with any product for
 > which a fee is charged. It also states that the Licensed Software cannot
 > be used "for commercial or productive" use without getting a commercial
 > license from Sun.  
 > 
 > On the other hand, permission is given to distribute derived binaries
 > freely as long as it is done so "subject to a license agreement
 > containing terms and conditions at least as protective of Sun as those
 > included in the binary code license used by Sun for internet distribuion
 > of the Java binaries."  The license also expressly gives the right to
 > "create ports."
 > 
 > Taken together, does this mean the following are disallowed without
 > first getting a commercial license from Sun:

First, I'm not a lawyer.  I can only say that I know of Sun's intentions at the
time I was involved in drafting this wording:

 > 1) Distributing a Java product with a JRE produced by the Java-Linux
 > porting project?

Sun's intention (as I believe it to be) is that you can ship JRE for free no
matter what.  It's the runtime environment, and they want it to be as
ubiquitous as possible.   

 > 2) Running a commercial web server with servlets running on a JVM from
 > the Java-Linux JDK or JRE?

JRE -- definitely no problem.  If the Web server contained JDK as it was
shipped, then it must have a commercial license from Sun.  If you added it
after the fact, and you're not redistributing it, I think it's ok, but that's
just my understanding.

 > 3) Commercial Java product development using the Java-Linux JDK?

You can develop commercial products with the JDK -- you just can't SHIP the JDK
for free if you're charging money for your product.  The sense is that if you
are going to make money off of what you do by including the JDK, you owe Sun
some portion of that for the use of the JDK.  

 > I'm assuming the above restrictions do not actually exist based on the
 > way the Java-Linux JDK seems to be being distributed and used.  The
 > license that comes with the Java-Linux (binary) JDK distribution seems
 > to be the same one that Sun distributes with its JDKs.  I'm just hoping
 > that someone on this list can definitively state that this assumption is
 > correct.

We're distributing it for free, so no royalties are needed.  The license *IS*
the one that Sun ships with JDKS -- we don't change that stuff when we do
ports.

Steve



Re: Java Executable?

1998-09-11 Thread Paul V. Drobnich

> I looked in the Jdk home directory and there was a file
> "java",but it is not executable!? The only files there that are
> executable are *java-wrapper,*java-rmi.cgi,and *jre.

Have you tried this:
su root
chmod +x java
??


But you wrote that you have a RedHat. In this case most easiest way to
get JDK up is downloading and installing RedHat RPM binary package named 
jdk-1_1_6sn-1_1glibc_i386.rpm
(It's a BlackDown port). You will find it on RedHat ftp:

ftp.redhat.com  
/pub/contrib/grouped/glibc/i386/Development/Languages/Java/

Then simple type
rpm -i -vv jdk-1_1_6sn-1_1glibc_i386.rpm
and all relevant configuration and instalation will be done

Then rmdir yore
> resulting in 4 directories jdk1.1.6,jre1.1.6
and relax ;-)

Have a nice cooding

Paul Drobnich



Re: SWING INSTALL

1998-09-11 Thread Sean Starkey

On Fri, 11 Sep 1998, Syed Mubin wrote:
> 
> Hi Everybody there,
> 
> 
>   At present iam running JDK 1.1.5 on Red hat Linux 5.1 which works
> fine ,recently i downloaded Swing but iam unable to install its giving
> 
> when i tried to run such a simple program given below
> --
> import java.awt.*;
> import java.awt.event.*;
> import com.sun.java.swing.*;
> import java.applet.*;
> 
> 
> public class SimpleSwing extends Applet{
> 
> JRadioButton metalButton, motifButton, windowsButton;
> JButton button;
> 
> public void init()
> {
> JButton button =  new JButton("Hello, world");
> JRadioButton metalButton = new JRadioButton(metal);
>  add(button);
>  add(metalButton);
> validate();
>  button.show();
>  metalButton.show();
> }
> }
> 
> Its showing following errors
> -
> 
> SimpleSwing.java:3: Package com.sun.java.swing not found in import.
> import com.sun.java.swing.*;
>^
> 1 error
> 
> 
>   Anybody please help me where is the error,also tell me in step by
> installing of Swing..

Make sure you have the "swingall.jar" file in your CLASSPATH.  It
should be located in the directory where you put swing
(.../swing-1.0.3/swingall.jar). 

Sean

 === Friends don't let friends use DOS... ===
  Sean Starkey  [EMAIL PROTECTED]  WWW: http://rmi.net/~starkey  ICQ: 4863014
Check out Universe! - http://rmi.net/~starkey/Universe