Author Topic: Issues running HUGIN on ubuntu  (Read 13690 times)

Offline Anders L Madsen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 2295
    • View Profile
Issues running HUGIN on ubuntu
« on: March 17, 2011, 15:19:49 »
Quote
Unfortunately I am having some issues running hugin on my ubuntu 10.04 system:

anders@ubuntu:> bin  $ ./hugin
 Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class COM.hugin.HAPI.Native.HAPI
     at COM.hugin.HAPI.NetworkModel.getNativeID(NetworkModel.java:527)
     at COM.hugin.HGUI.HuginGUIUtils.setRunningAndValidateAPIVersion(HuginGUIUtils.java:83)
     at COM.hugin.HGUI.Hugin.<init>(Hugin.java:193)
    at COM.hugin.HGUI.Hugin.main(Hugin.java:322)
...

The hugin program in the bin directory is a simple shell script that calls the Java interpreter.  If this does not resolve to a 32-bit Java interpreter from Oracle/Sun, then you need to modify the script accordingly (and perhaps also install a new version of the Java software).  The simplest action is to modify the script so that it uses the full path of the correct Java program.

The README file in the HUGIN Lite distribution contains more details.
HUGIN EXPERT A/S