Re: Sun's Java as OSS?

2000-10-27 Thread Andreas Rueckert

Hi!

On Don, 26 Okt 2000 David Brownell wrote:
>> Does Kaffe/GJC/Classpath  have a website?  If so,what's the url?
>
>http://sources.redhat.com/java ... for GCJ
>http://www.kaffe.org/ ... for Kaffe
>http://www.fsf.org/software/classpath/classpath.html ... for classpath
>http://www.fsf.org/software/java/java.html ... also relevant
>
>Note that libgcj (the GCJ runtime) has begun to incorporate
>"the best of classpath".

libgcj and Classpath have merged, so the other direction is also true.
If you can't get Japhar-Classpath going (I never managed to), take a look at
SableVM (another JVM + Classpath):
http://www.sablevm.org/

ORP also uses Classpath:
http://www.intel.com/research/mrl/orp/

Ciao,
Andreas



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




[Fwd: I am lost! Can you help?]

2000-10-27 Thread Rajesh Patel

I am using jsse1.0.2, Redhat 6.2 jdk 1.2.2.

Thanks,

-Raj




Hi,
   I am trying to implement my version
of RMISocketFactory that provides ssl sockets instead of regular sockets. 
I extended RMISocketFactory as follows but compiler complains that i can
not extend it's methods!
package bank;
import java.io.*;
import java.rmi.server.*;
import javax.net.*;
import javax.net.ssl.*;
public class CGGAMPSSLSocketFactory extends RMISocketFactory
{
    public Socket createSocket(String
host,int port) throws IOException{
 SSLSocket socket = (SSLSocket)SSLSocketFactory.getDefault().
 createSocket(host,port);
 String ciphers[] = socket.getEnabledCipherSuites();
 socket.setEnabledCipherSuites(ciphers);
 return socket;
    }
    public ServerSocket createServerSocket(int
port) throws IOException {
 SSLServerSocket server = (SSLServerSocket)
 SSLServerSocketFactory.getDefault().createServerSocket(port);
 String ciphers[] = server.getEnabledCipherSuites();
 server.setEnabledCipherSuites(ciphers);
 return server;
    }
}
 
Here is the compiler complain,
black:rpatel% javac bank/CGGAMPSSLSocketFactory.java
bank/CGGAMPSSLSocketFactory.java:17: The method
bank.Socket createSocket(java.lang.String, int) declared in class bank.CGGAMPSSLSocketFactory
cannot override the method of the same signature declared in class java.rmi.server.RMISocketFactory. 
They must have the same return type.
    public Socket createSocket(String
host,int port) throws IOException{
 
^
bank/CGGAMPSSLSocketFactory.java:25: The method
bank.ServerSocket createServerSocket(int) declared in class bank.CGGAMPSSLSocketFactory
cannot override the method of the same signature declared in class java.rmi.server.RMISocketFactory. 
They must have the same return type.
    public ServerSocket createServerSocket(int
port) throws IOException {
   
^
2 errors
black:rpatel%
I am totally lost i have the same function signature as of RMISocketFactory. 
Why the compiler does not like it?  I would appreciate your quick
response,
Thanks,
-Raj



Re: [Fwd: I am lost! Can you help?]

2000-10-27 Thread Juergen Kreileder

> "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes:

Rajesh> black:rpatel% javac bank/CGGAMPSSLSocketFactory.java
Rajesh> bank/CGGAMPSSLSocketFactory.java:17: The method
Rajesh> bank.Socket createSocket(java.lang.String, int) declared
Rajesh> in class bank.CGGAMPSSLSocketFactory cannot override the
Rajesh> method of the same signature declared in class
Rajesh> java.rmi.server.RMISocketFactory.  They must have the same
Rajesh> return type.
Rajesh>     public Socket createSocket(String host,int port) throws IOException{
Rajesh>   ^

Rajesh> I am totally lost i have the same function signature as of
Rajesh> RMISocketFactory.

No, you haven't.  You have "bank.Socket createSocket(String, int)" but
it should be "java.net.Socket createSocket(String, int)".

Adding "import java.net.Socket;" or using "java.net.Socket" instead of
the unqualified "Socket" should fix this.


Juergen

-- 
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/


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




Re: [Fwd: I am lost! Can you help?]

2000-10-27 Thread Joi Ellis

On Fri, 27 Oct 2000, Rajesh Patel wrote:

> I am using jsse1.0.2, Redhat 6.2 jdk 1.2.2.
> 
> Thanks,

The error message said what the problem was.  Not only must your
method's name and parameters match, but the return type must match
also.


-- 
Joi EllisSoftware Engineer
Aravox Technologies  [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
   - Chris Johnson


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




Re: Redhat 7.

2000-10-27 Thread Tom . Williams


If you're talking about gcj, check out this site:
http://sources.redhat.com/java/

Peace..

Tom




"Nicolas Raitman" <[EMAIL PROTECTED]> on 10/26/2000 05:51:55 PM

To:   "Java" <[EMAIL PROTECTED]>
cc:
Subject:  Redhat 7.


Hi to all! I have just installed RedHat 7.0 cause I new that it has a
compiler for Java. Could anyone tell me how to use it? Also where can I
download Forte or JBuilder or something like that to use with Linux?

Thanks


--
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: [Fwd: I am lost! Can you help?]

2000-10-27 Thread Rajesh Patel

Juergen Kreileder wrote:

> > "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes:
>
> Rajesh> black:rpatel% javac bank/CGGAMPSSLSocketFactory.java
> Rajesh> bank/CGGAMPSSLSocketFactory.java:17: The method
> Rajesh> bank.Socket createSocket(java.lang.String, int) declared
> Rajesh> in class bank.CGGAMPSSLSocketFactory cannot override the
> Rajesh> method of the same signature declared in class
> Rajesh> java.rmi.server.RMISocketFactory.  They must have the same
> Rajesh> return type.
> Rajesh> public Socket createSocket(String host,int port) throws IOException{
> Rajesh>   ^
>
> Rajesh> I am totally lost i have the same function signature as of
> Rajesh> RMISocketFactory.
>
> No, you haven't.  You have "bank.Socket createSocket(String, int)" but
> it should be "java.net.Socket createSocket(String, int)".
>
> Adding "import java.net.Socket;" or using "java.net.Socket" instead of
> the unqualified "Socket" should fix this.

>

Thank you very much.  I had import javax.net.*  so i thought it is ok but actually it
requires java.net.Socket as return type and other places it requires javax.net.*  So
now it works for that part but now i get following exception.  Can you give me some
guideline if possible,

% startserver
java.security.Policy: error adding Entry
sun.security.provider.PolicyParser$GrantEntry@7749ec69 java.net.MalformedURLException:
no protocol: jsse.jar
java.rmi.MarshalException: Error marshaling transport header; nested exception is:
java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:130)
at java.io.DataOutputStream.flush(DataOutputStream.java:104)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:203)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:161)
at bank.BankServerImpl.main(BankServerImpl.java:40)
%

I have following in my code to support ssl,

java.security.Security.addProvider(
 new com.sun.net.ssl.internal.ssl.Provider());
 System.setProperty("java.protocol.handler.pkgs",
 "com.sun.net.ssl.internal.www.protocol");
try{
 RMISocketFactory.setSocketFactory(new CGGAMPSSLSocketFactory());
 }catch (IOException e){
 e.printStackTrace();
 }

Isn't that enough?  What am i missing?
Thanks,

-Raj

>
> --
> Juergen Kreileder, Blackdown Java-Linux Team
> http://www.blackdown.org/java-linux.html
> JVM'01: http://www.usenix.org/events/jvm01/


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




looking for a kernel mailing list

2000-10-27 Thread Brett Smith

I have a question that would be appropriate for a Linux Kernel list.
Does anyone know of a good one?

We have written a driver for our proprietary h/w.  The driver handles a
multitude of interrupts.  The bottom half routine calls the
corresponding "Interrupt Handler" (static void interruptHandler(void)).
I want to be able to dynamically install one of these "Interrupt
Handlers".  I want to be able to pass the "Interrupt Handler" in from
user code (after the driver has already been loaded), maybe via an IOCTL
call.

Is this possible?  Are 2 builds required, one for the "Interrupt
Handler" and one for the user code that installs it;  Or, can they be
built together (#define MODULE).

thanks for any help,


[EMAIL PROTECTED]





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




Re: looking for a kernel mailing list

2000-10-27 Thread Nathan Meyers

I'm pretty sure Java/Linux isn't the list you want :-). I recommend:

http://www.tux.org/lkml/

Nathan



On Fri, Oct 27, 2000 at 02:31:48PM -0400, Brett Smith wrote:
> I have a question that would be appropriate for a Linux Kernel list.
> Does anyone know of a good one?
> 
> We have written a driver for our proprietary h/w.  The driver handles a
> multitude of interrupts.  The bottom half routine calls the
> corresponding "Interrupt Handler" (static void interruptHandler(void)).
> I want to be able to dynamically install one of these "Interrupt
> Handlers".  I want to be able to pass the "Interrupt Handler" in from
> user code (after the driver has already been loaded), maybe via an IOCTL
> call.
> 
> Is this possible?  Are 2 builds required, one for the "Interrupt
> Handler" and one for the user code that installs it;  Or, can they be
> built together (#define MODULE).
> 
> thanks for any help,
> 
> 
> [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: looking for a kernel mailing list

2000-10-27 Thread David Brownell

> I have a question that would be appropriate for a Linux Kernel list.
> Does anyone know of a good one?

LKML, or the specialized ones (e.g. for USB, networking, etc).

The modules bit doesn't make sense to me; are you referring
to the kernel driver plus the userspace JNI glue to call it?
Or is the userspace code some C code making a JVM call?

- Dave


> We have written a driver for our proprietary h/w.  The driver handles a
> multitude of interrupts.  The bottom half routine calls the
> corresponding "Interrupt Handler" (static void interruptHandler(void)).
> I want to be able to dynamically install one of these "Interrupt
> Handlers".  I want to be able to pass the "Interrupt Handler" in from
> user code (after the driver has already been loaded), maybe via an IOCTL
> call.
> 
> Is this possible?  Are 2 builds required, one for the "Interrupt
> Handler" and one for the user code that installs it;  Or, can they be
> built together (#define MODULE).
> 
> thanks for any help,
> 
> 
> [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]