DevHeads.net

java: Unrecognized option: --add-modules

When did java lose its option for --add-modules?!?!?

# java --add-modules java.activation
Unrecognized option: --add-modules
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

# rpm -q java-1.8.0-openjdk
java-1.8.0-openjdk-1.8.0.191.b13-0.fc29.x86_64

I can't start my unifi server now because it needs the java.activation
module that's depreciated.

Thanks,
Richard

Comments

Re: java: Unrecognized option: --add-modules

By Tako Schotanus at 02/10/2019 - 13:11

Not done anything with Java modules yet so I might be completely wrong, but
isn't modules a Java 9 feature?

Re: java: Unrecognized option: --add-modules

By Richard Shaw at 02/10/2019 - 14:30

Yeah, I think I jumped the gun... Having issues and should have backed up
first, now I can't downgrade to a previous version of unifi...

Thanks,
Richard