0 votes
219 views

Hello, please help me with this error regarding memory capacity on my library. This happened while I was in the middle of creating a flow process and consequently expanding memory.

It has 2 parts: 

First one:

java.lang.UnsatisfiedLinkError: Can't load library: C:\Program Files (x86)\openLCA\libgfortran-3.dll
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827)
     at java.lang.Runtime.load0(Runtime.java:809)
     at java.lang.System.load(System.java:1086)
     at org.openlca.julia.Julia.loadFromDir(Julia.java:77)
     at org.openlca.app.App.getSolver(App.java:71)
     at org.openlca.app.rcp.RcpActivator.start(RcpActivator.java:68)
     at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
     at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
     at java.security.AccessController.doPrivileged(Native Method)
     at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
     at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
     at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013)
     at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
     at org.eclipse.osgi.container.Module.doStart(Module.java:598)
     at org.eclipse.osgi.container.Module.start(Module.java:462)
     at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
     at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
     at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
     at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:330)
     at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:396)
     at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:474)
     at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423)
     at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415)
     at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:620)
     at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
     at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
     at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
     at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1468) 

Second one:

java.nio.file.AccessDeniedException: C:\Program Files (x86)\openLCA\openLCA.ini
     at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
     at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
     at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
     at java.nio.file.Files.newOutputStream(Files.java:216)
     at java.nio.file.Files.write(Files.java:3351)
     at java.nio.file.Files.write(Files.java:3397)
     at org.openlca.app.preferences.ConfigIniFile.write(ConfigIniFile.java:66)
     at org.openlca.app.preferences.ConfigPage.performApply(ConfigPage.java:123)
     at org.openlca.app.preferences.ConfigPage.performOk(ConfigPage.java:165)
     at org.eclipse.jface.preference.PreferenceDialog$7.run(PreferenceDialog.java:905)
     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
     at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47)
     at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176)
     at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:889)
     at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:466)
     at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:158)
     at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
     at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:622)
     at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
     at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
     at org.eclipse.jface.window.Window.open(Window.java:799)
     at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
     at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
     at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
     at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:412)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
     at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at org.openlca.app.rcp.RcpApplication.start(RcpApplication.java:16)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1468) 

in openLCA by (130 points)
edited by

1 Answer

+1 vote
by (69.9k points)
edited by

Sorry I cannot read the screenshot - can you maybe post a larger image, or copy the text from the error message and post it again - i.e. edit your post? Thank you!

Thank you for editing your question, I can now edit also my answer ->

java.nio.file.AccessDeniedException: C:\Program Files (x86)\openLCA\openLCA.ini

this shows that you do not have access to the folder where openLCA is installed, and therefore cannot change the configuration file that sits there. This happens if openLCA has been installed by an admin e.g. and you are not admin on your computer. Just use the zip archive for openLCA, extract it into your user directory, start openLCA exe and adjust the memory allocation there.

Best wishes,

Andreas

(as an afterthought, you can also ask the admin to change the memory but this is really a 2nd best option)

by (130 points)
Thank so much for replying.

It has 2 parts:

First one:

java.lang.UnsatisfiedLinkError: Can't load library: C:\Program Files (x86)\openLCA\libgfortran-3.dll
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827)
     at java.lang.Runtime.load0(Runtime.java:809)
     at java.lang.System.load(System.java:1086)
     at org.openlca.julia.Julia.loadFromDir(Julia.java:77)
     at org.openlca.app.App.getSolver(App.java:71)
     at org.openlca.app.rcp.RcpActivator.start(RcpActivator.java:68)
     at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:842)
     at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
     at java.security.AccessController.doPrivileged(Native Method)
     at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:834)
     at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:791)
     at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1013)
     at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:365)
     at org.eclipse.osgi.container.Module.doStart(Module.java:598)
     at org.eclipse.osgi.container.Module.start(Module.java:462)
     at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:493)
     at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:117)
     at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:570)
     at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:330)
     at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:396)
     at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:474)
     at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:423)
     at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:415)
     at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:155)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
     at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:620)
     at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
     at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:934)
     at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
     at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1468)

Second one:

java.nio.file.AccessDeniedException: C:\Program Files (x86)\openLCA\openLCA.ini
     at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
     at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
     at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:230)
     at java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:434)
     at java.nio.file.Files.newOutputStream(Files.java:216)
     at java.nio.file.Files.write(Files.java:3351)
     at java.nio.file.Files.write(Files.java:3397)
     at org.openlca.app.preferences.ConfigIniFile.write(ConfigIniFile.java:66)
     at org.openlca.app.preferences.ConfigPage.performApply(ConfigPage.java:123)
     at org.openlca.app.preferences.ConfigPage.performOk(ConfigPage.java:165)
     at org.eclipse.jface.preference.PreferenceDialog$7.run(PreferenceDialog.java:905)
     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
     at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47)
     at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176)
     at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:889)
     at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:466)
     at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.okPressed(WorkbenchPreferenceDialog.java:158)
     at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
     at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:622)
     at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
     at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
     at org.eclipse.jface.window.Window.open(Window.java:799)
     at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
     at org.eclipse.jface.action.Action.runWithEvent(Action.java:474)
     at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
     at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:412)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
     at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at org.openlca.app.rcp.RcpApplication.start(RcpApplication.java:16)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:498)
     at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
...