x + 1; or a == b;. Assign the result, call a method, or correct the stray or misspelled token.Files.readAllBytes(Path.of("file.txt")) returns the file as a byte[]. Use Files.readString(path) on Java 11 or later when you want the text directly.new String[] without a size or initializer, or a stray [ or . in a declaration. Complete or remove it.MessageDigest.getInstance("MD5").digest(bytes) and convert the result to hex. Use MD5 only for checksums, not for passwords or anything security related.path.toAbsolutePath() to see what Java is really looking for, then fix the path or create the file.getClass().getResourceAsStream("/config.properties") and read the stream. A file in the classpath is not a File on disk once the app is packaged as a JAR.Try Bugsee for free — no commitments, no hidden fees.