The -ea
option to enable assertions is passed to the JVM not to the compiler. Add it as a VM option for your runtime configuration.
Specific location in the menu: Run > Edit Configurations… > Configuration > VM options:
More Related Contents:
- IDEA: javac: source release 1.7 requires target release 1.7
- JavaFX 11: IllegalAccessError when creating Label
- What does the arrow operator, ‘->’, do in Java?
- Import Maven dependencies in IntelliJ IDEA
- Lombok annotations do not compile under Intellij idea [duplicate]
- Has been compiled by a more recent version of the Java Runtime (class file version 57.0)
- SpringBoot – making jar files – No auto configuration classes found in META-INF/spring.factories
- MessageBodyProviderNotFoundException while running jar from command line
- Class JavaLaunchHelper is implemented in two places
- IntelliJ IDEA incorrect encoding in console output
- Maven Java Version Configuration ignored by Eclipse/Idea
- Error: Could not find or load main class in intelliJ IDE
- Adding resources in IntelliJ for Maven project
- Error “ClassNotFoundException” in IntelliJ IDEA
- How do I stop a process running in IntelliJ such that it calls the shutdown hooks?
- Multi-module JavaFX maven project packaging issue
- Why does Intellij-IDEA ignore my tomcat/conf/server.xml Context tag?
- deploy/debug java code on a remote server using Intellij
- How to create a .jar file or export JAR in IntelliJ IDEA (like Eclipse Java archive export)? [duplicate]
- IntelliJ – Convert a Java project/module into a Maven project/module
- How to clean project cache in IntelliJ IDEA like Eclipse’s clean?
- intellij incorrectly saying no beans of type found for autowired repository
- Wrong Manifest.mf in IntelliJ IDEA created .jar
- How to use IntelliJ IDEA to find all unused code?
- Java – setting classpath
- How to change Java version for Maven in IntelliJ?
- What is Project Language level in IntelliJ IDEA?
- Attaching additional javadoc in Intellij IDEA
- Convert existing JAR to OSGi-bundle
- How to build JARs from IntelliJ IDEA properly?