Привет всем! Сегодня я попробую написать масштабную статью про Java. Ведь многие приложения сейчас ей используют.
А во время работы возникают порой ошибки.
Java — это язык программирования или технология, на которой пишут онлайн-приложения. Т.е. чаты на сайтах, игры, загрузка файлов (в том числе фото, видео) и многие другие вещи.
Преимущество данной технологии:
А из недостатков скорость выполнения, хотя и были усовершенствования.
Возможно ещё есть, но это основные из официальных источников.
А вот какая история:
Для того чтобы обновить java (или установить) необходимо перейти на официальный сайт приложения . И нажать загрузить java.
И ещё… В браузерах, которые разработаны на движке хромиум, java может не работать. Если версия старая, то можно попробовать в адресной строке введя chrome://flags/#enable-npapi далее пункт «Включить NPAPI».
Но скорее всего, придется скачивать старую версию браузера, искать дополнения или же использовать Intenet Explorer.
Установка простая, просто нажимаем инстал.
Обновить так же можно через панель управления:
А в приложении вкладка Update.
Кстати вот инструкция, по включению в браузерах.
Для проверки версии, так же можно зайти в панель управления, выбрать java.
Кнопка About.
В открывшемся окне видим версию.
Удаляется Java обычным способом, через средство удаления программ, однако если вы не смогли удалить, то воспользуйтесь утилитой .
Вот так выглядит удаление через JavaUninstallTool.
Тут я попробую разобрать частые ошибки при работе. Если вдруг у вас были ошибки и вы их решили, тоже не стесняйтесь пишите в комментариях, поможем друг другу, так сказать…
Для начала, выполните обычные действия, убедитесь что установлена необходимая версия java, не блокирует и фаервол. Перезагрузка компьютера и роутера. Далее, если ничего не помогло, идем в панель управления, выбираем java.
Если вы используете прокси, то нужно в General — Network Settings — Use proxy server прописывать прокси.
Еще есть случаи, когда необходимо не хранить временные файлы java на компьютере, а хранить на сервере банка например, но это индивидуальная ситуация. В таких ситуациях нужно читать инструкции на сайтах банков. И вообще всегда, если настраиваете под банк java, то читайте индивидуальные инструкции банка.
В этой ситуации удалите java с помощью приложения или можно попробовать вручную через панель управления. Далее устанавливаете заново.
В этой ошибке копируем путь до программы, у меня это: C:\Program Files (x86)\Java\jre1.8.0_144\bin
Ищем PATH и нажимаем редактировать.
Тут теперь аккуратнее!
Например вот мой кусок кода: C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;
Т.е. каждый параметр должен быть отделен точкой с запятой. Если вы не уверены в своих силах, скопируйте на всякий случай эту строку куда-нибудь.
Итак, что мы делаем:
Так же можете попробовать вот такой путь: C:\ProgramData\Oracle\Java\javapath;
Chrome browser versions 42 and above. Starting with Chrome version 42 (released April 2015), Chrome has disabled the standard way in which browsers support plugins. More info
The offline installer package will often complete successfully even though the online installer package has encountered a problem. The offline installer package file is large and will take longer to download than the online installer.
» Download the Windows Offline installer
Remove prior installations of Java that are not working before trying to install again.
» Uninstall Java for Windows
» Uninstall Java for Mac
Active firewall or antivirus software may prevent Java from installing properly. Remember to turn your firewall or antivirus software back on when you have successfully completed the Java install.
This message is most commonly seen by Windows XP users. Running a Microsoft utility and trying the offline installer may resolve the issue. See the installshield FAQ for more details.
You can test your Java installation using the instructions in the section below.
Once you have determined that Java is installed correctly, try the following items to help you run a particular Java application.
If you are still prompted to update Java after installing the latest version, try restarting your browser. Close all of the browser windows, then reopen any web pages that require Java. In most cases starting a new browser session should make the latest installed version of Java active in your browser.
Note
: If you are still prompted to update, try restarting your system. Some systems need a restart to register the newly installed Java plugin.
Browsers will ask for your permission to run the Java plug-in in the browser. The permission prompts vary according to the browser.
» Activate Java plug-in in the browser
Browsers may disable the Java plug-in or related add-ons by default. You may need to configure your browser to enable the Java plug-in.
» Enable Java plug-in in the browser
If Java is not enabled in the Java Control Panel, you will be unable to run Java applications in any browser.
» Enable Java content in the browser using the Java Control panel
Ensure that the Java security level is not preventing the application from running. The default security level may restrict the ability to run applications that may present a risk to your computer.
» Configure security level settings in the Java Control panel
The Exception Site List feature was introduced starting with the Java 7 Update 51 release. Adding the application URL to the Exception list allows users to run Rich Internet Applications (RIAs) that would normally be blocked by security checks.
» Configure the Exception Site List
Some Java applications have not been upgraded to meet new Java security standards. As a result, these apps are blocked thus disabling printing. Contact the website or application developer to notify them of the issue.
» Printing issues FAQ
Sometimes a corrupted file in the Java cache can prevent an application from running. You
can safely delete the temporary files that Java downloads since Java will download them
again and ensure they are up-to-date.
» Clear the Java cache
Users should check with antivirus security apps and also firewall settings to see if there are areas to configure Java plugins and if they could add trusted sites.
Ensure that you are using the appropriate proxy settings if they are necessary for your particular internet configuration.
» Set proxy settings in the Java Control panel
A conflict between Java versions 7u10 and above and previous standalone installations of JavaFX can cause Firefox to not recognize installed Java versions.
» See Firefox issues
Once the Java installation has completed, you can verify that Java is working in your browser. It is possible that Java has been disabled or blocked from running in your browser. How you give permission to run Java varies according to the browser being used.
Chrome browser versions 42 and above. Starting with Chrome version 42 (released April 2015), Chrome has disabled the standard way in which browsers support plugins. More info
The offline installer package will often complete successfully even though the online installer package has encountered a problem. The offline installer package file is large and will take longer to download than the online installer.
» Download the Windows Offline installer
Remove prior installations of Java that are not working before trying to install again.
» Uninstall Java for Windows
» Uninstall Java for Mac
Active firewall or antivirus software may prevent Java from installing properly. Remember to turn your firewall or antivirus software back on when you have successfully completed the Java install.
This message is most commonly seen by Windows XP users. Running a Microsoft utility and trying the offline installer may resolve the issue. See the installshield FAQ for more details.
You can test your Java installation using the instructions in the section below.
Once you have determined that Java is installed correctly, try the following items to help you run a particular Java application.
If you are still prompted to update Java after installing the latest version, try restarting your browser. Close all of the browser windows, then reopen any web pages that require Java. In most cases starting a new browser session should make the latest installed version of Java active in your browser.
Note
: If you are still prompted to update, try restarting your system. Some systems need a restart to register the newly installed Java plugin.
Browsers will ask for your permission to run the Java plug-in in the browser. The permission prompts vary according to the browser.
» Activate Java plug-in in the browser
Browsers may disable the Java plug-in or related add-ons by default. You may need to configure your browser to enable the Java plug-in.
» Enable Java plug-in in the browser
If Java is not enabled in the Java Control Panel, you will be unable to run Java applications in any browser.
» Enable Java content in the browser using the Java Control panel
Ensure that the Java security level is not preventing the application from running. The default security level may restrict the ability to run applications that may present a risk to your computer.
» Configure security level settings in the Java Control panel
The Exception Site List feature was introduced starting with the Java 7 Update 51 release. Adding the application URL to the Exception list allows users to run Rich Internet Applications (RIAs) that would normally be blocked by security checks.
» Configure the Exception Site List
Some Java applications have not been upgraded to meet new Java security standards. As a result, these apps are blocked thus disabling printing. Contact the website or application developer to notify them of the issue.
» Printing issues FAQ
Sometimes a corrupted file in the Java cache can prevent an application from running. You
can safely delete the temporary files that Java downloads since Java will download them
again and ensure they are up-to-date.
» Clear the Java cache
Users should check with antivirus security apps and also firewall settings to see if there are areas to configure Java plugins and if they could add trusted sites.
Ensure that you are using the appropriate proxy settings if they are necessary for your particular internet configuration.
» Set proxy settings in the Java Control panel
A conflict between Java versions 7u10 and above and previous standalone installations of JavaFX can cause Firefox to not recognize installed Java versions.
» See Firefox issues
Once the Java installation has completed, you can verify that Java is working in your browser. It is possible that Java has been disabled or blocked from running in your browser. How you give permission to run Java varies according to the browser being used.
Пошаговая инструкция, как проверить установленную версию Java в Windows или Mac.
Работает на операционных системах Windows 10, Windows 7, Windows 8, Windows XP, Windows Vista, macOS, Mac OS X.
Инструкция работает с версиями Java 7.0 и Java 8.0.
Установленную версию Java можно найти:
Рассмотрим подробнее каждый из вышеперечисленных пунктов.
Данным способом можно найти Java 7 (обновление 40) и более поздние версии.
В информации о установленной версии Java будет также указываться номер обновления. Например: Java 8 Update 110. Предыдущие версии Java обычно отражаются как Java(TM), среда Java Runtime Environment, Java SE, J2SE или Java 2.
Поиск Java версии в командной строке окна терминала (для Mac)
Для того, чтобы воспользоваться данным способом поиска, необходимо загрузить комплект Java Development Kit (JDK). Среда выполнения Java (JRE) может работать совместно с JDK.
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
Если вам необходимо определить, какая версия JDK установлена на вашем устройстве, то выполняем следующие действия:
(в конечном итоге дойдя до такой степени, что могу писать простые небольшие программы для Android или Интернета), но мне удалось запустить java на моем компьютере (из прошлых экспериментов).
Я не уверен, какую версию java у меня есть, и хотел бы знать, есть ли команда, чтобы увидеть установленную и активную версию Java. Кроме того, какая версия работает лучше всего? Все это на 32-битном Ubuntu 12.04
РЕДАКТИРОВАТЬ:
Итак, похоже, что у меня есть 6 и 7, при использовании open 7. Я хочу использовать openjdk 7, поэтому как удалить openjdk 6? Просто через USC достаточно хорошо или есть команда, которая должна быть запущена?
Эта команда должна сообщить вам, что в настоящее время предоставляет виртуальную машину java (java) и компилятор Java (javac):
File /etc/alternatives/java /etc/alternatives/javac
Это предполагает, что система «альтернативы» работает должным образом, что может быть не так, в зависимости от того, как Java «перепуталась» в прошлом. Чтобы проверить это, запустите:
File `which java javac`
Если система альтернатив работает правильно и используется Java, вы должны увидеть:
/usr/bin/java: symbolic link to `/etc/alternatives/java" /usr/bin/javac: symbolic link to `/etc/alternatives/javac"
В противном случае отредактируйте свой вопрос, чтобы предоставить подробную информацию. Тогда должно быть возможно дать более конкретный ответ.
Вы можете удалить openjdk-6 с помощью Software Center. С ним связано несколько пакетов, поэтому вам может потребоваться удалить несколько пакетов. (Здесь перечислены все пакеты openjdk-6.)
Или вы можете использовать командную строку:
Sudo apt-get remove openjdk-6-\* icedtea-6-\*
Однако, какой бы метод вы ни использовали, вы можете сначала проверить, чтобы узнать, что зависит от этих пакетов. Возможно, у вас установлено программное обеспечение, которое нуждается в версии 6. (Возможно, нет, но возможно.)
Вы можете проверить это, смоделировав операцию удаления в командной строке:
Apt-get -s remove openjdk-6-\* icedtea-6-\*
Это покажет вам эффекты удаления этих пакетов, в том числе и другие удаленные пакеты. (Вы заметите, что, поскольку это симуляция, вам не нужно sudo .)
Если вы хотите, чтобы вы продолжали использовать контент Java онлайн в своем веб-браузере (это не то же самое, что и JavaScript), перед удалением каких icedtea-6- либо пакетов icedtea-6- или openjdk-6- (за исключением, возможно, openjdk-6-jdk), вы должны убедиться, что у вас установлены icedtea-7- пакеты, соответствующие всем установленным icedtea-6- пакетам.
Самый простой способ:
update-java-alternatives -l показывает все версии Java, которые вы установили.
java -version показывает вам используемую версию Java.
java -showversion показывает вам версию Java, которую вы используете и помогаете.
Обычно это будет OpenJDK.
Java -version javac -version
Эти команды отображают версию java (интерпретатор, выполняющий программы Java) и javac (создающий их компилятор).
См. Изображение выше для деталей.
Это то, что я сделал, это сработало для меня:
Откройте терминал:
контроль + alt + T
Затем введите (или скопируйте и вставьте отсюда) эти команды по одному за раз:
Sudo rm /var/lib/dpkg/info/oracle-java7-installer* sudo apt-get purge oracle-java7-installer* sudo rm /etc/apt/sources.list.d/*java* sudo apt-get update sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
Тогда, чтобы быть в безопасности, я бы перезагрузился.
Чтобы найти свой тип версии java
Java -version
и вы должны увидеть результат, подобный этому:
Java version "1.7.0_04" Java(TM) SE Runtime Environment (build 1.7.0_04-b20) Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
Хотя ваш будет в 32 бит.
Я настоятельно рекомендую использовать Java 7, но обновления также попытаются установить Java 6. Все в порядке. Но ваш дефолт все равно должен появиться как 7. Все, что я выбрал, работает до тех пор, пока ваши драйверы видеокарты работают.