Editing IO package
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 570: | Line 570: | ||
#:exl = actxserver ('Excel.Application') ## Note the period between 'Excel' and 'Application' | #:exl = actxserver ('Excel.Application') ## Note the period between 'Excel' and 'Application' | ||
##If a COM object is returned, ActiveX / COM / Excel works. Do: | ##If a COM object is returned, ActiveX / COM / Excel works. Do: | ||
##: | ##: exl.Quit(); delete (exl) ## to shut down the (hidden) Excel invocation. | ||
##If you get an error message, your last resort is re-installing the windows package, or trying the Java-based interfaces. | ##If you get an error message, your last resort is re-installing the windows package, or trying the Java-based interfaces. | ||
#Check if java works. Do a ''pkg list'' and see: | #Check if java works. Do a ''pkg list'' and see: | ||
Line 576: | Line 576: | ||
##If there's an asterisk on the java package line (then the package is loaded). If not, do a pkg rebuild -auto java | ##If there's an asterisk on the java package line (then the package is loaded). If not, do a pkg rebuild -auto java | ||
#Check Java memory settings. Try | #Check Java memory settings. Try | ||
#: | #:javamem | ||
##If it works, check if it reports sufficiently large max memory (had better be 200 MiB, the bigger the better) | ##If it works, check if it reports sufficiently large max memory (had better be 200 MiB, the bigger the better) | ||
##If it doesn't work, do: | ##If it doesn't work, do: | ||
##:rt = java_invoke ('java.lang.Runtime', 'getRuntime') | ##:rt = java_invoke ('java.lang.Runtime', 'getRuntime') | ||
##:rt.gc | ##:rt.gc | ||
##:rt.maxMemory ().doubleValue () / 1024 / 1024 ## show MaxMemory in MiB. | ##:rt.maxMemory ().doubleValue () / 1024 / 1024 ## show MaxMemory in MiB. | ||
##In case you have insufficient memory, see in "GOTCHAS", "Java memory pool allocation size", how to increase java's memory pre-reservation. | ##In case you have insufficient memory, see in "GOTCHAS", "Java memory pool allocation size", how to increase java's memory pre-reservation. | ||
#Check if all classes (.jarfiles) are in class path. Do a 'javaclasspath' (under unix/linux, do 'tmp = javaclasspath; strsplit (tmp,":")' (w/o quotes). See above under "REQUIRED SUPPORT SOFTWARE" what classes should be mentioned. | #Check if all classes (.jarfiles) are in class path. Do a 'javaclasspath' (under unix/linux, do 'tmp = javaclasspath; strsplit (tmp,":")' (w/o quotes). See above under "REQUIRED SUPPORT SOFTWARE" what classes should be mentioned. |