Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Fabiana Ferrrari   on Aug 26 In Java Category.

  
Question Answered By: Keith Marshall   on Aug 26

getResourceAsStream() returns null  if the resource cannot be found. Is the
Main.class file  in the same directory as the sshlogin.conf?

You may want to try:

Main.class.getResourceAsString("sshlogin.conf")

Share: