Teach you 4 steps to make Java Green software--> strongly recommended

Source: Internet
Author: User

1, I made a simple LAN communication tools, through the console to send and receive messages, users as long as the installation of JDK can be used after the Ha Hei want to source code plus QQ1543150073

2. How to easily start a Java application on the client side

A, first to install jdk1.6 above version, in the installation process automatically create environment variables

B, detect whether the installation is successful: in the running command to enter and exit the CMD in the input Java; If a Java message appears that the installation was successful

C, copy your compiled class file (must be a compiled class file) and package it with a jar name:

Jar CVF Application.jar D:\classfile

(Application.jar indicates the name you want to package; D:\classfile represents the class file to be packaged)

D, create a bat file is the start program file; Create a new Application.bat

Inside the content input:

@echo off
Start Java-classpath "D:\applicatio.jar" A.b.c.classfile

Congratulations, you're done!

I think it's good, please!!!!!

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.