Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Runtime.exec() problem

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");
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 fetch = new FetchPool();
Hold that thought. Tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic