BufferedReader (ISR); String line = null; while (line = Br.readline ())! = null) { System.out.println (type + ">" + line);//console Output } } catch (Ioexce Ption IoE) { ioe.printstacktrace (); } 2. Add the following code at the call exe execution file Process process = NULL; try { process =runtime.getruntime (). exec (Txttoexcel);//txttoexcel is the DOS command t
If you have generated a Zh.class file with the Zh.java fileIf the path to Zh.class is Bin/com/zhang/zh.classA MANIFEST.MF file is placed in the bin directory with the following file contents:manifest-version:1.0 Created-by:1.5.0_06 (Sun Microsystems Inc.) Main-class:com.zhang.zhNote that the Main-class heel must be the full path to the class that contains the mai
This article contributed by wo940080073
1. Export the JAR file:
If your program development is nearing completion and you are preparing to generate a desktop executable file but do not know how to operate it, follow these steps: select your project --- Right-click the pop-up Option List --- Select export --- Java ---
teach you how to pack Java code into a jar file and convert it into an EXE executable file
1. Background:
Learning Java, the textbook on the issue of the title, only a section, but also to write their own troublesome configuration file, the end result can only be converted
#----------------------------------------------------------------------- whileGetopts": hp:j:"opt Do Case$optinchh|HELP) usage; Exit0 ;; P|package) package_name=$OPTARG;; J|jar) jar_file=$OPTARG;; \? )Echo-E"\ Option does not exist: $OPTARG \ n"The usage; exit1 ;; Esac#---End of Case--- DoneShift$ ($OPTIND-1))if[[-Z $package _name]]; Then Echo "package_name can ' t not be empty"Usage Exitfiif[[-Z $jar
1. Background:When you learn Java, there is only one section in the textbook about title, and you have to write your own cumbersome configuration file, and the end result can only be converted to a jar file. It's really a bad heart. This blog teaches you how to quickly and easily package Java code into jar files and co
It programmer development Essentials-all kinds of resources download list, history of the most IT resources, personal collection summary.
I have seen other programs written in Java can run like EXE files, it is envy. Now take a time to study how to write, hehe, the original is the use of a few commands, here simply record the steps to generate the executable jar package
The tutorial for generating executable jar files-Linux general technology-Linux programming and kernel information. The following is a detailed description. To generate an executable jar file named cal. jar: (the
This article reproduces the address:http://blog.csdn.net/sunkun2013/article/details/13167099
1. Background:When you learn Java, there is only one section in the textbook about title, and you have to write your own cumbersome configuration file, and the end result can only be converted to a jar file. It's really a bad heart. This blog teaches you how to quic
To generate an executable jar file named cal. jar: (the file name can be any legal name)(I think this is a simple and practical method, and there are many other methods that will not be introduced here)FirstGenerate a programAllThe bytecode
I recently wrote a small program of stock yield analysis in Java to calculate the benefits of my stock operation. Here, a procedure is recorded to package the source code into an executable command.1: Generate the executable jar fileSelect the project, select Export from the menu, select runnable JAR
copied directly to the contents of the JRE under the installation JDK folder. With the ability to install the Java Execution Environment
Open the exe4j can run EXE interface, directly click Next to get the following interface
Select "JAR in EXE" mode. Click Nextbutton, for example to:
Short name of your application in casual definitionThe folder in Output directory is used to specify which EXE files are generat
resulting jar file is in the: D:\programmer\eclipse\feedback-service\target folderJava-jar run the jar package toJava-jar using an external configuration file when running the jar pack
resulting jar file is in the: D:\programmer\eclipse\feedback-service\target folderJava-jar run the jar package toJava-jar using an external configuration file when running the jar pack
resulting jar file is in the: D:\programmer\eclipse\feedback-service\target folderJava-jar run the jar package toJava-jar using an external configuration file when running the jar pack
resulting jar file is in the: D:\programmer\eclipse\feedback-service\target folderJava-jar run the jar package toJava-jar using an external configuration file when running the jar pack
1. Select the project to go around the jar file, right click "Export";2.nextIn the drop-down list under Launch configuration, select the main class to run when the program starts ( that is, the class with the main method in the project, project portal )In the "Export destination" under the "Browse" button to select the storage path of the jar, and enter the
resulting jar file is in the: D:\programmer\eclipse\feedback-service\target folderJava-jar run the jar package toJava-jar using an external configuration file when running the jar pack
resulting jar file is in the: D:\programmer\eclipse\feedback-service\target folderJava-jar run the jar package toJava-jar using an external configuration file when running the jar pack
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.