Solved Java Illegal Access Error? Server wont start.

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Phantasmal-Rin

New Member
Aug 16, 2021
0
0
1
On A Host PC
FTB Endeavour - Server - 1.4.0
Windows 10
Java 8-301 and Java 8-261?


I Installed the server and ran it using the bat file. I got a Error about something in( java.lang.IllegalAccessError) and support for (sun.security.util ). I tried writing my own bat file. I tried to update java from the official site and delete the old version. I checked the logs and they were basically empty. with the photo of what was in cmd window my only clue. I also installed the server on my pc (not the host pc) and it loaded fine with no issue. The only difference i know of is that i run java 8-181 on my pc. I tried runing the bat file in Admin but that just said (unable to access forge.jar).
Error.png
 
Last edited:
Can you make sure it's java 8?

open cmd and type:
java -version

Press enter and share the result.

java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

So i have.
Java SE development kit 16.0.1
And
Java 8 301 are installed.
 
Last edited:
Solved
Can you make sure it's java 8?

open cmd and type:
java -version

Press enter and share the result.

Thank you. I uninstalled the JDK and now it works. Not sure why this solves it cause my pc (not host) runs a different jdk and works fine. But oh well.
 
Not sure why this solves it cause my pc (not host) runs a different jdk and works fine
If you're using FTB app on your pc then that is using the default launcher from Mojang and that comes with java bundled - so even if you've got a different version installed on your machine, it's still using the bundled version - per default.