Re: about exec
Hi |
here is how I made this :
import java.lang.Runtime;
public void startService(String programName) {
try {
path = "/your/path/";
(Runtime.getRuntime()).exec(path+programName);
}
catch (Exception e) {
System.out.println(e);
}
}
Bye bye |
begin: vcard
fn: Massimo Conti
n: Conti;Massimo
org:Systeam S.p.A.
adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy
email;internet: [EMAIL PROTECTED]
title: Ing.
tel;work: +39-6-5077031
tel;fax:+39-6-50770365
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version:2.1
end:vcard
Re: https
Hi, > 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... No it is right. I have made some tests opening a secure site from an applet running in a browser (Netscape) and it works fine. Bye Massimo begin: vcard fn: Massimo Conti n: Conti;Massimo org:Systeam S.p.A. adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy email;internet: [EMAIL PROTECTED] title: Ing. tel;work: +39-6-5077031 tel;fax:+39-6-50770365 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
RMI and firewall
Hi, I'm having a problem in connecting with my server RMI from an applet througth a firewall. I tried to open the 1099 port but I got different messages of error. >From security error to time-out it depends on where is the PC I'm connecting. I tried to open all ports too, but nothing appened. If I try to connect behind the firewall all is ok. I have read that if RMI can't make a direct connection it attempts via HTTP, but I can't understand how. Can you explain me more ? Have you some source code to study ? How can I lookup my RemoteObject via http ? Thank in advance and apologize me for my english. Ciao Massimo begin: vcard fn: Massimo Conti n: Conti;Massimo org:Systeam S.p.A. adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy email;internet: [EMAIL PROTECTED] title: Ing. tel;work: +39-6-5077031 tel;fax:+39-6-50770365 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
rmi problems
Hi I have a problem with rmi. I use Linux RedHeat 5.0 and jdk-1_1_6sn-1_1glibc_i386. When I start my server application this is the output : java.rmi.UnexpectedException: Unexpected exception; nested exception is: java.lang.ClassNotFoundException: MyServerImpl_Stub but the class is there. The CLASSPATH include the directory i put my classes. MyServerImpl_Stub.class and MyServerImpl_Skel.class are in the same directory and while the Skel class is founded the Stub one no. Any idea ? Thanks in advance. Massimo begin: vcard fn: Massimo Conti n: Conti;Massimo org:Systeam S.p.A. adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy email;internet: [EMAIL PROTECTED] title: Ing. tel;work: +39-6-5077031 tel;fax:+39-6-50770365 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
rmi problem solved
Hi, Now my rmi server runs. I had to restart the rmiregistry as I changed the stub class without doing that. Thanks to all. Massimo begin: vcard fn: Massimo Conti n: Conti;Massimo org:Systeam S.p.A. adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy email;internet: [EMAIL PROTECTED] title: Ing. tel;work: +39-6-5077031 tel;fax:+39-6-50770365 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
RMI and runtime
Hi, I have some problems when I try to execute a remote program. Using the following command (Runtime.getRuntime()).exec(FILE); inside the server RMI, if the file is a shell one all go right but if it is a binary executable nothing append. I'm using jdk 1.1.6 under linux redhat 5.0. Can anyone help me ? Thanks Massimo begin: vcard fn: Massimo Conti n: Conti;Massimo org:Systeam S.p.A. adr:Via Eroi di Cefalonia, 39;;;Spinaceto;;00128;Italy email;internet: [EMAIL PROTECTED] title: Ing. tel;work: +39-6-5077031 tel;fax:+39-6-50770365 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version:2.1 end:vcard
