简体   繁体   English

无法再使用 Intellij 启动 javaFx 应用程序

[英]Can't launch javaFx application with intellij anymore

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 Idea 开发 JavaFx 应用程序,直到今天,一切正常,但现在无缘无故(也许我在不知道的情况下做错了什么)每当我尝试启动 JavaFx 应用程序时,我都会在控制台上得到这个:

Process finished with exit code -1073740791 (0xC0000409)进程完成,退出代码 -1073740791 (0xC0000409)

I already tried to re-install IntelliJ but it didn't worked.我已经尝试重新安装 IntelliJ 但它没有用。 Even for a new JavaFx application i get this error, and no window is launched and i get the same message.即使对于新的 JavaFx 应用程序,我也会收到此错误,并且没有启动任何窗口并且我收到相同的消息。

I can't find anyone who had this problem so i am asking here hoping to find an answer :)我找不到任何有这个问题的人,所以我在这里问,希望能找到答案:)

The problem comes with the latest Nvidia Driver version: 378.49 , this driver breaks some java.exe execution such as Android application compilations.问题来自最新的Nvidia 驱动程序版本: 378.49 ,该驱动程序中断了一些 java.exe 执行,例如 Android 应用程序编译。

I rolled back my Nvidia Driver in Windows 10 to version 376.33 following these steps:我按照以下步骤将 Windows 10 中的 Nvidia 驱动程序回滚到版本376.33

  1. Right Click in the Windows button (left-bottom side of screen)右键单击 Windows 按钮(屏幕左下角)
  2. Click Device Manager单击设备管理器
  3. Double-click on Display Adapters双击显示适配器
  4. Double-click on your NVIDIA GPU双击您的 NVIDIA GPU
  5. Select the "Driver" tab选择“驱动程序”选项卡
  6. Select "Upload Driver..."选择“上传驱动程序...”
  7. Select "Browse my computer for driver software"选择“浏览我的计算机以查找驱动程序软件”
  8. Select "Let me pick from a list of device drivers on my computer"选择“让我从计算机上的设备驱动程序列表中选择”
  9. Select "NVIDIA Geforce Version: 21.21.13.7633 [11/12/2016] from the given list从给定的列表中选择“NVIDIA Geforce 版本:21.21.13.7633 [11/12/2016]
  10. Click "Next" in the right-bottom corner点击右下角的“下一步”
  11. After the driver has been installed, reboot the system.安装驱动程序后,重新启动系统。

After the reboot java.exe should work as usual.重新启动后 java.exe 应该可以正常工作。

Hope this helps more people in the same situation, I wasted 2 days looking for solutions going around Gradle, Android and Java re-installations.希望这可以帮助更多处于相同情况的人,我浪费了 2 天时间寻找围绕 Gradle、Android 和 Java 重新安装的解决方案。

I had the same exact problem as you do.我和你有同样的问题。 As some commenters (@sillyfly and @Javaru) pointed out, the problem is with the new Nvidia drivers.正如一些评论者(@sillyfly 和@Javaru)指出的那样,问题出在新的 Nvidia 驱动程序上。 Assuming you are on windows, do the following:假设您在 Windows 上,请执行以下操作:

  1. Click Start点击开始
  2. Click Control Panel单击控制面板
  3. In the left pane, click Device Manager在左窗格中,单击设备管理器
  4. Double-click on Display Adapters双击显示适配器
  5. Double-click on your NVIDIA GPU双击您的 NVIDIA GPU
  6. Select the Driver Tab选择驱动程序选项卡
  7. Click on Roll Back Driver单击回滚驱动程序

This will roll back your Nvidia drivers to the previous version.这会将您的 Nvidia 驱动程序回滚到以前的版本。 Hopefully it works now.希望它现在有效。

Yes the Problem comes from Nvidia drivers.是的,问题来自 Nvidia 驱动程序。 I had the same error and disabling the nvidia gpu from the device manager caused it to be fixed.我有同样的错误,从设备管理器禁用 nvidia gpu 导致它被修复。

So as it was told on the other answers, the problem came form the last Nvidia Driver : 378.49 I re-installed the older version (376.33) and all worked fine again.因此,正如在其他答案中所说,问题来自最后一个 Nvidia 驱动程序:378.49 我重新安装了旧版本(376.33)并且一切正常。

In my case i have the Nvidia 960M.就我而言,我有 Nvidia 960M。

Thanks everyone for your help.感谢大家的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM