{"id":488,"date":"2014-08-05T15:15:52","date_gmt":"2014-08-05T15:15:52","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/icsf\/?page_id=488"},"modified":"2014-08-05T15:16:11","modified_gmt":"2014-08-05T15:16:11","slug":"java","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/software\/applications\/java\/","title":{"rendered":"Java"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Java Runtime Environment Version 1.6.0 and 1.7.0 are installed on the iCSF. <\/p>\n<h2>Restrictions on use<\/h2>\n<p>There are no licensing restrictions to running this software. <\/p>\n<h2>Set up procedure<\/h2>\n<p>No modulefile is required as Java is available by default across the system.<\/p>\n<p>However, if your application is display a graphical user interface (GUI) then the user interface may appear sluggish \/ slow to display. Try loading the following module to improve the performance:<\/p>\n<pre>\r\nmodule load tools\/java\/guifix\r\n<\/pre>\n<p>This will set the <code>_JAVA_OPTIONS<\/code> environment variable to be <\/p>\n<pre>-Dsun.java2d.pmoffscreen=false<\/pre>\n<p> which can speed up some Java GUIs. A side-effect of this is that your application may create a small java log file in your current directory which can be deleted.<\/p>\n<h2>Running the application<\/h2>\n<p>Simply run the java application in the usual way. For example:<\/p>\n<pre>\r\njava my_app_class arg1 arg2\r\n<\/pre>\n<p>where <em>my_app_class<\/em> is the name of your application&#8217;s class to be called and <em>arg1 arg2<\/em> are any optional arguments your application requires.<\/p>\n<p>Additional flags can be passed to the java runtime. For example, to restrict the number of threads used by the garbage collectors to one, use<\/p>\n<pre>\r\njava -XX:ParallelGCThreads=1 -XX:ParallelCMSThreads=1 my_app_class arg1 arg2\r\n<\/pre>\n<p>Add the following flag to your java command line to restrict memory usage to 4GB for example:<\/p>\n<pre>\r\n-Xmx4000M\r\n<\/pre>\n<h2>Further info<\/h2>\n<p>None.<\/p>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Java Runtime Environment Version 1.6.0 and 1.7.0 are installed on the iCSF. Restrictions on use There are no licensing restrictions to running this software. Set up procedure No modulefile is required as Java is available by default across the system. However, if your application is display a graphical user interface (GUI) then the user interface may appear sluggish \/ slow to display. Try loading the following module to improve the performance: module load tools\/java\/guifix.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/software\/applications\/java\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":43,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-488","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/comments?post=488"}],"version-history":[{"count":2,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/488\/revisions"}],"predecessor-version":[{"id":490,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/488\/revisions\/490"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/pages\/43"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/icsf\/wp-json\/wp\/v2\/media?parent=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}