Menu

Installation error

2020-08-22
2020-08-27
  • Kranti Saran

    Kranti Saran - 2020-08-22

    Hi! When I try to install the software on my Mac, I get this error:

    java.lang.RuntimeException: Exception in Application start method
        at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
        at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: java.lang.NullPointerException
        at org.hypernomicon.util.DesktopUtil.getComputerName(DesktopUtil.java:292)
        at org.hypernomicon.model.HyperDB.lock(HyperDB.java:1565)
        at org.hypernomicon.model.HyperDB.loadAllFromDisk(HyperDB.java:780)
        at org.hypernomicon.view.MainCtrlr.loadDataFromDisk(MainCtrlr.java:1924)
        at org.hypernomicon.view.MainCtrlr.loadDB(MainCtrlr.java:1818)
        at org.hypernomicon.view.MainCtrlr.mnuNewDatabaseClick(MainCtrlr.java:1296)
        at org.hypernomicon.view.MainCtrlr.showWelcomeWindow(MainCtrlr.java:2886)
        at org.hypernomicon.view.MainCtrlr.startEmpty(MainCtrlr.java:1810)
        at org.hypernomicon.App.start(App.java:246)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    

    Any help would be great! Thanks!

     
  • Jason Winning

    Jason Winning - 2020-08-22

    This is a bug and will be fixed in the next release. Until then here is a workaround. In a Terminal window, type the following before running Hypernomicon:

    HOSTNAME=`hostname`
    

    Note that the characters around "hostname" are the accent character, not single quotes. This problem seems to be happening because (for some unknown reason) the "hostname" environment variable is sometimes not set on Mac, even though running the "hostname" command produces the correct output. The workaround creates an environment variable with the output of the command as its value.

     

    Last edit: Jason Winning 2020-08-22
  • Jason Winning

    Jason Winning - 2020-08-22

    Also this is actually not a problem that happens during installation, it is happening when creating or loading a database. So you shouldn't have to reinstall to do the workaround.

     
  • Jason Winning

    Jason Winning - 2020-08-22

    Update: It looks like that workaround will only work if you are running the java virtual machine from the command line; e.g.

    java -jar Hypernomicon.jar
    

    This can only be done if you have java installed on your machine. Then you would need to execute the above command in the same terminal window where the environment variable is set. If none of what I'm saying is very familiar to you, you can disregard it, and I will release a fixed version in the next few days.

     
  • Kranti Saran

    Kranti Saran - 2020-08-23

    Thanks so much for your replies and for your quick response! Looking forward to installing the fixed version !

     
  • Jason Winning

    Jason Winning - 2020-08-27

    Should now be fixed in version 1.19.2

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.