5/10/2019 0 Comments Mac Desktop File Path For JavaI have a problem trying read a file on java with MacBook OS Mojave version- 10.14.1 with eclipse version Oxygen.3a Release (4.7.3a). When i run this: BufferedReader in = new BufferedReader(new FileReader('Macintosh HD/Users/Username/Desktop/Java/Hi.txt')); when i run the code it appears: java.io.FileNotFoundException: ('/Macintosh HD/Users/Username/Desktop/Java/Hi.txt') (No such file or directory) is there something another way to find the path to file or something that I'm missing writing the actual path to file? I'm expecting the output to be a String 'this is line 1'. To test that Java is installed and working properly on your computer, run this test applet. Install Java on Mac. Download the jre-8u65-macosx-x64.pkg file. Review and agree to the terms of the license agreement before downloading the file. Double-click the.pkg file to launch it; Double-click on the package icon to launch install Wizard. For Java versions 6 and below, Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java 6 for your Mac. For issues related to Apple Java 6 on Mac, contact Apple Support.
0 Comments
Leave a Reply. |