Re: 1.2 problems

1999-03-28 Thread Alexander V. Konstantinou

It is a known problem with 32-bit displays (and some 24-bit ones which
result in a seg fault).  Start X11 in 16-bit mode.

Alexander

On Sat, Mar 27, 1999 at 12:59:00AM +0100, Osvaldo Pinali Doederlein wrote:
> Hi,
> 
> I definitely can't get JDK 1.2 to run GUI apps here.  Console runs fine, but
> anything with AWT dies at startup if I use the JIT.
> 
> I then tried to use the interpreter, and this is the typical output:
> 
> [root@r219 MoleculeViewer]# appletviewer -J-Djava.compiler= example1.html
> java.lang.IllegalArgumentException: Raster ShortInterleavedRaster: width =
> 300 height = 300 #numDataElements 1 is incompatible with ColorModel
> DirectColorModel: rmask=7c00 gmask=3e0 bmask=1f amask=0
> at java.awt.image.BufferedImage.(BufferedImage.java:521)
> at sun.awt.image.OffScreenImage.(OffScreenImage.java:70)
> at sun.awt.motif.MComponentPeer.createImage(MComponentPeer.java:286)
> at java.awt.Component.createImage(Component.java:2079)
> at XYZApp.newBackBuffer(XYZApp.java:283)
> at XYZApp.init(XYZApp.java:300)
> at sun.applet.AppletPanel.run(AppletPanel.java:357)
> at java.lang.Thread.run(Thread.java:479)
> 
> It seems the AWT is having trouble with TrueColor X11...
> 
> I am using:
> - RH52
> - ln -fs libstdc++.so.2.8.0 libstdc++-libc6.0-1.so.2
> - XFree86 3.3.3.1-1
> - Diamond Viper330 (NVidia), 4Mb, SGVA server
> - glibc-2.1.0.990222
> - GNOME 1.0.3 and Enlightenment, all from very latest GNOME RPMs
> - egcs-1.1.2-11 (rpm)
> - kernel 2.2.4, built against the stuff above :)
> - anything other detail, just ask me
> 
> A+
> Osvaldo
> 
> 
> --
> 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: grrrrrr.....

1999-03-28 Thread Russ Ferriday

Wasn't this renamed to "Java Plug-In"?

http://java.sun.com/products/plugin/

--r.

Matthew McKeon wrote:
> 
> I've hunted through the list archives and seen several questions
> re: What happened to the activator link on blackdown?
> 
> Have there been ANY new developments on this?
> Where the heck are the blackdown people?
> I'm trying to cheerlead our office into switching to linux
> as a java development platform,
> but since our environment is Java 1.2
> and our target client is a winNT box running Netscape + the Plugin,
> it's IMPOSSIBLE for us to switch without the activator.
> 
> Where the heck is the activator?!?
> Does anyone know of any mirrors where I might obtain it?
> 
> --
> 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]



Problems getting host IPaddress

1999-03-28 Thread Angela Schattleitner

Hi,
I'm working with javamail/IAIK JCE under Linux with JDK117. The javamail
class "transport" calls for SMTP-authentifikation against the sendmail
server "java.net.InetAddress.getAllByName(String host)".

On the workstations I get an "UnknownHost Exception", and due to the
missing authentification I get no connection to the mailhost. On the
subnetserver, which is a firewall with masquerading, I get the
IPaddress.

SMTP-usage with other mail-clients is normal.
String host (-> local hostname) is found.
/etc/hosts and nameserver configuration seem all right.
Can anyone give me a hint ?

Angela Schattleitner, FB Informatik, FH Muenchen


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



RunTime Process object

1999-03-28 Thread Bill Paladino


>>> Has anyone had any luck RUNNING a program from Java? Example below (JDK
116) compiles OK, prints a nicely formed command OK buts generates *NO*
output.

thanks,

import java.io.*;
public class RunFile{
  public static void main ( String args[] )
   throws Exception   {
try {
  Runtime rt = Runtime.getRuntime ();
//  Build a cmd-string :
  String RunCmd =
" /usr/bin/grep -in main  *.java ";
  System.out.println ("RunCmd: " + RunCmd);
  Process procs = rt.exec (RunCmd);
  DataInputStream dis = new DataInputStream
   (procs.getInputStream() );
  String line;
  while (( line = dis.readLine () ) != null )
System.out.println (line);

} catch (IOException ioe) {
   System.out.println ("Runtime/Process error");
}   // end try
}   //  end main
}   //  end class



Bill Paladino


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



Re: RunTime Process object

1999-03-28 Thread Juergen Kreileder

> Bill Paladino writes:

Bill> Has anyone had any luck RUNNING a program from Java? Example
Bill> below (JDK 116) compiles OK, prints a nicely formed command
Bill> OK buts generates *NO* output.

Bill> thanks,

Bill> import java.io.*;
Bill> public class RunFile{
Bill>   public static void main ( String args[] )
Bill>throws Exception   {
Bill> try {
Bill>   Runtime rt = Runtime.getRuntime ();
Bill> //  Build a cmd-string :
Bill>   String RunCmd =
Bill> " /usr/bin/grep -in main  *.java ";
Bill>   System.out.println ("RunCmd: " + RunCmd);
Bill>   Process procs = rt.exec (RunCmd);
Bill>   DataInputStream dis = new DataInputStream
Bill>(procs.getInputStream() );
Bill>   String line;
Bill>   while (( line = dis.readLine () ) != null )
Bill> System.out.println (line);

Bill> } catch (IOException ioe) {
Bill>System.out.println ("Runtime/Process error");
Bill> }   // end try
Bill> }   //  end main
Bill> }   //  end class

You need a shell for the wildcard expansion, try that one:

import java.io.*;

public class RunFile
{
public static void main(String[] args)
{
try {
Runtime rt = Runtime.getRuntime();

String[] runCmd = {"/bin/sh", "-c", "grep -in main  *.java"};

Process procs = rt.exec(runCmd);

BufferedReader br = 
new BufferedReader(new InputStreamReader(procs.getInputStream()));

String line;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
} catch (IOException ioe) {
System.out.println("Runtime/Process error");
}
} 
} 



Juergen

-- 
Juergen Kreileder, Universitaet Dortmund, Lehrstuhl Informatik V
Baroper Strasse 301, D-44221 Dortmund, Germany
Phone: ++49 231/755-5806, Fax: ++49 231/755-5802


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



Re: grrrrrr.....

1999-03-28 Thread Matthew McKeon

Russ Ferriday wrote:
> 
> Wasn't this renamed to "Java Plug-In"?
> 
> http://java.sun.com/products/plugin/
> 

Yes, it was. 
The Java Plug-In FAQ points to the dead activator link at blackdown
as the location to obtain a linux version of the plug-in.
However, I now see that the download page 
claims there IS no linux version of the plug-in.
Very strange, however I'll take anything I can get. 
The linux activator existed at SOME point, 
so if anyone can tell me where to obtain it
I would be most grateful. 

I mean, if Javasoft asked Blackdown to cease distribution 
of the linux plug-in for some reason, fine.
A page with some words to that effect at the activator link 
would be nice. 

I mailed Karl on this, and still haven't gotten a reply.

> --r.
>


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



Re: grrrrrr.....

1999-03-28 Thread Bryce McKinlay

Matthew McKeon wrote:

> However, I now see that the download page
> claims there IS no linux version of the plug-in.
> Very strange, however I'll take anything I can get.
> The linux activator existed at SOME point,
> so if anyone can tell me where to obtain it
> I would be most grateful.
>
> I mean, if Javasoft asked Blackdown to cease distribution
> of the linux plug-in for some reason, fine.
> A page with some words to that effect at the activator link
> would be nice.

If you go to http://java.sun.com/products/plugin/ and click on "download - java
plug-in 1.2" you get the "JavaTM Plug-in Linux Download Page" which has the
following message:

"Java Plug-in in currently not available for Linux.

As soon as it is available, a link will be added here. "

Although there was once a blackdown port of the "activator", I believe it was
only compatable with certain old versions of the Blackdown JDK. As far as I
know, you can not use it with the 1.1.7 or 1.2 ports.

regards

  [ bryce ]





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



jni problem

1999-03-28 Thread optima

I have been develop java program for a serveral days.But I havn't have a
success test with the java native include in linux on my redhat 5.1 with
jdk1.1.7. when I complied the c impliction code
with gcc
as :
 cc -G NativeHello.c NativeHelloImp.c  -o libHello.so
 ,I encount a problum
"cc: unrecognized option `-G'
/usr/lib/crt1.o(.text+0x36): undefined reference to `main'"
before I do this ,I had copy the include file of java/include into
/usr/include ,and I copy the *.h in subdir of java/include also into
/usr/include
can anybody give me a good advice !



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



Re: jni problem

1999-03-28 Thread Wes Biggs

optima wrote:

> cc -G NativeHello.c NativeHelloImp.c  -o libHello.so
>  ,I encount a problum
> "cc: unrecognized option `-G'
> /usr/lib/crt1.o(.text+0x36): undefined reference to `main'"
> before I do this ,I had copy the include file of java/include into
> /usr/include ,and I copy the *.h in subdir of java/include also into
> /usr/include
> can anybody give me a good advice !

You need to add -shared to the command line to build a .so file.  Otherwise it
assumes you're building an executable, which needs main().

Wes




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