Issue with Java code
Issue with Java code
To access OptiFine directly from Java, you need to modify the startup path or use a custom launcher. Adjust your system's PATH environment variable or create a launchable class that runs OptiFine within a Java environment.
If everything looks messed up, the simplest solution is to reinstall Java, which should resolve the issues properly.