• Post Reply Bookmark Topic Watch Topic
  • New Topic

null pointer exception  RSS feed

 
mythily prakash
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have to execute a program with runtime.exec(String cmd, String[] envp).Eventhough the variables cmd as well as envp[] has values,it throws the java.lang.NullPointerException.why?
How do i resolve it?
 
Amol Fuke
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please post the code ?
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe runtime is null!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!