Exception in thread "AWT-EventQueue-0": java.lang.​OutOfMemor​yError: Required array size too large

im tring to open a .hdf5 which is 3.75GB file. but flowing error is occuring when im opening it. I have increase the java heap memory upto 4GB as well. but it will give me the same error.( My RAM is 16GB there for they only allow jaya heap memory upto 4GB)
Looking for help.
Exception in thread "AWT-EventQueue-0": java.lang.OutOfMemoryError: Required array size too large
at java.nio.file.Files.readAllBytes(Files.java:3156)
at com.mathworks.services.SystemServices.detectCharset(SystemServices.java:61)
at com.mathworks.widgets.SyntaxTextPaneUtilities.getDefaultFileEncoding(SyntaxTextPaneUtilities.java:424)
at com.mathworks.widgets.datamodel.TextFileBackingStore.createWithExistentBackingFile(TextFileBackingStore.java:94)
at com.mathworks.mde.editor.MatlabEditorApplication.createEditorViewClientFromExistingFile(MatlabEditorApplication.java:682)
at com.mathworks.mde.editor.MatlabEditorApplication.access$300(MatlabEditorApplication.java:77)
at com.mathworks.mde.editor.MatlabEditorApplication$4.runWithOutput(MatlabEditorApplication.java:406)
at com.mathworks.jmi.AWTUtilities$Invoker$2.watchedRun(AWTUtilities.java:475)
at com.mathworks.jmi.AWTUtilities$WatchedRunnable.run(AWTUtilities.java:436)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

类别

帮助中心File Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by