#java 1.8 error could not find or load main class java

1 messages ยท Page 1 of 1 (latest)

cold finchBOT
#

<@&987246652869971988> please have a look, thanks.

#

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>.

#
TJ-Bot
Trying to start MC server froge 1.12.2 and java 1.8 initiates fine from file explorer but cannot through bat file. Uninstalled all java and reinstalled. Might be a file location problem? my java file destinations are split between "program files" and "prog

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.

radiant lagoon
#

getting this error when i try to startup through bat file without specifying java 1.8 exe location