• Post Reply Bookmark Topic Watch Topic
  • New Topic

what the default path of FileInputStream()  RSS feed

 
L Willie
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it on the "current" java file program that i compile?if not,how to set the default location as "current" java file?
if i didn't state the location path "C:\...\xxx",error message display as follow

Exception in thread "main" java.io.FileNotFoundException: mykeystore (The system cannot find the file specified)



 
Rob Spoor
Sheriff
Posts: 21048
85
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's based on the folder you are in when executing. You can always find out using File:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!