Error:java: javacTask: source release 8 requires target release 1.8?

Using IntelliJ IDE can't compile any projects. Screenshots of settings below: Used JDK: Project SDK and Language...

Why am i getting “ Duplicate modifier for the type Test” and how to fix it?

I was trying to make a method that returns true if given "Strings" are anagrams. unfortunately i cant even test it a...

Difference between String replace() and replaceAll()?

What's the difference between java.lang.String 's replace() and replaceAll() methods, other than later uses regex? ...

gradlew command not found??

I am working on a Java project with gradlew. I use Ubuntu Linux as my OS. When I run "gradle" it runs, and gives me ...

How to break out or exit a method in Java??

The keyword break in Java can be used for breaking out of a loop or switch statement. Is there anything which can be...

JAVA Variable declaration not allowed here?

I get an error "Variable declaration not allowed here" and I don't know why, I'm new in java and can't find answer :...

How do you import classes in JSP??

I am a complete JSP beginner. I am trying to use a java.util.List in a JSP page. What do I need to do to use class...

drawing smile face using fillArc?

How do I get full smile face? I am trying to draw a happy face with full mouth smile, it is giving me results like ...

Cannot issue data manipulation statements with executeQuery()?

In MySQL I have two tables, tableA and tableB. I am trying to execute two queries: executeQuery(query1) executeQu...

intellij idea - Error: java: invalid source release 1.9?

I'm trying to run my JSQL parser class, but I'm getting Error: java: invalid source release 1.9. I tried to follow...

“Cannot start compilation: the output path is not specified for module…”?

I have a very simple Java + Gradle project. It builds fine. It runs fine from the shell with "gradle run". However, ...

Variable is accessed within inner class. Needs to be declared final?

So the title says it all. I'm getting a compilation error inside of my onClick. Here's the code. public class fiel...

Implementing moving object on a dynamic background, Swing (Pacman game)?

I am coding a Pacman game and I ran into few problems while trying to implement it. I have a main JFrame which hold...

NetBeans - HTTP Status 404 - Not Found - descriptionThe requested resource is not available?

Everybody!!! I'm a trouble.... I've a JEE App and when i click in OK button, show this msg: HTTP Status 404 - Not F...

What is the meaning/cause of *** java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding” with message transform method call failed??

When running my test with gradle I started getting output below on the console. This output is coming from the JVM n...