Messed up java in my Ubuntu 12.04Cannot execute Java program: UnsupportedClassVersionErrorjava MainServer...
Word or phrase for showing great skill at something without formal training in it
Avoiding morning and evening handshakes
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Unwarranted claim of higher degree of accuracy in zircon geochronology
How to remove trailing forward slash
How to define new environment, using proof-environment
Number of FLOP (Floating Point Operations) for exponentiation
How do creatures spend Hit Dice after a short rest (if they can do so)?
Why can a 352GB NumPy ndarray be used on an 8GB memory macOS computer?
What makes the Forgotten Realms "forgotten"?
Why do neural networks need so many training examples to perform?
"On one hand" vs "on the one hand."
Tikzing a circled star
How would an AI self awareness kill switch work?
Quenching swords in dragon blood; why?
Why zero tolerance on nudity in space?
Using only 1s, make 29 with the minimum number of digits
Planet at the end of Solo: A Star Wars Story
Explain the objections to these measures against human trafficking
How to avoid being sexist when trying to employ someone to function in a very sexist environment?
How to deal with an incendiary email that was recalled
Overfitting and Underfitting
A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?
How did the original light saber work?
Messed up java in my Ubuntu 12.04
Cannot execute Java program: UnsupportedClassVersionErrorjava MainServer gives java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0Java Problem in configurationHow can I uninstall my current java and install sun java 1.6Oracle Java 7 on Linux PowerPCJavac package is missingInstalling JDK.rpm file using alienopenjdk 7 java freeze launchUnable to install Oracle Java JDKJDK11 on Ubuntu 18.04
I will start from the very beginning on how I made a Mess!!
I needed Java programming on my Ubuntu 12.04. so, I downloaded Net Beans setup from the site. When I tried to run the setup, I found that JDK is not installed. i Anyway, as I used to do in Windows,(I am a newbie in Ubuntu), I went to Oracle Java site, downloaded the rpm package.
Next, I found that rpm is by default not installed in Ubuntu, so I downloaded rpm too via terminal. When I tried to install jdk setup through rpm, It gave error for installing something named "alien".
Ok!! Now, I installed alien and finally, something happened to the rpm file. Then a message came "jdk1.70.deb generated". Whoa!!! I knew this extension, its an installer file for Ubuntu, I quickly went to the .deb file via nautilus, n doouble clicked it. My software centre showed that it's already installed. N he was right! I found the jdk folder in /usr/java. But still, javac wasnt running!!!
I wrote java -version and it showed that openjdk is being used n not my new setup.
I searched on net, n found this tutorial by webupd8. tried to do this too, changed the java folder as per the guide in site. But now, when I try to run the javac -version on terminal, it gives an error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
n now, even java -version gives the same error!
I was trying to find out, how to uninstall my newly installed java, but havent found anything. N now, java is not working even on my browsers!
Please help. n get me out of this mess!!! :( :(
12.04 java oracle
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I will start from the very beginning on how I made a Mess!!
I needed Java programming on my Ubuntu 12.04. so, I downloaded Net Beans setup from the site. When I tried to run the setup, I found that JDK is not installed. i Anyway, as I used to do in Windows,(I am a newbie in Ubuntu), I went to Oracle Java site, downloaded the rpm package.
Next, I found that rpm is by default not installed in Ubuntu, so I downloaded rpm too via terminal. When I tried to install jdk setup through rpm, It gave error for installing something named "alien".
Ok!! Now, I installed alien and finally, something happened to the rpm file. Then a message came "jdk1.70.deb generated". Whoa!!! I knew this extension, its an installer file for Ubuntu, I quickly went to the .deb file via nautilus, n doouble clicked it. My software centre showed that it's already installed. N he was right! I found the jdk folder in /usr/java. But still, javac wasnt running!!!
I wrote java -version and it showed that openjdk is being used n not my new setup.
I searched on net, n found this tutorial by webupd8. tried to do this too, changed the java folder as per the guide in site. But now, when I try to run the javac -version on terminal, it gives an error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
n now, even java -version gives the same error!
I was trying to find out, how to uninstall my newly installed java, but havent found anything. N now, java is not working even on my browsers!
Please help. n get me out of this mess!!! :( :(
12.04 java oracle
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Ok, first of all, rewind your steps, and you should have read the warning Warning: JDK 7 is available as a developer preview release, so use it at your own risk.. Now, the last thing you did was changing the java directory, did you followed the next steps? "Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04):"?
– Braiam
Aug 11 '13 at 5:30
yes.. I did that too.. but it didnt helped. javac -version and java -version still gave the same errors
– Akshit Arora
Aug 11 '13 at 6:48
Then work backwards, if the thing say move from to, you move to from, if it's says install, you uninstall.
– Braiam
Aug 11 '13 at 7:04
add a comment |
I will start from the very beginning on how I made a Mess!!
I needed Java programming on my Ubuntu 12.04. so, I downloaded Net Beans setup from the site. When I tried to run the setup, I found that JDK is not installed. i Anyway, as I used to do in Windows,(I am a newbie in Ubuntu), I went to Oracle Java site, downloaded the rpm package.
Next, I found that rpm is by default not installed in Ubuntu, so I downloaded rpm too via terminal. When I tried to install jdk setup through rpm, It gave error for installing something named "alien".
Ok!! Now, I installed alien and finally, something happened to the rpm file. Then a message came "jdk1.70.deb generated". Whoa!!! I knew this extension, its an installer file for Ubuntu, I quickly went to the .deb file via nautilus, n doouble clicked it. My software centre showed that it's already installed. N he was right! I found the jdk folder in /usr/java. But still, javac wasnt running!!!
I wrote java -version and it showed that openjdk is being used n not my new setup.
I searched on net, n found this tutorial by webupd8. tried to do this too, changed the java folder as per the guide in site. But now, when I try to run the javac -version on terminal, it gives an error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
n now, even java -version gives the same error!
I was trying to find out, how to uninstall my newly installed java, but havent found anything. N now, java is not working even on my browsers!
Please help. n get me out of this mess!!! :( :(
12.04 java oracle
I will start from the very beginning on how I made a Mess!!
I needed Java programming on my Ubuntu 12.04. so, I downloaded Net Beans setup from the site. When I tried to run the setup, I found that JDK is not installed. i Anyway, as I used to do in Windows,(I am a newbie in Ubuntu), I went to Oracle Java site, downloaded the rpm package.
Next, I found that rpm is by default not installed in Ubuntu, so I downloaded rpm too via terminal. When I tried to install jdk setup through rpm, It gave error for installing something named "alien".
Ok!! Now, I installed alien and finally, something happened to the rpm file. Then a message came "jdk1.70.deb generated". Whoa!!! I knew this extension, its an installer file for Ubuntu, I quickly went to the .deb file via nautilus, n doouble clicked it. My software centre showed that it's already installed. N he was right! I found the jdk folder in /usr/java. But still, javac wasnt running!!!
I wrote java -version and it showed that openjdk is being used n not my new setup.
I searched on net, n found this tutorial by webupd8. tried to do this too, changed the java folder as per the guide in site. But now, when I try to run the javac -version on terminal, it gives an error:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
n now, even java -version gives the same error!
I was trying to find out, how to uninstall my newly installed java, but havent found anything. N now, java is not working even on my browsers!
Please help. n get me out of this mess!!! :( :(
12.04 java oracle
12.04 java oracle
asked Aug 11 '13 at 5:02
Akshit AroraAkshit Arora
10614
10614
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 min ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Ok, first of all, rewind your steps, and you should have read the warning Warning: JDK 7 is available as a developer preview release, so use it at your own risk.. Now, the last thing you did was changing the java directory, did you followed the next steps? "Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04):"?
– Braiam
Aug 11 '13 at 5:30
yes.. I did that too.. but it didnt helped. javac -version and java -version still gave the same errors
– Akshit Arora
Aug 11 '13 at 6:48
Then work backwards, if the thing say move from to, you move to from, if it's says install, you uninstall.
– Braiam
Aug 11 '13 at 7:04
add a comment |
Ok, first of all, rewind your steps, and you should have read the warning Warning: JDK 7 is available as a developer preview release, so use it at your own risk.. Now, the last thing you did was changing the java directory, did you followed the next steps? "Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04):"?
– Braiam
Aug 11 '13 at 5:30
yes.. I did that too.. but it didnt helped. javac -version and java -version still gave the same errors
– Akshit Arora
Aug 11 '13 at 6:48
Then work backwards, if the thing say move from to, you move to from, if it's says install, you uninstall.
– Braiam
Aug 11 '13 at 7:04
Ok, first of all, rewind your steps, and you should have read the warning Warning: JDK 7 is available as a developer preview release, so use it at your own risk.. Now, the last thing you did was changing the java directory, did you followed the next steps? "Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04):"?
– Braiam
Aug 11 '13 at 5:30
Ok, first of all, rewind your steps, and you should have read the warning Warning: JDK 7 is available as a developer preview release, so use it at your own risk.. Now, the last thing you did was changing the java directory, did you followed the next steps? "Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04):"?
– Braiam
Aug 11 '13 at 5:30
yes.. I did that too.. but it didnt helped. javac -version and java -version still gave the same errors
– Akshit Arora
Aug 11 '13 at 6:48
yes.. I did that too.. but it didnt helped. javac -version and java -version still gave the same errors
– Akshit Arora
Aug 11 '13 at 6:48
Then work backwards, if the thing say move from to, you move to from, if it's says install, you uninstall.
– Braiam
Aug 11 '13 at 7:04
Then work backwards, if the thing say move from to, you move to from, if it's says install, you uninstall.
– Braiam
Aug 11 '13 at 7:04
add a comment |
1 Answer
1
active
oldest
votes
This is a better howto for getting Oracle Java7 installed on Ubuntu: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f331175%2fmessed-up-java-in-my-ubuntu-12-04%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
This is a better howto for getting Oracle Java7 installed on Ubuntu: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
add a comment |
This is a better howto for getting Oracle Java7 installed on Ubuntu: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
add a comment |
This is a better howto for getting Oracle Java7 installed on Ubuntu: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
This is a better howto for getting Oracle Java7 installed on Ubuntu: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
answered Nov 1 '13 at 0:27
David PurdueDavid Purdue
1,937714
1,937714
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f331175%2fmessed-up-java-in-my-ubuntu-12-04%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
Ok, first of all, rewind your steps, and you should have read the warning Warning: JDK 7 is available as a developer preview release, so use it at your own risk.. Now, the last thing you did was changing the java directory, did you followed the next steps? "Install Update Java package created by Bruce Ingalls (packages available for Ubuntu 11.10, 11.04, 10.10 and 10.04):"?
– Braiam
Aug 11 '13 at 5:30
yes.. I did that too.. but it didnt helped. javac -version and java -version still gave the same errors
– Akshit Arora
Aug 11 '13 at 6:48
Then work backwards, if the thing say move from to, you move to from, if it's says install, you uninstall.
– Braiam
Aug 11 '13 at 7:04