• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime.exec() problem

 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First i want to thanks every one who has helped in jdbc problem.
My problem is that i am running file using Runtime.exec("java FetchPool").
now i have to pass a vector to FetchPool file so that i can use this vector in Fetchpool class.but there is no way to pass vector to FetchPool class.So what is solution my code is like that
//--------------------------------------------
Vector v;(contain some date which i have to pass to FetchPool class)
Process process = Runtime.getRuntime().exec("java FetchPool");
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you trying to use Runtime.exec()?

Why don't you call a method in FetchPool?

FetchPool.someMethod(v);

or

FetchPool fetch = new FetchPool();
fetch.someMethod(v);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic