|
Re: Running the wrong version of Java [message #1835587 is a reply to message #1835586] |
Mon, 07 December 2020 17:01 |
|
Your IDE might be working with different applications and app servers all vying for different Java runtime versions. Don't expect JAVA_HOME set outside of Eclipse
to be paid any attention inside of Eclipse.
In your Servers/Runtime Environments preference page, what JRE is that Tomcat server runtime set to use?
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
Re: Running the wrong version of Java [message #1835589 is a reply to message #1835587] |
Mon, 07 December 2020 18:19 |
Jim Anderson Messages: 109 Registered: October 2014 |
Senior Member |
|
|
--> "In your Servers/Runtime Environments preference page"
First off, thank you for your response.
If I go to the tab labeled 'Servers', I have Tomcat 8 and 9. For now, I am ignoring Tomcat 9.0 and I am working with Tomcat 8.0.85. If I right click on Tomcat server 8.0, and select preferences, a page pops titled "Properties for Tomcat v8.0 Server at localhost", but there is no indication there for what JRE is being used.
I also tried a right click on 'Servers' in Project Explorer, followed by selecting 'Properties'. That popped up a page named, "Properties for Servers", but I could not find a reference to a JRE there either.
I suspect you mean a different preference page, but as yet, I have not found it. I'm sorry to ask for more specific instructions, but I am not sure where else to try. Can you give an addition pointer?
Jim A.
|
|
|
Re: Running the wrong version of Java [message #1835594 is a reply to message #1835589] |
Mon, 07 December 2020 22:34 |
|
On the Window menu (or the application menu on macOS), you'll find an action to open the Preferences dialog. Servers is a category
there, and within it, there is a page called Runtime Environments. Don't confuse this with the contents of the Servers View that you
mentioned. The preference page sets up the runtimes on their own--which version it is, where it's located, and which JRE is used. What
you're seeing in the view are different instances of that runtime, each potentially configured with different JNDI resources, applications,
and port numbers. You always need at least one instance to actually run your application, but you can make more if you want.
You can also get there using Find Actions with Ctrl+3 or Cmd+3 and searching for "Runtimes".
_
Nitin Dahyabhai
Eclipse Web Tools Platform
[Updated on: Mon, 07 December 2020 22:38] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.10271 seconds