问题描述
我正在使用IntelliJ Idea开发JavaFx应用程序,直到今天,一切正常,但现在无缘无故(也许我不知道它做错了)每当我尝试启动JavaFx应用程序时,我都会在控制台上看到它:
I am developping a JavaFx application with IntelliJ Idea, and until today, all worked fine, but now for no reason (maybe i did something wrong without knowing it) whenever i try to launch a JavaFx application i get this on the console :
我已经尝试重新安装IntelliJ,但它没有用。即使对于新的JavaFx应用程序,我也会收到此错误,并且没有启动窗口,我收到相同的消息。
I already tried to re-install IntelliJ but it didn't worked. Even for a new JavaFx application i get this error, and no window is launched and i get the same message.
我找不到有这个问题的人所以我我在这里问我希望找到答案:)
I can't find anyone who had this problem so i am asking here hoping to find an answer :)
推荐答案
问题来自最新的 Nvidia驱动程序版本:378.49 ,这个驱动程序破坏了一些java.exe执行,例如Android应用程序编译。
The problem comes with the latest Nvidia Driver version: 378.49, this driver breaks some java.exe execution such as Android application compilations.
我将Windows 10中的Nvidia驱动程序回滚到版本 376.33 按照以下步骤操作:
I rolled back my Nvidia Driver in Windows 10 to version 376.33 following these steps:
- 右键单击Windows按钮(屏幕左下角)
- 点击设备管理器
- 双击显示适配器
- 双击您的NVIDIA GPU
- 选择驱动程序选项卡
- 选择上传驱动程序...
- 选择浏览计算机以查找驱动程序软件
- 选择让我从计算机上的设备驱动程序列表中选择
- 从给定列表中选择NVIDIA Geforce版本:21.21.13.7633 [11/12/2016]
- 点击右下角的下一步
- 安装驱动程序后,重启系统。
- Right Click in the Windows button (left-bottom side of screen)
- Click Device Manager
- Double-click on Display Adapters
- Double-click on your NVIDIA GPU
- Select the "Driver" tab
- Select "Upload Driver..."
- Select "Browse my computer for driver software"
- Select "Let me pick from a list of device drivers on my computer"
- Select "NVIDIA Geforce Version: 21.21.13.7633 [11/12/2016] from the given list
- Click "Next" in the right-bottom corner
- After the driver has been installed, reboot the system.
重启后java.exe应该像往常一样工作。
After the reboot java.exe should work as usual.
希望这可以帮助更多人处于相同的情况,我浪费了2天时间寻找围绕Gradle,Android和Java重新安装的解决方案。
Hope this helps more people in the same situation, I wasted 2 days looking for solutions going around Gradle, Android and Java re-installations.
这篇关于无法再使用intellij启动javaFx应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!