How to uninstall JDK 8 (8u73) on Linux? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I installed the JDK 8 update 73 together with Netbeans to play around with it. The whole thing was pretty cumbersome so I decided to uninstall them both and went back to Brackets.
For Netbeans it was like a walk in the park with its already provided uninstaller packet ".sh" in the directory.
However, with JDK, there seems to be no freaking way for me to rid of this thing. I searched for anything "jdk" in Software Manager and removed everything I saw in there. I also digged into the usr/lib/jvm to manually delete any leftover folders. But, as soon as I ran the installer packet ".sh" it told me that JDK 8 update 73 was still already installed....
Can you guys please help me remove this completely??? Many thanks!!
PS: I'm using Linux Mint Cinnamon 64-bit.

Try this to find files:
sudo find /usr/ -name "*jdk*"
sudo find /opt/ -name "*jdk*"
sudo find /etc/ -name "*jdk*"
Now if that doesn't find files, try with another keyword like "java".
And if that doesn't work then the installer may be checking for defined variables like $JAVA_HOME, you can check if it's defined by doing:
echo $JAVA_HOME
if it prints a path, then it's set and you need to unset it. See the following page for a reference:
https://help.ubuntu.com/community/EnvironmentVariables

Go to synaptic manager or software center and remove jdk. If it worked pls reply.

I think JDK placed in /usr/lib/jvm/jdk1.8.xxx or something like there.
It's better to install separately JDK and Netbeans.
My favourite way to install JDK in Mint (I'm using Linux Mint 17.3) described here.

I wonder if you can remove it from:
Control Panel of Windows > Add/Remove Programs > Choose Java SDK
you want to remove

Related

How do I install Java 12 on Mac OSX now that Java 13 is out? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I cannot find Java 12 to install anymore, just Java 13. But Gradle does not support Java 13 yet, so I need to use 12 as an alternative for now. When I look in Homebrew using brew search java I find all sort of javas: Java 11, Java 6 (!) and Java, which used to be Java 12 but is now Java 13.
Any idea how I can get Java 12?
Solution 1
You can get Java 12 from the AdoptOpenJDK Homebrew tap. (a tap is a formula repository) And the AdoptOpenJDK team maintains different versions of JDK in this repo.
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk12
Solution 2
java is a formula defined in the repo Homebrew-cask. You can search and find the history file java.rb where Java 12 was defined within, and install Java 12 with the URL to that specific history file.
The following command installs vanilla OpenJDK (not the AdoptOpenJDK) 12.0.2.
brew cask install https://raw.githubusercontent.com/Homebrew/homebrew-cask/26203ad42b40c4bc3baa2f6cfa8469f1245b7fbc/Casks/java.rb

"java" command is getting executed but not "javac" command [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
My question looks similar to java-comand-works-but-not-javac but its different from the way that I deliberately had removed java bin directory from "path" variable and "JAVA_HOME" so that "java" and "javac" shouldn't be executed without giving full path to "javac" or "java".But still "java" is getting executed. For "javac" it is throwing 'javac' is not recognized as an internal or external command,
operable program or batch file.
But for "java" it is showing C:\Users\Nandi_Gaurav>java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
I want to know the reason. I am using "Windows-7" .
If the problem is that java running when you don't expect it to1, open up a cmd window and execute:
C:\USERS\Nandi_Gaurav\Documents>where java
C:\Windows\System32\java.exe
You'll almost certainly see that there's one installed in the Windows system directory.
That's why it's still executing even though you think you've removed it from the path.
If you really want to get rid of it, either delete it (assuming it's still available in the JRE/JDK directory) or rename it to something like nojava.exe.
Whatever you do, don't remove c:\windows\system32 from your path, that'll cause all sorts of issues :-)
1 Your problem may also be that javac is not running, in which case the JDK may not be installed. However, based on your question, that doesn't seem to be the issue - you're more concerned about things running when you've tried to disable them, rather than with things not running when they should be.
Java may be executed from the JRE that is installed in another path of your system.
Javac is part of the JDK, so you should install it, and set the appropriate paths.
You need to install Java Development Kit (JDK) which provides javac to compile your java code. You have the Java Runtime Environment (JRE) which is mainly for running java programs.
This question may help: javac : command not found
I think your 'Path'-variable is only used for javac.
Java-configuration in windows can be found here:
Explanation on java.com
Most probable issue could be that you are using JRE instead of JDK.
When you download java you can get it either as jre(Java Runtime Environment) or jdk(Java Development Kit) .
If you just want to run java programs on a machine , install JRE.
if you want to develop , compile and run a java program install JDK.
Both can be downloaded from oracle.Link for JDK 1.6
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPR

I have trouble uninstalling Java 8 (MAC) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have installed Java 1.8.0_20 & I can't uninstall it. I have no Java folder in my Library so any other walkthroughs have been useless & every time I switch the preferred order it just sets back to normal as soon as I close Java preferences. I need like a terminal command or folder to go to manually delete it.
Yeah this is due to the fact that Oracle took no care now that they are owners of the Mac version (since 1.6). This is covered here.
Try these terminal commands:
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

Not able to run Apache James [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I downloaded the Apache James mailing server Apache-james-3.0-beta4-app . I tried to run it on Windows 7 ultimate by clicking on run.bat file inside following directory
C:\Users\Jack\Desktop\New folder\Servers\MailServer\apache-james-3.0-beta4-app\apache-james-3.0-beta4\bin.
Command prompt started for a while and it is getting disappeared. I am not able to read the error on the command prompt as it is so quick.
Any kind of suggestion would be appreciated. When I am running telnet command in command prompt it is showing that command not recognized. I don't know how to turn it on in Windows.
Starting the server
The best way to start Apache James is in the terminal.
From the apache-james\bin folder type:
james.bat
You will see the following instructions:
Usage: james.bat { console : start : pause : resume : stop : restart :
install : remove }
Type:
james.bat install
followed by
james.bat start
The server should start at this point. If it does not start you can see any errors in \log\wrapper.log and the server status in \log\james-server.log.
Fixing the JAXB issue
If you are running java 7 or later, it is highly likely the server will not start due to a jaxb issue in the current release of Apache James (version 3.2), which will prevent the server from starting.
To work around this, download the following files
jaxb-api-2.1.jar
jaxb-core-2.1.14.jar
jaxb-impl-2.1.14.jar
And include these files in the folder
/conf/lib
For more information on this point see How to resolve java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException in Java 9
After following these steps, James should start. No modifications to wrapper.conf should be necessary.
To enable telnet on Windows 7 click the Start button, click Control Panel, click Programs, and then click Turn Windows features on or off. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation. In the Windows Features dialog box, select the Telnet Client check box. Click OK.
Apache James requires a Java Runtime Environment (JRE) version 1.5 or higher. In addition, the environment variable JAVA_HOME should be set to the JRE home directory before running James.
If you run JDK7, James will not start due to a bug in JAXB. As temporary workaround, you can download the latest 2.1 version of JAXB from http://jaxb.java.net/2.1.13/JAXB2_20100510.jar and copy the extracted jaxb-impl.jar into conf/lib.
Update:
There is, actualy, one more workaround for this. Take the latest version of James (3.0-beta5) from here, it is not affected by this annoying JAXB bug.
During installation of apache-james-3.0-beta4, I came across same JAXB issue as mentioned above. Even copying jaxb-impl.jar of version 2.1 to apache-james-3.0-beta4/conf/lib did not help as it was never picked up in classpath. After making below changes in the apache-james-3.0-beta4/conf/wrapper.conf file, I was able to run Apache James successfully:
Point to the correct Java command:
wrapper.java.command=/usr/java/jdk1.7.0_67/bin/java
Add a new entry for classpath with increased number for jaxb-impl-2.1.jar:
wrapper.java.classpath.120=../conf/lib/jaxb-impl-2.1.jar
Please provide log output if issue still occurs after above changes.

JDK/JRE installer not working on x64 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
So I began developing Java applications on my laptop a few weeks ago, and I've been doing so on my laptop since then... But now when I try to install the JDK on my PC, it doesn't install (as in, I double click on the JDK[version].exe and the Install Wizard doesn't even show up). -- and yes, I have the JRE installed. I'm very confused and frustrated... I'd really appreciate if someone can tell me what I'm doing wrong (and, yes, I've already tried reinstalling the JRE).
I had the same problem, tried installing JDK 8u111 and 8u112 in both x64 and i586 flavors on Windows 7 x64 and it seemed that nothing worked.
Checking in Control Panel > Administrative Tools > Event Viewer > Windows Logs > Application as suggested by Felix Christi showed that the Windows Installer has actually completed all the installations.
So I went to Program Files\Java and found all of the 4 JDK installations sitting nicely side-by-side, without me even getting a single confirmation message. Have you checked that the installation did really fail in your case?
First of all, please check your PC operating system. If it is windows (thats what I guess by your question detail about wizard), try to see system information (check for 64 bit). If it is not, please try to install x86 (32 bit) JDK.
If it is x64 (64 bit) then, try to run with "Run as administrator" option by right clicking it.
If it is not working either way, then please check the system log from Control Panel -> Administrative Tools -> Event Viewer and see what is going around on installation.
In the worst case, for work around, just install 32 bit JDK, it should work fine in 64 bit OS.
After all this, if you are successful in installing, please follow this link to configure JDK
JDK STEP BY STEP
If nothing shows up when you launch your JDK installer, it is likely performing a silent install. Whether or not your installer runs silently is controlled by Java's System Runtime Configuration File. On Windows, that file can be found here:
Windows: %ALLUSERSPROFILE%\Oracle\Java\java.settings.cfg
The value of the environment variable %ALLUSERSPROFILE% is typically
C:\ProgramData.
Change the line INSTALL_SILENT=Enable to INSTALL_SILENT=Disable, and try launching your installer again. The Install Wizard should appear as expected.
I had the same problem, tried installing JDK 8u111 and 8u112 in both x64 and i586 flavors on Windows 7 x64 and it seemed that nothing worked.
Checking in Control Panel > Administrative Tools > Event Viewer > Windows Logs > Application as suggested by Felix Christi showed that the Windows Installer has actually completed all the installations.
So I went to Program Files\Java and found all of the 4 JDK installations sitting nicely side-by-side, without me even getting a single confirmation message. Have you checked that the installation did really fail in your case?
--- I'm having the same issue as the above... it seemed like jdk is being installed in the background... this is frustrating because I'm waiting for the jdk window to ask me for a path to install this... I would like to install it on a separate folder on my C drive. I've set the environment variables and I can't figure out what's wrong...
I had the same issue and eventually I solved it next way. All that I was needed to do was turn off Smart Screen in windows settings
If you don't familiar with Smart Screen You can try to read in google what is it and also I attached screenshot with my settings. Now all is ok
In my case, it turned out to be that my disk was almost full (500MB free space left). The installer(8u141) would just exit without any message, and I had no error in the Event Viewer.
In my case jdk1.8.0_144 was installed SILENTLY from a distributive jdk-8u144-windows-x64.exe. It was a surprise. (OS Windows 7 64)
I had this problem. Nothing was happening, just saw installer file in processes.
Steps, which helped me:
Moved installer to C:\ directory;
Turned off DrWeb;
Turned on autostart Java via msconfig.
Windows 7 x64
Download the JDk from here. Please check the product/File description which matches your PC as download it.
In my case I went to the Event Viewer and I got this message, same message I got when I tried to run installer from the downloads folder

Categories