Change the JRE/JDK used by tomcat6
I need to change the JRE used by my tomcat6 server, because I've a JSP App which has compiled classes whith JDK 1.8.0_45
.
Then since I had JRE 1.8.0_40
(and being it used by tomcat), I got a faulire at runtime in my JSP App:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
So I've installed JRE 1.8.0_45
, just dowloading it, then extract and move to:
/usr/lib/jvm/jre1.8.0_45/
And then updated to use it (as you can see here, sorry since it's in Spanish):
So I just reboot the computer, and then looked for which JRE is using tomcat... but found something like this (sorry if it's not the best way to look at it, was the easier way I think):
ps -aux | grep tomcat
As you can see, the first "line" in the output of grep is the execution of tomcat (isn't it?) but it seems to be using JDK instead of JRE. And plus that, it's using JDK1.8.0_40
, while I'm using JDK1.8.0_45
in this same PC when building my App:
And if we check the JDK options, the selected one hasn't a version specified, so I don't know if there's something wrong about it:
So this is my problem, I just wonder how can I change the JDK/JRE version used by tomcat to u45.
I need to fix all this mess.
elementary-os tomcat jdk
add a comment |
I need to change the JRE used by my tomcat6 server, because I've a JSP App which has compiled classes whith JDK 1.8.0_45
.
Then since I had JRE 1.8.0_40
(and being it used by tomcat), I got a faulire at runtime in my JSP App:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
So I've installed JRE 1.8.0_45
, just dowloading it, then extract and move to:
/usr/lib/jvm/jre1.8.0_45/
And then updated to use it (as you can see here, sorry since it's in Spanish):
So I just reboot the computer, and then looked for which JRE is using tomcat... but found something like this (sorry if it's not the best way to look at it, was the easier way I think):
ps -aux | grep tomcat
As you can see, the first "line" in the output of grep is the execution of tomcat (isn't it?) but it seems to be using JDK instead of JRE. And plus that, it's using JDK1.8.0_40
, while I'm using JDK1.8.0_45
in this same PC when building my App:
And if we check the JDK options, the selected one hasn't a version specified, so I don't know if there's something wrong about it:
So this is my problem, I just wonder how can I change the JDK/JRE version used by tomcat to u45.
I need to fix all this mess.
elementary-os tomcat jdk
add a comment |
I need to change the JRE used by my tomcat6 server, because I've a JSP App which has compiled classes whith JDK 1.8.0_45
.
Then since I had JRE 1.8.0_40
(and being it used by tomcat), I got a faulire at runtime in my JSP App:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
So I've installed JRE 1.8.0_45
, just dowloading it, then extract and move to:
/usr/lib/jvm/jre1.8.0_45/
And then updated to use it (as you can see here, sorry since it's in Spanish):
So I just reboot the computer, and then looked for which JRE is using tomcat... but found something like this (sorry if it's not the best way to look at it, was the easier way I think):
ps -aux | grep tomcat
As you can see, the first "line" in the output of grep is the execution of tomcat (isn't it?) but it seems to be using JDK instead of JRE. And plus that, it's using JDK1.8.0_40
, while I'm using JDK1.8.0_45
in this same PC when building my App:
And if we check the JDK options, the selected one hasn't a version specified, so I don't know if there's something wrong about it:
So this is my problem, I just wonder how can I change the JDK/JRE version used by tomcat to u45.
I need to fix all this mess.
elementary-os tomcat jdk
I need to change the JRE used by my tomcat6 server, because I've a JSP App which has compiled classes whith JDK 1.8.0_45
.
Then since I had JRE 1.8.0_40
(and being it used by tomcat), I got a faulire at runtime in my JSP App:
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
So I've installed JRE 1.8.0_45
, just dowloading it, then extract and move to:
/usr/lib/jvm/jre1.8.0_45/
And then updated to use it (as you can see here, sorry since it's in Spanish):
So I just reboot the computer, and then looked for which JRE is using tomcat... but found something like this (sorry if it's not the best way to look at it, was the easier way I think):
ps -aux | grep tomcat
As you can see, the first "line" in the output of grep is the execution of tomcat (isn't it?) but it seems to be using JDK instead of JRE. And plus that, it's using JDK1.8.0_40
, while I'm using JDK1.8.0_45
in this same PC when building my App:
And if we check the JDK options, the selected one hasn't a version specified, so I don't know if there's something wrong about it:
So this is my problem, I just wonder how can I change the JDK/JRE version used by tomcat to u45.
I need to fix all this mess.
elementary-os tomcat jdk
elementary-os tomcat jdk
edited Dec 16 at 4:00
Rui F Ribeiro
38.9k1479129
38.9k1479129
asked May 23 '15 at 10:22
Btc Sources
112119
112119
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can probably fix this by setting the JAVA_HOME
variable in /etc/default/tomcat6
(I'm assuming elementary OS still has the Debian/Ubuntu Tomcat package).
The error you're getting is rather surprising though, I wouldn't expect to have errors regarding Map$Entry
when switching between JDK 1.8.0_40 and 1.8.0_45.
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f205206%2fchange-the-jre-jdk-used-by-tomcat6%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can probably fix this by setting the JAVA_HOME
variable in /etc/default/tomcat6
(I'm assuming elementary OS still has the Debian/Ubuntu Tomcat package).
The error you're getting is rather surprising though, I wouldn't expect to have errors regarding Map$Entry
when switching between JDK 1.8.0_40 and 1.8.0_45.
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
add a comment |
You can probably fix this by setting the JAVA_HOME
variable in /etc/default/tomcat6
(I'm assuming elementary OS still has the Debian/Ubuntu Tomcat package).
The error you're getting is rather surprising though, I wouldn't expect to have errors regarding Map$Entry
when switching between JDK 1.8.0_40 and 1.8.0_45.
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
add a comment |
You can probably fix this by setting the JAVA_HOME
variable in /etc/default/tomcat6
(I'm assuming elementary OS still has the Debian/Ubuntu Tomcat package).
The error you're getting is rather surprising though, I wouldn't expect to have errors regarding Map$Entry
when switching between JDK 1.8.0_40 and 1.8.0_45.
You can probably fix this by setting the JAVA_HOME
variable in /etc/default/tomcat6
(I'm assuming elementary OS still has the Debian/Ubuntu Tomcat package).
The error you're getting is rather surprising though, I wouldn't expect to have errors regarding Map$Entry
when switching between JDK 1.8.0_40 and 1.8.0_45.
answered May 23 '15 at 12:47
Stephen Kitt
163k24365444
163k24365444
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
add a comment |
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried that already and didn't work. I'll try again and tell you if it does.
– Btc Sources
May 24 '15 at 10:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
I've tried it again @StephenKitt. I think tomcat is starting with the new JDK but doesn't work fine don't know why. Anyway your answer is correct, so I will create another one in stackoverflow. Thanks so much
– Btc Sources
May 24 '15 at 18:04
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f205206%2fchange-the-jre-jdk-used-by-tomcat6%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown