I'm guessing it is something to do with the case. Is your full path exactly that way, in all caps? Windows is case-insensitive. Java need not be. Can you post the code that actually causes the error or results in a null reference?
The line you listed should never be null, on any Java platform. If the second part of your example above truly is a folder name, not a share, the reference will not resolve. Add a comment.
Active Oldest Votes. Improve this answer. Adriano Repetti Adriano Repetti Tried it and got: javax. IIOException: Can't read input file! Sin5k4 can you post the file path here? The exact one you use, if possible. JPG"; — Sin5k4. Does generatedfilename contain some character that should be encoded? With forward slash instead of backslash it doesn't work? Show 3 more comments. Sign up or log in Sign up using Google.
Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Active Oldest Votes. Improve this answer. Wher is stored app. Next to the executable file, however, you can put it anywhere and enter its full address. Create a configuration file and put your entries there. As my project name is WebServer , m, where can I put log , then?
Could you provide explain what you understand by fileName in your answer? Show 8 more comments. It depends. MadProgrammer MadProgrammer k 22 22 gold badges silver badges bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Linked 2. Related Hot Network Questions.
0コメント