Error invoking method, failed to launch jvm

前端 未结 7 2177
心在旅途
心在旅途 2020-12-01 16:25

I\'m developing a desktop application using javafx v8.0.40. I have created an exe file with inno 5. When I run exe file in my computer, it is installed and run without any p

相关标签:
7条回答
  • 2020-12-01 17:12

    The response by J.Dürr (answered Jun 8 '16 at 9:58) helped solve my Error invoking method & Failed to launch JVM issue. I used the following code to track down the issue, which turned out to be an errant FXML resource path:

    public static void main(final String[] taArgs)
    {
      try
      {
        Main.launch(taArgs);
      }
      catch (Exception e)
      {
        JOptionPane.showMessageDialog(null, e.getMessage());
        try
        {
          PrintWriter pw = new PrintWriter(new File("<somefilename.txt>"));
          e.printStackTrace(pw);
          pw.close();
        }
        catch (IOException e1)
        {
          e1.printStackTrace();
        }
      }
    }
    
    0 讨论(0)
提交回复
热议问题