Java windows 10 problems

“Javac” doesn’t work correctly on Windows 10

the problem is that I upgraded to Windows 10 and now I’m installing my tools to programming and now that I installed the JDK 7 of Java, when I try to use in the cmd the command: — «javac»

The result of this is: «javac» is not recognized as an internal or external command.

But I was edited the PATH with the correct link of jdk, because when I use «java», it is ok.

Now, I tried in the console with this command: PATH=%PATH%;»C:\Program Files\Java\jdk1.7.0_79\bin»

And when I executed the command «javac» it works, but now, when I open other console, it doesn’t work, or when I restart the console, this command is not recognized.

What could be the problem?

21 Answers 21

java is part of the JRE, not the JDK.

You need to add the JDK bin to the system PATH, in

«Control Panel» | System | Advanced | «Environment Variables»

Her’s how I configure System variable on Windows 10 :

I am totally new to java and spent hours trying to get the problems with PATH and CLASSPATH worked out. There was one person who said to restart the command prompt after you modify the environment variables; that was it for me. While you are testing different configurations, make sure to relaunch the command prompt before testing. It seems like there are at least 2 different ways of setting this up. I went with the following:

1) In System Variables, add

JAVA_HOME = c:\program files (x86)\java\jdk1.8.0_121

2) In System Variables, add the following to existing Path.

That’s it. No need for quotes around anything. No double forward slashes or anything else. I think it would also work if I removed the java_home variable and just listed the explicit path to bin in the PATH variable, but I’m not touching it again now that it finally works.

After adding C:\Program Files\Java\jdk1.8.0_73\bin to the system variables I turned off my command prompt and opened another one. Then it worked.

Maybe a bit late, but i had same problem.

Click on «Move up» button for Java path and move it at top.

It fixed problem for me

just add C:\Program Files\Java\jdk1.7.0_80\bin as the path in environmental variables. no need to add java.exe and javac.exe to that path. IT WORKS

I added below Path in environment variable

;%JAVA_HOME%/bin instead of %JAVA_HOME%\bin

in my case , it fix the problem

I had the same issue on Windows 10 — the java -version command was working but javac -version was not. There are three things I did:

(1) I downloaded the latest jdk (not the jre) and installed it. Then, I added the jdk/bin path tan o environment variable. In my case, it was C:\Program Files\Java\jdk-10\bin . I did not need to add the ; for Windows 10.

(2) Move this path to the top of all the other paths.

(3) Delete any other Java paths that might exist.

Test the java -version and javac -version commands again. Voila!

For some reason it worked for me to add quotation marks to the path folder on windows 10. not C:\Program Files\Java\jdk 1.8.0_111\bin, but «C:\Program Files\Java\jdk 1.8.0_111\bin».

now i got it finally! make sure that there are no spaces before and after the path and put the semi-colon on both sides without spaces

The PATH is for current user, instead you can add a CLASSPATH and below link would help you more PATH and CLASSPATH

Читайте также:  Install setup tool linux

I added below Path in environment variable

and then compiled the program but got the error then I restarted the system and again compiled the program

This time it worked 🙂

Add java path to environment variables and move it to the top of all the paths available there. It worked for me.

To be sure about your path, you can use double quotes » to locate the path or if you are in Windows, you can browse to path to select «C:\Program Files\Java\jdk1.8.0_121\bin» folder.

in the search window type ‘environment variables’ this should give you a link to editing the variables. On the variables editing page there is an upper section and a lower section in the lower section add NEW,type path C:\Program Files\Java\jdk-10\bin this worked great for me and it finds the compiler all the time.

Kind of beating a dead horse now but, I want to clarify one thing that may not be quite so obvious. Yes indeed you need to edit the PATH environment variable as already stated many times. The key for me was to edit the PATH under SYSTEM variables. I had inadvertently edited the PATH under USER variables. Why did this matter? On my machine I have to log in as an Administrator to edit environment variables. So editing the User variables was not helping because I run the command prompt under my login (non-admin) account. Grrr!

Also, I found that closing the command prompt window, and re-opening it after the PATH variable update was required. Changing the order of the values, adding semi-colons, etc. didn’t make a difference for me.

If you have set all PATH variables correctly after installation, just restart it.

I had the same problem, I had also installed new Windows7 OS then I upgraded it to Win 10. Then i started setup necessary tools like IntelliJ, Java jdk,jre, eclipse so on. In cmd, java -version worked but javac compiler got unrecognized. I checked and all good, the files in the folders, path are correct and so on.

I restarted and checked it again in cmd ,it worked.

I typed ; accidentally in front in the path variable and then hit OK , after this if I again edit it was nowhere going to the same page as earlier, it opened a new page as defined for user variables and then I was able to remove double quotes in front of the PATH VARIABLE. Everything worked fine then. 🙂

Did it just now.

in A dvanced system setting . Then Choose Environment Variable.

for windows 10 Users Use Java path( JDK Bin location) AS «C:\Program Files\Java\jdk-9.0.1\bin» it will work.

Points to remember, do as the image shows. Move the highlighted bar up using move up button, this will help.

Not the answer you’re looking for? Browse other questions tagged java windows java-7 javac windows-10 or ask your own question.

Linked

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.4.16.39093

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Не устанавливается Java на Windows 7, 8 или 10 — произошла ошибка. Решение.

Программное обеспечение Java используется как платформа для очень многих программ под Windows и являет признанным стандартом для разработки различных приложений и игр. Оно предоставляет уйму возможностей для программиста, а расплачиваться за это приходится пользователям в виде необходимости обязательной установки библиотек Джава или даже Java Virtual Machine на компьютер или ноутбук. И ладно бы всё проходило «без сучка и задоринки», но очень часто ПО JAVA не устанавливается и выдаётся ошибка установки. Что делать и как его всё-таки успешно инсталлировать в систему Windows? Вот несколько советов.

Читайте также:  Windows mobile asus p535

1. Обычно, при загрузке программного обеспечения с официального сайта, Вы скачиваете специальный веб-установщик, который будет затем сам тянуть нужные библиотеки через подключение к Интернет. Но тут может включить в игру антивирус или фаервол, который может расценить это как вирусную активность и заблокировать доступ в интернет установочному приложению. Поэтому попробуйте скачать полноценный офлайн-установщик отсюда — ссылка, а затем попробовать установить Джава через него. Не удивляйтесь, что он весит около 50 Мегабайт, в то время, как веб-установщик почти в 50 раз меньше. Это нормально.

2. Если у Вас до этого уже стояла более старая версия Java — попробуйте его удалить и поставить заново через Панель управления Windows.

3. Проверьте свою операционную систему Windows 7, 8 или 10 с помощью хорошей антивирусной программы. Например, DrWeb CureIt или Kaspersky Antivirus. Очень часто вредоносные программы маскируются под системные библиотеки и затем не дают их обновлять.

4. Почистите реестр Виндовс с помощью специальной утилиты. Например, CCleaner.

Именно ошибки в реестре часто являются причиной того, что ПО Java не устанавливается на компьютер.

5. Попробуйте почистить системные папки:
C:\ProgramFiles\Java
и
C:\ProgramFiles\Common Files\Java
Иногда файлы, оставшиеся от старых версий приводят к ошибке установки Джава.

6. Попробуйте обновить компоненты Windows с помощью Центра обновлений. Может случится такое, что ошибка установки Java Runtime Environment возникает даже из-за устаревшей версии Internet Explorer.

7. Скачайте фикс-файл с исправлениями здесь и примените изменения в реестре.

Почему не работает Java и как его включить в браузере?

Многие пользователи интернет зачастую сталкиваются с тем, что на сайтах не работает выпадающее меню, не проигрываются видеоролики, ничего не происходит при нажатии на кнопки и пр. Или, к примеру, не показываются картинки, а вместо них появляется надпись: «В этом плагине имеются уязвимости безопасности. Щелкните здесь для включения плагина Java(TM) Platform SE 7 U». Всё это связано с работой плагина Java, который присутствует в браузерах.

Если Вы столкнулись с какими-либо проблемами при отображении веб-страниц, проверьте включен ли у Вас плагин Java. Чтобы Вам было легче это сделать, я написал небольшой скрипт, который проверяет браузер, и выводит соответствующую надпись. Вот результат анализа для Вашего браузера:

Если Выше написано, что JavaScript включен, то всё в порядке, в противном случае его надо включить. Порядок действий отличается немного для каждого браузера, поэтому остановимся на каждом из них.

Google Chrome

1) Заходим в раздел «Настройки»
2) Опускаемся вниз страницы и нажимаем ссылку «Показать дополнительные настройки»
3) Нажимаем кнопку «Настройки контента»
4) В разделе «JavaScript» активируем пункт «Разрешить всем сайтам использовать JavaScript»
5) Нажимаем «Готово»

Внимание! С апреля 2015 года в новых версиях браузера Chrome плагин Java отключен по умолчанию! Как это исправить, читайте здесь!

Internet Explorer

Opera

1) Нажимаем сочетание клавиш «Ctrl+F12»
2) В разделе «Содержимое» активируем пункт «Включить JavaScript»
3) Нажимаем «OK»

Mozilla Firefox

1) Нажимаем сочетание клавиш «Ctrl+Shift+A»
2) Переходим в раздел «Плагины»
3) Напротив модуля Java(TM) Platform ставим переключатель в положение «Всегда включать»
4) Закрываем вкладку «Управление дополнениями»

Apple Safari

1) Нажимаем сочетание клавиш «Ctrl+,»
2) Переходим на вкладку «Безопасность»
3) В разделе «Веб-содержимое» активируем опции «Включить Java» и «Включить JavaScript»
4) Закрываем окошко

Теперь Вы знаете не только как проверить, работает ли JavaScript в Вашем браузере (достаточно открыть эту статью и прочитать результат), но и как включить Java в Firefox, Chrome, IE, Opera и Safari!

Java windows 10 problems

Сообщения: 10692
Благодарности: 2884

Конфигурация компьютера
Материнская плата: MSI H61M-P21 (MS-7680) (B3.0)
HDD: WDC Caviar Green WD10EARS-22Y5B1 ATA Device 1Т (1000 Gb), WDC Caviar Blue WD10EZEX-08M2NA0 ATA Device 1Т (1000 Gb)
Звук: VIA VT1708S VIA High Definition Audio
CD/DVD: ATAPI iHAS122 ATA Device
ОС: Microsoft Windows 7 Home Basic x86, Microsoft Windows 10 Home x64 .
Прочее: Multi Flash Reader USB Device, Logitech HD Webcam C310
Читайте также:  Operating system windows 10 x86 version 10 0
скажи если я вернулся в старую учетку, установленная джава будет работать в ней »
Если возникнут какие то еще вопросы с виндой 10, могу я обращаться к вам ? »

——-
Будь джентльменом, если есть удача. А нет удачи, джентльменов нет . Нажми .

» width=»100%» style=»BORDER-RIGHT: #719bd9 1px solid; BORDER-LEFT: #719bd9 1px solid; BORDER-BOTTOM: #719bd9 1px solid» cellpadding=»6″ cellspacing=»0″ border=»0″>

Сообщения: 51909
Благодарности: 14931

Конфигурация компьютера
Материнская плата: ASUS P8Z77-V LE PLUS
HDD: Samsung SSD 850 PRO 256 Гб, WD Green WD20EZRX 2 Тб
Звук: Realtek ALC889 HD Audio
CD/DVD: ASUS DRW-24B5ST
ОС: Windows 8.1 Pro x64
Прочее: корпус: Fractal Design Define R4

Vilian123, у вас старая версия КриптоПро, несовместимая с Windows 10 (были случаи, когда это приводило к сбоям Windows Installer).

Попробуйте удалить КриптоПро и перезагрузиться.

» width=»100%» style=»BORDER-RIGHT: #719bd9 1px solid; BORDER-LEFT: #719bd9 1px solid; BORDER-BOTTOM: #719bd9 1px solid» cellpadding=»6″ cellspacing=»0″ border=»0″>

Сообщения: 51909
Благодарности: 14931

Конфигурация компьютера
Материнская плата: ASUS P8Z77-V LE PLUS
HDD: Samsung SSD 850 PRO 256 Гб, WD Green WD20EZRX 2 Тб
Звук: Realtek ALC889 HD Audio
CD/DVD: ASUS DRW-24B5ST
ОС: Windows 8.1 Pro x64
Прочее: корпус: Fractal Design Define R4

Это сообщение посчитали полезным следующие участники:

» width=»100%» style=»BORDER-RIGHT: #719bd9 1px solid; BORDER-LEFT: #719bd9 1px solid; BORDER-BOTTOM: #719bd9 1px solid» cellpadding=»6″ cellspacing=»0″ border=»0″>

Сообщения: 1
Благодарности: 0

если после запуска установщика ничего не происходит
то скорее всего сбоит интерфейс программы установки, который использует javascript через IE (browser control)
решается запуском установщика с ключом /s (тихая установка)

собственно кусок лога установки java с такой ошибкой:

Оцените статью