Меню Рубрики

Mac os удалить jdk

Mac os удалить jdk

Как удалить Java с компьютера Mac?

Удаление Oracle Java с помощью терминала

Примечание. Для удаления Java требуются полномочия администратора, при этом команды удаления должны выполняться либо от имени учетной записи пользователя root, либо с помощью инструментального средства sudo .

Удалите один каталог и один файл (символьная ссылка), выполнив следующие действия:

  1. Нажмите на значок Finder на рабочем столе
  2. Нажмите Перейти в меню Finder
  3. Нажмите Утилиты
  4. Дважды нажмите на значок Терминал
  5. В окне терминала выполните операции Копировать и вставить для приведенных ниже команд:
    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
    sudo rm -fr

/Library/Application\ Support/Oracle/Java

Не пытайтесь удалить Java путем удаления инструментов Java из /usr/bin . Этот каталог является частью системного программного обеспечения, поэтому любые внесенные изменения будут отменены Apple при следующем обновлении ОС.

Примечание. После удаления Java можно удалить кэш Java Deployment с использованием этих инструкций.

Можно ли восстановить Apple Java 6 после удаления Oracle Java?

Да, смотрите инструкции на веб-сайте Apple: Восстановление Apple Java 6. Если на вашем компьютере установлен комплект JDK 7 или более поздней версии и вы хотите восстановить версию Apple Java 6, необходимо сначала удалить эти версии комплекта JDK. См. инструкции в разделе Удаление JDK.

ДОПОЛНИТЕЛЬНАЯ ТЕХНИЧЕСКАЯ ИНФОРМАЦИЯ

Удаление JDK

Для удаления комплекта JDK 7 и более поздних версий требуются полномочия администратора. Команды удаления должны выполняться либо от имени учетной записи пользователя root, либо с помощью инструментального средства sudo . См. инструкции в разделе Удаление JDK.

Источник

Removing Java 8 JDK from Mac

So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it’s easy to change between versions.

Doing some Play development with IntelliJ. For some reason, IntelliJ is compiling with 8 even though:

  • I have the compiler set in Preferences to use 1.6
  • Supposedly it’s using SBT through external build, but sbt from the command line works
  • JAVA_HOME is pointing to JDK 6.

If I go to the Java Preferences page, it does show 8 installed, but there is no option to uninstall it and it doesn’t see any of the other versions.

When I do which java , it tells me /usr/bin/java and I do /usr/bin/java -version and it returns 1.6.

Note: with a little fiddling, you can use IntelliJ and JDK7, see here.

12 Answers 12

I was able to unistall jdk 8 in mavericks successfully doing the following steps:

Run this command to just remove the JDK

Run these commands if you want to remove plugins

You just need to use these commands

Managing Java versions on Mac OSX is a nightmare. I recently switched over to using JDK 1.7, deleting JDK 6 from my MacBook entirely (I also had traces of JDK 5 — this laptop has been updated a few times).

Here’s what I did to move to JDK 7.

2) Remove (using rm — if you’ve got backups, you can revert if you make a mistake) all the JDK6 and JRE6 files.

At this stage, you should see:

3) In the folder /Library/Java/Extensions/, you’ll need to remove all the old jar files, the ones that correspond to other releases of Java. If you don’t, you’ll get the infamous message about the wrong version of tools.jar (see Builds failing after upgrading to Java7, Missing Tools.jar and bad class versions). It is not enough to rename the jar files, because Java will open every jar in that folder — I moved mine into a sub-directory. It’s safe to remove them once you know everything else works.

I haven’t found I need to set JAVA_HOME for simple things.

Источник

Удаление Java 8 JDK из Mac

Итак, я установил бета-версию JDK 8 некоторое время назад, чтобы посмотреть на некоторые примеры. Я думал, что теперь это легко изменить между версиями.

делает некоторые разработки игры с IntelliJ. По какой-то причине IntelliJ компилируется с 8, хотя:

  • у меня есть компилятор, который указан в настройках для использования 1.6
  • предположительно он использует SBT через внешнюю сборку, но sbt из командной строки работает
  • JAVA_HOME указывает на JDK 6.

Если я перейду на страницу настроек Java, он покажет 8 установлен, но нет возможности удалить его, и он не видит никаких других версий.

когда я делаю which java , Он говорит мне /usr/bin/java и я /usr/bin/java -version и это возвращает 1.6.

Примечание: с немного возиться, вы можете использовать IntelliJ и JDK7, см здесь.

10 ответов

я смог unistall jdk 8 в mavericks успешно выполнить следующие шаги:

запустите эту команду, чтобы просто удалить JDK

выполните следующие команды если вы хотите удалить Плагины

сделать это очень просто.

управление версиями Java на Mac OSX-это кошмар. Недавно я переключился на использование JDK 1.7, полностью удалив JDK 6 с моего MacBook (у меня также были следы JDK 5 — Этот ноутбук был обновлен несколько раз).

вот что я сделал, чтобы перейти на JDK 7.

2) удалить (используя rm-если у вас есть резервные копии, вы можете вернитесь, если вы допустили ошибку) все файлы JDK6 и JRE6.

на этом этапе вы должны увидеть:

3) в папке /Library/Java/Extensions/ вам нужно удалить все старые файлы jar, те, которые соответствуют другим выпускам Java. Если вы этого не сделаете, вы получите печально известное сообщение о неправильной версии инструментов.банку (см. сбой сборки после обновления до Java7, отсутствующие инструменты.jar и плохой класс версии). Недостаточно переименовать файлы jar, потому что Java откроет каждую банку в этой папке — я переместил ее в подкаталог. Безопасно удалить их, как только вы знаете, что все остальное работает.

Я не нашел, что мне нужно установить JAVA_HOME для простых вещей.

Источник

Mac os удалить jdk

Note: To uninstall Java, you must have Administrator privileges and execute the remove command either as root or by using the sudo tool.

Remove one directory and one file (a symlink), as follows:

  1. Click on the Finder icon located in your dock
  2. Click on Go in the Finder menu
  3. Click on Utilities
  4. Double-click on the Terminal icon
  5. In the Terminal window Copy and Paste the commands below:
    sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
    sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
    sudo rm -fr

/Library/Application\ Support/Oracle/Java

Do not attempt to uninstall Java by removing the Java tools from /usr/bin . This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.

Note: After successfully uninstalling Java, you may remove Java Deployment cache using these instructions.

Can I restore Apple Java 6 after uninstalling Oracle Java?

Yes, see the instructions on the Apple website Restore Apple Java 6. If you have JDK 7 or later versions installed on your system and you want to restore Apple Java 6, then those JDK versions need to be uninstalled first. See the instructions to Uninstall JDK.

MORE TECHNICAL INFORMATION

Uninstall JDK

To uninstall JDK 7 and later versions, you must have Administrator privileges and execute the remove command either as root or by using sudo . See the instructions to Uninstall JDK.

Источник

Question: Q: How do I remove Java from my Mac?

How do I completely remove Java from my Mac?

iPad 2, Mac OS X (10.6.8)

Posted on Feb 3, 2013 11:18 AM

Helpful answers

The other poster is incorrect. You absolutely may entirely remove Java from your system.

Uninstall Oracle Java 7

Uninstalling Oracle Java only involves deleting the Java Plugin file JavaAppletPlugin.plugin .

Note: To uninstall Java 7, you must have Administrator privileges.

  1. Click on the Finder icon located in your dock
  2. Click on Applications tab on the sidebar
  3. In the Search box enter JavaAppletPlugin.plugin
  4. This will find the JavaAppletPlugin.plugin file
  5. Right click on JavaAppletPlugin.plugin and select Move to Trash

From there, empty your trash. As a further measure for security, open up Safari and follow this short list of instructions;

Safari > Preferences > Security > Uncheck «Enable Java»

You can keep Enable JavaScript, as JavaScript is separate from Java and is actually needed for sites like Youtube. The only real loss of uninstalling Java is if you play Minecraft. Otherwise, 0.2% of all major websites actually use Java itself. Your computer will be safer and faster without this broken plugin. Best of luck.

Feb 22, 2013 10:18 AM

You don’t need to remove it completely. It’s deeply embedded in the system and removing it is no simple task. But if you open Java Preferences.app in Utilities, you can disable the Java Runtime Environment, which is where all the open vulnerabilities are. Just uncheck all three boxes and you’re done. You can also disable the Java plugin in the browser.

Feb 3, 2013 11:32 AM

How to uninstall Java using the Terminal:

Jun 23, 2016 5:02 AM

There’s more to the conversation

Loading page content

Page content loaded

You don’t need to remove it completely. It’s deeply embedded in the system and removing it is no simple task. But if you open Java Preferences.app in Utilities, you can disable the Java Runtime Environment, which is where all the open vulnerabilities are. Just uncheck all three boxes and you’re done. You can also disable the Java plugin in the browser.

Feb 3, 2013 11:32 AM

The other poster is incorrect. You absolutely may entirely remove Java from your system.

Uninstall Oracle Java 7

Uninstalling Oracle Java only involves deleting the Java Plugin file JavaAppletPlugin.plugin .

Note: To uninstall Java 7, you must have Administrator privileges.

  1. Click on the Finder icon located in your dock
  2. Click on Applications tab on the sidebar
  3. In the Search box enter JavaAppletPlugin.plugin
  4. This will find the JavaAppletPlugin.plugin file
  5. Right click on JavaAppletPlugin.plugin and select Move to Trash

From there, empty your trash. As a further measure for security, open up Safari and follow this short list of instructions;

Safari > Preferences > Security > Uncheck «Enable Java»

You can keep Enable JavaScript, as JavaScript is separate from Java and is actually needed for sites like Youtube. The only real loss of uninstalling Java is if you play Minecraft. Otherwise, 0.2% of all major websites actually use Java itself. Your computer will be safer and faster without this broken plugin. Best of luck.

Feb 22, 2013 10:18 AM

Macology’s reply is incorrect. While his instructions are the official Oracle instructions they merely delete the JavaApplePlugin. That’s not an uninstall. Given (1) the ungoing security problems with Java in the browser and (2) that java -version does not report what you expect (Java Version 7 Update X), I’d love to find full uninstlall directions. Oh. want to make sure you’re secure, turn it back on in the browsers. Uhm. right.

Apr 23, 2013 12:15 PM

You are incorrect. If you follow the instructions I have given and leave JavaScript disabled, any attempt to use a Java based site will result in being told that you need Java installed. And JavaScript is separate from Java itself. Do not spread fear, uncertainty, doubt and misinformation n these forums. People here need assistance, lies about being unable to remove third party software. Java is currently locked by default by Apple. So if a user opts to install it anyways, this is the method to remove it.

Apr 24, 2013 8:42 AM

In the Terminal window Copy and Paste the command below:

Apr 25, 2013 4:59 PM

This nukes it once and for all. Better to move it Disabled Plug-ins, same location, in case it is ever needed in the future. Besides, that’s just an alias. It doesn’t remove the original.

Apr 26, 2013 3:56 AM

After trying various things suggested, here’s what I’ve found (basically a summary of the above with a few additional details)

You can disable it in the browser (presumably all) by going to System Preferences > Java

Deleting the JavaAppletPlugin (another approach above) may do something similar or may block more Java items from running

A full uninstall is much more complicated (e.g. on my system, you’re removing around 4k items). BUT, when I did a test (by adding .disabled on the end of several key java folders) —while I didn’t find OS X complaining— I immediately found programs that wouldn’t function. The most surprising is Creative Suite. Starting Photoshop (I think) resulted in it saving java is required. My experiment in being Java free was very very brief.

FWIW, the way I’m managing things is that I keep Java turned off in all the browsers (Chrome and Safari) I use regularly. Safari is my, dag nab it, I have to go site X that uses Flash|Java|Dumb plugin browser.

AND then, I only use that browser when I need to go to one of those sites. There’s still some security risk but my exposure is a lot lower. The why Safari isn’t really relevent beyond saying I picked the browser I didn’t need for other stuff.

Finally (and I wish I could remember where I found this), there are some pretty hardcore security settings possible. Whereve I found it, I’ve got Java asking permission every time a Java applet tries to run in the browser. Slightly annoying but not likely a rogue applet is going to run without my knowledge.

Hopefullly that adds more to the light everyone has shed on the subject.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

  • Mac os удаленное управление компьютером
  • Mac os удаленное подключение к рабочему столу
  • Mac os удаленное подключение к windows
  • Mac os удаление файлов через терминал
  • Mac os удаление программ терминал