Posts Tagged ‘linux’

Configure new JDK on Linux

October 22, 2014 Leave a comment

Firstly, you go to JDK download page to download the JDK package fit to your system specification.
Following are the steps that you need to manually do with your new oracle jdk package.
+ Unpack it to the lib of machine located at: /usr/lib/jvm
+ Create the links to executable applications in folder bin of the jdk, and override all the these links in /etc/alternatives directory.

Now, you just unpack the jdk package into jvm only.Then create a small shell script to configure the JDK.
Read more…

Categories: Java Tags: ,

Get size on disk of package in nsis

February 25, 2014 Leave a comment

In case you want to deploy package to remote host. That means the installer can install on remote machine. You should pack the installation component into package may be tar.gz. So, in the component page the Space required control will show the wrong required space for hard disk. In this case, you should calculate the size of the package yourself and display in the control. Since, we get two things to do here: Get the actual size on disk of package, and display it on the Space required control which is instructed in the next post.

Get the space
One of the solution is to use another application named 7za.exe.
+ From nsis we will execute the application and write out the output contains the size on disk of the package.
+ Read the content of text file and get the size on disk you need.
Read more…

Categories: Others Tags: , , ,
%d bloggers like this: