#java 1.8 error could not find or load main class java
1 messages ยท Page 1 of 1 (latest)
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
alled only java 1.8, still getting the same error. Checked environment variables, everything seems correct. Ran the command "java -version" in the command prompt, confirmed that java 1.8 is the default version. Double-checked the bat file for any typos or errors, everything seems correct. Tried running the bat file as an administrator, still getting the same error.
One possible solution could be to specify the classpath in the bat file using the "java -cp" command followed by the path to your main class file. Another solution could be to check if there are any conflicting versions of Java installed on your system that could be causing issues.
If none of these solutions work, it might be helpful to reach out to the Forge community or Minecraft forums for further assistance. They may have encountered similar issues and can provide additional troubleshooting steps specific to Minecraft server setups.
In summary, despite reinstalling Java 1.8 and verifying environment variables, users are still encountering a "could not find or load main class" error when trying to start a Minecraft server using a bat file. Additional steps such as specifying classpath or checking for conflicting Java versions may help resolve this issue. If problems persist, seeking help from relevant communities or forums is recommended.