This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Greetings, This might be an issue with the fact that Ubuntu uses the Dash shell environment, which is not 100% compatible with sh or bash (it does not help that /bin/sh is often lined to to /bin/dash on Ubuntu systems). Open the runIDV script and look for the following (around line 50): # On some UNIX operating systems, the line below will not work. The # root issue is that /bin/sh is not completely standard across all # UNIX operating systems. If that is the case, try this line instead # prefs=`${java} -client -cp ${dirname}/idv.jar ucar.unidata.idv.IdvCommandLinePrefs $* 2>&1` prefs="$(${java} -client -cp ${dirname}/idv.jar ucar.unidata.idv.IdvCommandLinePrefs $* 2>&1 )" Uncomment out the first "prefs=..." line and comment out the second "prefs=..." line. Let's see if that helps. Also, how much memory do you have installed on your system? Cheers, Sean > I am able to install IDV in an UBUNTU linux machine but it then > consistently fails to start. When trying to run it in Simple IDV it gives > the error message "java heap space". > > I hope you can help. > > paco@paco-Studio-1558:~/IDV_3.1u1$ ./runIDV > IDV failed to start. Please contact address@hidden > paco@paco-Studio-1558:~/IDV_3.1u1$ ./simpleIDV > ERROR: Fatal error initializing resources > Java heap space > ERROR: Loading plugins > java.lang.NullPointerException > java.lang.NullPointerException > at > ucar.unidata.idv.IdvResourceManager.getResources(IdvResourceManager.java:781) > at ucar.unidata.idv.PluginManager.loadPlugins(PluginManager.java:1444) > at ucar.unidata.idv.PluginManager.<init>(PluginManager.java:246) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown > Source) > at java.lang.reflect.Constructor.newInstance(Unknown Source) > at ucar.unidata.idv.IdvBase.makeManager(IdvBase.java:255) > at ucar.unidata.idv.IdvBase.doMakePluginManager(IdvBase.java:1097) > at ucar.unidata.idv.IdvBase.getPluginManager(IdvBase.java:1109) > at > ucar.unidata.idv.ui.IdvUIManager.showSupportFormInThread(IdvUIManager.java:6076) > at ucar.unidata.idv.ui.IdvUIManager.access$800(IdvUIManager.java:164) > at ucar.unidata.idv.ui.IdvUIManager$33.run(IdvUIManager.java:6007) > at ucar.unidata.util.Misc$3.run(Misc.java:1250) > java.lang.OutOfMemoryError: Java heap space > at java.lang.StringCoding$StringDecoder.decode(Unknown Source) > at java.lang.StringCoding.decode(Unknown Source) > at java.lang.StringCoding.decode(Unknown Source) > at java.lang.String.<init>(Unknown Source) > at java.lang.String.<init>(Unknown Source) > at ucar.unidata.util.IOUtil.readContents(IOUtil.java:1708) > at ucar.unidata.util.IOUtil.readContents(IOUtil.java:1604) > at > ucar.unidata.util.ResourceCollection.read(ResourceCollection.java:550) > at > ucar.unidata.util.ResourceCollection.read(ResourceCollection.java:596) > at > ucar.unidata.xml.XmlResourceCollection.getRoot(XmlResourceCollection.java:331) > at > ucar.unidata.xml.XmlResourceCollection.getRoot(XmlResourceCollection.java:313) > at ucar.unidata.xml.XmlObjectStore.append(XmlObjectStore.java:339) > at ucar.unidata.xml.XmlObjectStore.init(XmlObjectStore.java:323) > at ucar.unidata.idv.StateManager.initState(StateManager.java:388) > at > ucar.unidata.idv.IntegratedDataViewer.<init>(IntegratedDataViewer.java:306) > at > ucar.unidata.idv.IntegratedDataViewer.<init>(IntegratedDataViewer.java:225) > at ucar.unidata.idv.DefaultIdv.<init>(DefaultIdv.java:84) > at ucar.unidata.idv.DefaultIdv.main(DefaultIdv.java:165) > > Ticket Details =================== Ticket ID: WWP-385269 Department: Support IDV Priority: Normal Status: Open