Genetic algorithm is a very important and popular kind of algorithm of evolution computing. In order to use this algorithm better and platform-independently, this paper introduces an implement package which is coded in Java, an object-oriented and platform-independent advanced computer programming language, for genetic algorithm. This package includes several sub-packages. In each sub-package, there are some classes with different roles and functions. After the test, these classes can work properly and efficiently in together. The good effect has been received through using this algorithm in four function optimization problems. For the further goal, some studies even need to be carried out in the future.