It took N minutes to finally create an executable JAR file. I am afraid to share it with you.If you want to download this file, go to http://yourhome.arkoo.com/lilao/a.rar.
As a beginner, I prefer the following mistakes:1) Not all java can be packaged into a jar package, as if there is no frame (not sure)Because the r
Preconditions: Run Java programs using Java-jar Xxx.jar, where some of the code needs to read the configuration files in the jarProblem Description:Discovery could not read to the configuration fileSolution Ideas:1. The configuration file is not hit in the jar package2. The configuration file is corrupted and cannot be
When you recently modified the XX application, it involved the need to read the project configuration file in the jar package. In the jar package, the configuration file is read and needs to be handled separately.Some of the configuration files in the project, such as Dbconfig.properties log4j.xml do not want to be pac
When browsing the source code directly through eclipse, I found that the Chinese comment was garbled. In fact, this eclipse is the default encoding caused by the problem. This can be done in the following ways:
To modify the default encoding for the Eclipse Chinese text file: Windows->preferences->general->workspace->text files encoding is set to UTF-8
Modify the default encoding of the Java source file
Background:You need to add a button to the project's Test tool to open an EXE tool directly after you click it.The function of this tool is to import TXT file into Excel report output.But after parsing two lines will stop moving, also do not error. After you close the test tool, it runs smoothly.Reason:TXT to Excel report process, the intermediate information is in memory, the buffer space is occupied, the
1. Preparatory workNeed to download the corresponding file on GitHub, address https://github.com/google/protobuf/releasesProtobuf has a lot of different language versions, because we need a jar file, so choose Java version to download. The following examples are illustrated in version 3.1.0.If it is compiled in the linux64 environment, you can choose the followin
Sometimes you need to package a properties file in a library, which contains some configuration information, but cannot deploy it externally.
In the maven project, place the properties file in the src/main/resources directory. It is automatically packaged into the classes directory.
In the jar packageCodeTo read this file
Beginners Add jar packs or Maven project Pom file dependencies always do not know where to get, waste a lot of time, below tell you a resource library:
Resource pool: http://search.maven.org
http://mvnrepository.com/
Search for the resources you need as you need to:
We select the different file types that are required on the right
Here's how the
Problem Description:Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not being resolved:failed to read AR Tifact descriptor for Org.apache.maven.plugins:maven-clean-plugin:jar:2.5:could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to Central (https://repo.maven.apache.org/maven2): * INSERT proxy here*: Unknown host *insert proxy here*Solution:Open a Apache-maven-3.2.3\conf\settings.xml
Original: http://blog.csdn.net/u011514810/article/details/53196371-------------------------------------------------------------------------------------------------As a rookie, it is very important to view Java source code. In eclipse, it is very convenient to view the source code of a class, directly holding down the CTRL + mouse click on the class or method, then this class or method of the source code will appear. Before you do this, you need to import the source Src.zip in eclipse first. This
Own source code, but want to do in other applications as a library to use, when the problem, very troublesome. Want to be able to directly invoke the source code in the application to see where the problem is
One option you can choose from is:
By default, the exported jar package has only class, but there is also a selection of the source file to export Java, which can be directly debugged
Java gets th
This is my previous in the personal blog 3yj wrote an article, now reproduced, the original address (this is not advertising OH)A few years ago, just touch Java, just want to use some methods to protect their own fruits, once also used a lot of this tool, there is a particularly useful, today write an article to share with you.Today to use the tool has Jsmooth 0.9.9-7 Chinese version, can be downloaded to this site:jsmooth 0.9.9-7 Chinese versionFirst of all, you have to package your program int
The following two methods are provided to start JAR File Installation in Symbian:
Parameters of different versions may be different. These two functions pass the 6680 test. Parameters of other versions will be added after the test.
Void doinstalll (){Rapalssession apasession;User: leaveiferror (apasession. Connect ());
Tdatatype datatype (_ L8 ("text/vnd. Sun. j2-app-Descriptor "));Tthreadid threadid;Apase
collection of D2j-apk-sign to sign, if you have signed that use Jarsigner to sign.Signed command line: Jarsigner-verbose-keystore (keystore file)-signedjar a.apk (signature output apk name)-digestalg sha1-sigalg Md5withrsa game.apk (enter apk) alias (alias).PS: Pay special attention to the red part, if jdk7 need to add this, if not signed after the package can not be installed. JDK Plus does not make mistakes, so it is recommended to add.Above, just
ResourceBundle read the file is under the Classpath path, that is, src or src directory, and we need to package in the project, packaged properties file in the jar, modification is very inconvenient, We need to place the properties file outside the jar to be modified at any
This is my previous in the personal blog 3yj wrote an article, now reproduced, the original address (this is not advertising OH)A few years ago, the first contact with Java was. Just want to use some methods to protect their own fruits of labor, has also used a lot of this tool. There is a particularly useful, write an article today to share with you.Today to use the tool has Jsmooth 0.9.9-7 Chinese version, can be downloaded to this site:jsmooth 0.9.9-7 Chinese versionFirst of all, you have to
We sometimes refer to local third-party packages in the development of MAVEN projects, for example: Dependency> groupId>Org.artofsolving.jodconvertergroupId> Artifactid>Jodconverter-coreArtifactid> version>3.0-beta-4version> Scope>SystemScope> Systempath>${project.basedir}\lib\jodconverter-core-3.0-beta-4.jarSystempath> Dependency>When we make the project into a war package, it is not included in the Lib folder.Here's how to fi
xsi:schemalocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >Spingboot Pom file into a war package hot deployment introduces third-party jar packages
Package com.lee.others;
Import Java.io.BufferedReader;
Import Java.io.File;
Import Java.io.InputStreamReader;
Import java.util.ArrayList;
Import java.util.Enumeration;
Import java.util.List;
Import Java.util.zip.ZipEntry;
Import Java.util.zip.ZipFile; /** * Find a file with a specific string in the jar package under the specified path * @author Millennium Unrivaled * * * public class Findstrinjar {public
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.