gstackoverflow
gstackoverflow

Reputation: 37034

How to configure tomcat java for Eclipse?

I have maven project. I build it using java 8.

Compilation passed. After it I click run on server and select tomcat.

Tomcat uses java 7 to launch builded war and I see error: unsupportted minor major version.

I cannot find place to configure java version which uses Elclipse tomcat.

Upvotes: 0

Views: 73

Answers (1)

watery
watery

Reputation: 5487

Tomcat uses the Server runtimes configured within Eclipse. You must edit the one set in your Tomcat server instance to specify the jdk version (which in turn requires you to configure the installed JREs).

You can find the related settings under Windows → Preferences → Server → Runtime Environments → select tomcat 7click edit and determine jre.

Upvotes: 2

Related Questions