This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!

nabou diack

+ Follow
since Oct 17, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by nabou diack

I found a way . thanks
19 years ago
Hi I'm trying to open a file located on my server. My server's name is omni
this works when i want to open a file located on my computer :
Runtime.getRuntime().exec("cmd /c start c:"+File.separator+"sdiack"+File.separator+"java"+File.separator+"timesheetserver"+File.separator+"feuilledetemps.html");}
this does not work when i try to open a file located on server omni :
Runtime.getRuntime().exec("cmd /c start omni:"+File.separator+"test"+File.separator+"files"+File.separator+"dir1"+File.separator+"file1.html");}

Please help! thanks
19 years ago
thanks I'll try that
19 years ago
here is the error message i'm getting access denied ( Omni
net1\iManager\factures\facturefrancaise.html write)
at java.lang.SecurityManager.checkPermission(
at java.lang.SecurityManager.checkWrite(
at accountServer.getFactureGeneree(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(
at sun.rmi.server.UnicastServerRef.dispatch(
at sun.rmi.transport.Transport$
at Method)
at sun.rmi.transport.Transport.serviceCall(
at sun.rmi.transport.tcp.TCPTransport.handleMessages(
at sun.rmi.transport.tcp.TCPTransport$
19 years ago
I'm having troubles with file permissions in my java.policy
i'm trying to write in a a file named fac.html located in my server.
my server's name is omni and the file is in the directory bills . I tried the following but none of it works. can you help? thanks a lot
java .policy
i tried this
grant codeBase "file://omni:/bills/*" {
permission "<<ALL FILES>>", "write";
i also tried this:
{permission "//Omni//bills//fac.html", "read,write,execute";
19 years ago
i was using sdk 1.4 but i didn't work.
19 years ago
thanks for your reply. I tried to use replace as you said
String mystring = ch1.replace ("\r\n", "<br>");
but I get this error message: replace(char,char) in java.lang.String cannot be applied to (java.lang.String,java.lang.String)
String mystring = ch1.replace ("\r\n", "<br>");
19 years ago
Hi I would like to replace \r \n by <br> in a string . How do I do that ? I tried using replace but it only works when you want to replace a single character. Thanks for your help
19 years ago
Hi I had an rmi application which was working well on access and i'm trying to make it run on sql server but I'm having lots of troubles.
I have granted all the rigrts to the tables but when I try to connect from another computer than the server I get this error:
select permission denied on object "table"
When I'm on the server I get the following errors:
Invalid descriptor index
Connection is busy witn results for another hstmt.
Can anyone please help?
hi I would like to know how to increment a date received from an access database by 6 more days. thanks
hi can someone tell me how to open a file named for instance "c:/test.html" by clicking on a button in a java application
hi can someone tell me how to open a file named for instance "c:/test.html" by clicking on a button in a java application
20 years ago
Hi do you know how to solve the invalid cursor state error I am getting on this code.
I am actually trying to do a query inside another query. thanks for your help
public synchronized Vector getafacturer( Remote handle) throws java.rmi.RemoteException
Statement st2 = initTransaction(handle);

if(st2 != null)
clientInfos client = getClientInfosFromHandle(handle);
if( (client.classLevel == ADMINISTRATOR) | | (client.classLevel == SUPERVISOR) )
String query1, query2;
//Vector list2 = new Vector();
Vector afacturerlist2 = new Vector();

/* query1 = " SELECT * FROM ListeProjet";*/

query2= " SELECT NoProjet, Expr1 FROM heurestravaillees";

System.out.println("SQL: " + query2);
ResultSet rs2 = st2.executeQuery(query2);
//infos.heurestravaillees= rs2.getDouble("Expr1");
//ajoute les factures a la liste
afacturerinfos infos = new afacturerinfos();

infos.noprojet = rs2.getString("NoProjet");
Long noproj = new Long (infos.noprojet);
infos.heurestravaillees= rs2.getDouble("Expr1");

query1 = "SELECT DISTINCT Facture.NoProjet, Sum(FactureDetail.HeuresFacture) AS Sumhf " +
"FROM Facture INNER JOIN FactureDetail ON Facture.NoFacture = FactureDetail.NoFacture " +
"WHERE Facture.NoProjet =" +noproj+
" GROUP BY Facture.NoProjet";

System.out.println("SQL: " + query1);
ResultSet rs3 = st2.executeQuery(query1);
infos.heuresfacturees= rs3.getDouble("Sumhf");

return afacturerlist2;
catch (Exception e){e.printStackTrace();}
return null;