The first time I saw a. jar file I didn't know what the ghost was, thought it was a compressed package, and it was unpacked, but it didn't work. So here's a detailed description of how to open the. jar file and how to run the. jar
1. Use jar to packageCode
Jar-cvfm my. Jar myframe. config myframe
Explanation: My. jar is the JAR file to be generated in the current directory. Its name can be obtained by itself, but its suffix must be
Address: http://blog.csdn.net/zhangkaihang/article/details/7684500
There are two types of jar files after Java packaging.
1. A single jar package, for example, the database vendor driver used in the project, you can use the class in the package to import the jar package using eclipse.
2. Java is packaged into executable GUI applications.
In Windows 7, you cannot
Win7 jar file does not open the way to solveThe first method:Step one: Create a new text document, enter the content "Javaw-jar%1", and save it as a batch file, such as "Run.bat".Step Two: Right click on the. jar format
Running the jar directly does not have a command-line window, if you want to have a command-line window, it is generally necessary to win+r run cmd, navigate to the directory, and then use the command line to execute Java-jar Xxx.jarFor Python, opening the py file is also a hassle, by default it loads the source code with idle, and then F5 runs, but there is anot
Win7 system can not use the mouse double hit open jar file How to do?
1, press "Win+r" to open the "Run" window, enter "regedit" command and press ENTER to open the registry;
2, find the following registry entry Hkey_classes_root/applications/javaw.exe, at the begin
JDK used on my machine is free of installation. After selecting the XXX. jar file, the corresponding JAR file cannot be executed.
Solution:
1. Go to "my computer" --> "Tools" --> "Folder Options" --> "file type" --> Find the JAR
1, press "Win+r" to open the "Run" window, enter "regedit" command and press ENTER to open the registry;
2, find the following registry entry Hkey_classes_root/applications/javaw.exe, at the beginning did not, in the resource Manager to find javaw.exe files, such as My Computer for D:/program files/java/ Jre/bin/javaw.exe, run, or find a jar
A jar file is a bundle of information that has been encapsulated. Which is a compressed file. The jar file format offers many advantages and features, many of which are not provided by traditional compression formats such as ZIP or rar, and
follows:
Selected Projects----> Right button, Export ...--->java--->jar file--->next--> Select the path and name of JAR file-->next-->next---> Select Main Class--->finish
Method Two:When the project references other external jars, it is more cumbersome because Eclipse does not support the ability to
Java class package into jar file introduction of jar package, java class package jar
1. Package classes into jar files
First, let's take a look at the source code of MainActivity. java and func. java respectively.
To package func. java into a
Command1.java file converted to class file: Javac-source 1.6-target 1.6 X.java (X.java is the file to be converted, the default is to generate a class file of the same name)Such as:
D:\java\studio\sdk\build-tools\22.0.1>javac-source 1.6-target 1.6 com/chaos/ha
Ck/AntiLazyLoad.java
2.class
user is convenient to use. When installing the JRE (Java Runtime Environment) under Windows, the installation file maps the. jar file to Javaw.exe open. Then, for an executable JAR package, the user can simply double-click on it to run the program, as easily as reading the.
Now I've written a Java project and want to export the executable jar file. There are two methods, as follows.
I. Runnable JAR File
Click the "File" button in the upper left corner of Eclipse and select "Export".
Select "Runnable
In the pom.xml of the MAVEN project, add:Details:1. Right click on Maven project, >maven clear in Run as, first clean up, may error, no tube2. In the menu section, such as: file, edit, source, refactor, Navigate, Project, MyEclipse, Mobile, Search, Run, Windows, help find project> Clear, clears the project, why this step, do not directly execute 3 and 4, I have tried this side, not clear, under the Web-inf class all. java files are not automatically c
http://blog.csdn.net/caiqcong/article/details/7618582spanstyle= "FONT-FAMILY:SIMSUN;FONT-SIZE:12PX;">XML version= "1.0" encoding= "UTF-8" standalone= "no"?>Projectdefault= "Create_run_jar"name= "Create Runnable Jar for Project SeleniumAutomation-3.1"> This file is created by Eclipse Runnable JAR Export Wizard - ANT 1.7 is required - Targetname= "Create_r
I am writing a Java project, which is an API provided to the customer to call, but my API requires about 10. Jar files,
In the past, I used the export JAR file function of eclipse to export jar files. Such jar files can be used, but the package customers who depend on my AP
Open the command prompt (Win2000 or run the CMD command in the running box, Win98 is the DOS prompt), enter jar chelp, and press enter (if jdk1.1 or a later version already exists on your disk ), what do you see:
Usage: jar {ctxu} [vfm0mi] [Jar-file] [manifest-
. This you can open the jar package to see the difference of MANIFEST.MF, at a glance.When generating a runnable jar file, there are two options, Extract required libraries into generated jar and package equired libraries into generated
Convert the Jar file to the exe installation file, and install the jar file.
In the past few days, my girlfriend asked me to help her develop a tool for exporting Excel files on the Windows platform. Considering the time problem, I chose the most skilled language Java. Hosts
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.