About InstallAnywhere 7.1 packaging (resolved)

Source: Internet
Author: User
Related Articles:

  • About InstallAnywhere 7.1 packaging (resolved)
  • Use Java Service Wrapper to set tomcat as a linux Service and enable it automatically upon startup
  • Jdk + tomcat + mysql + website (system built by the ssh framework) packaged into an installation file

Recommended circles: Ubuntu for fun
More related recommendations

As the development system increases, the requirements for program deployment are getting higher and higher.

First, start with the imported program. In the past, the imported program was run directly under cmd, and the parameters were added to the end. later, the method was slightly improved and written. bat script. For parameters, modify the script each time. however, these two types of modification have high requirements. If you are not careful about the modification, it will lead to errors. later, I started to study RCP and started to use SWT/jface to write programs. for very small import programs, it usually takes a little time to write an interface for running. In this way, the parameters can only be selected, you can avoid program running errors due to accidental errors. For swing programs, fatjar is usually used to package them into a jar file for convenience, it can also ensure that the program cannot run because a file is not copied.

With the complexity of the business, some programs may need to run on the customer's machine. As we all know, no matter which method, the above depends on installing JDK/JRE on the customer's machine, which is troublesome.

Later, we developed to use exe4j for packaging, so that we can package all of them, including the JRE runtime environment. what we leave to the customer is just an EXE file, which will look better.

For large projects, it is not enough. For example, if we want to package tomcat or JBoss, we chose installanywhere.

First, try to package an installer. First, standardize the environment on the developer's development machine, such as the JDK version, tomcat version, and eclipse version, first, these three packages are packaged into an installation file, which can be developed upon installation, which can also improve the speed of new installation.

The hosts file, take a look at the date, and then read the content again. As a result, there is an outOfMemory in it. This problem often occurs when running Java programs. Try to modify/Macrovision/InstallAnywhere 7.1 Enterprise/InstallAnywhere. lax file:

 

# LAX. NL. JAVA. OPTION. JAVA. HEAP. SIZE. INITIAL
#-----------------------------------------
# The initial heap size for the Java VM

Lax. nl. java. option. java. heap. size. initial = 25165824

# LAX. NL. JAVA. OPTION. JAVA. HEAP. SIZE. MAX
#-------------------------------------
# The maximum heap size for the Java VM

Lax. nl. java. option. java. heap. size. max = 134217728

Add a value 0 to the value.

# LAX. NL. JAVA. OPTION. JAVA. HEAP. SIZE. INITIAL
#-----------------------------------------
# The initial heap size for the Java VM

Lax. nl. java. option. java. heap. size. initial = 251658240

 

 

Install anywhere
 
CSDN-document center-Java Read: 4478 comments: 1 participate in comments
   
Title Install anywhereSelect Blog from Robert tb9527
Keywords Install anywhere
Source
  APP portability is important for products. From the perspective of appearance, if the developed application can be packaged, the installation program guides the user to install and configure the development product, which will greatly enhance the customer's sense of identity. From the perspective of the company itself, if we can better implement this idea, we will not only lay a good foundation for the implementation of productization. We can imagine that such two aspects will make product deployment faster and more effective. The most important thing is that many product experiences can be well accumulated and accumulated.

I. Tool Overview
Installanywhere is developed by zero G Inc. (http://www.zerog.com. Zero G is a leader in the field of multi-platform software deployment and maintenance. It represents the products including installanywhere and powerupdate. It is simple and efficient, and supports 29 languages (including simplified Chinese) while providing cross-platform support. The main interface 1 is shown.
 
Figure 1 Main Interface
After installing installanywhere, you can find "installanywhere 5.5 enterprise User Guide" in the menu, or click "show help" in the lower-left corner of the main interface, as shown in figure 2.

Figure 2 User Guide provided by installanywhere
Because installanywhere involves a wide range of features (powerful and easy to use ), here, I will share with you some problems, solutions, and related development skills I encountered when I participated in the development and installation of installanywhere (mainly for beginners, or a newbie who has never used installanywhere ). For details, refer to the User Guide provided by installanywhere.
2. Deployment of non-Java applications
The installation program based on installanywhere requires JVM support. Therefore, if the target deployment environment does not provide JVM, you need to provide JVM for non-Java application deployment and installation, as shown in figure 3.

Figure 3 installer bundle VM (select the check box corresponding to "with VM)
Other steps are similar to the deployment of Java applications. Java applications are divided into J2SE applications and J2EE applications. The main reason is that the J2EE application also involves the application server, and its installation and production will be complicated.
3. J2SE Application Deployment
If the program itself is based on J2SE applications, we can consider using the JVM provided by InstallAnywhere as the JVM required for running J2SE applications. You need to note the location and name of the JVM installation folder. Figure 4 allows you to customize your specific requirements.

Figure 4 JVM installation location and name Customization
Iv. Deployment of J2EE applications
It is complicated to install and deploy J2EE applications. It involves interaction with JVM, database system, J2EE application server, and J2EE application.
This part of content will be explained in detail in the following topics, because there are many contents.
5. Use Tips
5.1 JVM Selection
To provide a Chinese Installation Wizard, InstallAnywhere's default VM does not provide international support, such as Chinese support, in which case developers must go to: http://www.zerog.com/downloads_02c.html to download the VM that provides international support, or make it by yourself (For details, refer to InstallAnywhere 5.5. enterprise User Guide ).

Figure 5 VM Packs installed in InstallAnywhere
5.2 Customer Code Development
Many times, we need to develop our own wizard panel. The procedure is as follows:
First, select a development tool, such as JBuilder, Eclipse, and JCreator.
2. Add iaclasses.zip to classpath.
Third, if you still use other class lib, add it to the classpath according to step 2.
Fourth, develop the specific Customer Code.
Fifth, use InstallAnywhere to add the self-developed Customer Code to the target project and compile and test the Customer Code.
5.3 output of debugging information
When using InstallAnywhere, if you need to check what the installer has done, such as the classes loaded, the JVM version and location used, debugging information, and error information. In this case, you need to use the functions provided by InstallAnywhere. 6. developers can output debugging information to files or the console. For example, to output error information and other debugging information to the console, you only need to enter "console ".

Figure 6 Output of debugging information
In this way, after the compiled installer is installed, a console is displayed for you to view the Installation Log. If there are many installation logs, you can adjust the "screen buffer size" of the console, such as adjusting the height of the screen buffer size in Figure 7 (up to 5999 ), this prevents the previous log information from being rushed out.

Figure 7 adjust the screen buffer size
5.4 handling of Chinese garbled characters
Because InstallAnywhere is not very complete in processing localization. Sometimes, developers accidentally introduce a lot of Chinese garbled characters due to misoperations. In this case, you need to adjust the local file, for example, to process the "custom_zh_CN" file in Chinese. The specific method is as follows:
First, disable InstallAnywhere and find the custom_zh_CN file.
Next, find the garbled location.
Third, use InstallAnywhere or other tools to replace the original garbled characters with the corresponding Chinese Unicode.
Finally, re-open InstallAnywhere, compile and install the package, and check whether the package is normal.
In these processes, you sometimes need to manually adjust the order of some content in the "custom_zh_CN" file. In this case, make sure that the English items in the "custom_en" and "custom_zh_CN" files are consistent.
Vi. Conclusion
Through this article, you should have some knowledge about InstallAnywhere. You can use InstallAnywhere to complete almost any installation program that supports JVM. Installation and production of non-JAVA applications, J2SE applications, and J2EE applications can be well completed. In this case, Java's cross-platform advantages are used to implement

# LAX. NL. JAVA. OPTION. JAVA. HEAP. SIZE. MAX
#-------------------------------------
# The maximum heap size for the Java VM

Lax. nl. java. option. java. heap. size. max = 1342177280

Start again, and the startup speed is much faster. You can also pack it normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.