0 votes
68 views
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.jface.util.SafeRunnable.run(SafeRunnable.java:174)
     at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:889)
     at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:461)
     at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
     at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
     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:4213)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4030)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
     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:579)
     at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:413)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4213)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1037)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4030)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3630)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1158)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1047)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
     at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:658)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:557)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:154)
     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:401)
     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:657)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
in openLCA by (120 points)

1 Answer

0 votes
by (90.7k points)

That happens when an admin has installed openLCA as exe / installer, then you do not have access to the program directory, where the memory settings are stored, in the ini file.

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

=> either ask your admin to adjust the memory, or download and extract the zip archive version, in your user directory, where you have write access.

...