Answer the question
In order to leave comments, you need to log in
How to run .jar file on windows 10?
Good evening,
please help me solve this problem: I
wrote a java program, saved it as it should be in an executable file with a .jar extension,
I try to run it through cmd, it gives the following errors:
Error: To use 'StartFlightRecording', first unlock using -XX:+UnlockCommercialFeatures.
Error: The unlock option must precede 'StartFlightRecording'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit
downloaded jdk from the official site, installed it....
what should I do?
maybe there is some other option for creating and simply running console programs in java in windows?
I googled this question and didn't find anything...
Answer the question
In order to leave comments, you need to log in
It is necessary not to save it in .jar, but to compile using the same jdk.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question