Runnable jar runs fine with java -jar, but problems with double-click?

When you say "new File(map1url.getFile())", you're ending up with a java.io. File that refers to a file in the current directory. If the file actually is in the current directory of the process (which will happen if the file in in the current directory of your shell and you use "java -jar", then this will work; otherwise, it won't.

When you say "new File(map1url.getFile())", you're ending up with a java.io. File that refers to a file in the current directory. If the file actually is in the current directory of the process (which will happen if the file in in the current directory of your shell and you use "java -jar", then this will work; otherwise, it won't.

Why not just use getResource().openStream() to read the map file?

Because it has to be a file for me to scan it. – Keelx Apr 9 at 22:30 Nope. Scanner has several constructors that accept an InputStream (what you get from openStream()).

They'll plug right together. – Ernest Friedman-ll Apr 9 at 22:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions