A
A
alekseyizmaylov2018-08-24 22:24:03
Java
alekseyizmaylov, 2018-08-24 22:24:03

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

2 answer(s)
G
GavriKos, 2018-08-24
@GavriKos

It is necessary not to save it in .jar, but to compile using the same jdk.

W
Warlodya, 2018-08-26
@Warlodya

www.skylit.com/javamethods/faqs/javaindos.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question