http://blog.csdn.net/we_shell/article/details/49819221MAVEN Configuration for Jar1. Install the jar package to the local warehouseCommand:[HTML]View PlainCopy
MVN install:install-file -dfile=D:\thrift-0.9.2.jar -dgroupid=org.apache.thrift -dartifactid= libthrift -dversion=0.9.2 -dpackaging=jar
--DgroupId and DartifactId constitute the coor
Sometimes we need to check the source code of the referenced jar package, which can be achieved through simple configuration.
Prerequisites: Download the source code of the jar package to your computer.
Example: to view the source code of the struts2-core-2.2.1.1.jar as an example.
Download Struts-2.2.1.1 with source code from the Internet.
When a str
How to package third-party Jar packages and third-party jar packages
When a third-party Jar package is included in the project, the Jar package that is normally packaged cannot contain the third-party Jar package. In this case, you can use net. sf. fjep. fatjar_0.0.31.
Example1. Dependencies are as follows:To install the jar package to the local Warehouse command:MVN install:install-file-dfile=d:\quartz-terracotta-bootstrap-2.2.2-snapshot.jar-dgroupid= Org.quartz-scheduler.internal-dartifactid=quartz-terracotta-bootstrap-dversion=2.2.2-snapshot-dpackaging=jar--DgroupId and DartifactId constitute the coordinates of the jar packa
Import the android package into the jar package, package the jar package into the library. KanKanStyle, androidkankankanstyle(1) Import JAR packages to a project: 1. Copy the external jar packages to a libs directory in the project EC or MYec. The old project does not have the lib directory. If it is called lib, an err
Ali database Connection Pool Druid connection Oracle 11g R2 error: not support Oracle Driver 1.0
1. Background and environment
These days in the tinkering Struts2+spring3+hibernate4+maven+easyui integration, JDK1.7, database using Oracle 11g R2, driven by Ojdbc14, The database connection pool uses Alibaba's Druid (the full package name is Com.alibaba.druid.pool.DruidDataSource), but when you do unit testing with JUnit, you report the following error:
caused By:java.sql.SQLException:not support O
The reason to export the runnable JAR. is because we want to export the referenced jar package with this project, so do not select the Jar fileChoose File/export ... Then java/runnable the jar file and select the class with main () to run, choose extract required libraries into generated
I used eclipse packaging, but reported that there was no master list attribute error in the Activemq.jar when the cmd window was executed.
Search on the Internet, this is related to the MANIFEST.MF file, the file does not define the main method in the class path, the use of good pressure to open the jar package, and sure enough. There's only one line inside.
manifest-version:1.0
You need to add Main-class. In this example, add the following:
Main-
Java packaged into Jars
JAR-CVF [Name of jar package] [file to be packaged]
Execute the Main method in the JAR package
Java-jar ****.jar
Always runs the specified main method after execution, and if there are multiple main methods in the
Senior brother has deployed a new virtual machine. This is a new term! Previously due to CrawlersCodeIt is unstable, so it is always run directly with eclipse, and then modified when problems occur. But this is troublesome, and eclipse occupies a lot of memory! So this afternoon, I removed the previous code, which is frustrating for many systems. out. println replaces log4j. The path, database connection, and configuration file are used for processing. Finally, it is compiled into an executable
Like-CP and-classpath, it is the path to the other classes that the specified class runs on, usually the class library, the jar package, and the full path to the jar package, the semicolon ";" JAVA-CP on the window. Myclass.jar Packname.mainclassnameThe jar file in the classpath can use wildcards, and if it is multiple jar
command to run the jar package:Java-jar Hello.jarHowever, if the project references other jars, you can see that the referenced jar is added to your jar when you package it with the IDE tool, but the runtime prompts classnotfoundexception.At this point, you need to modify the MANIFEST.MF in the auto-generated Hello.jar
Eclipse Export executable Java Engineering/executable jar files (including Third-party jar packs)
Brother deployed a new virtual machine, the new semester big get up! Because the reptile code was unstable, it was always run directly with Eclipse, and then the problem was modified. But this is a bit of a hassle, and eclipse itself takes up memory. So this afternoon to the previous code good stopgap, a lot o
Ext.: https://www.cnblogs.com/Think-007/p/7852589.htmlPersonal development, there is no need to build a nexus, so for us to use Spring boot development project, we will introduce the local jar package, for example, I will build a Lib package in the root directory, and then put the local jar inside, add to the Classpath reference.Then you will find that when we hit the j
First download the fat jar:
Http://sourceforge.net/project/showfiles.php? Group_id = 115990 package_id = 125924
After downloading the package, decompress it. There is a plugins folder with a jar package. Set thisFolderPut the dropins directory of myeclipse. Here, my path is D:/program files/genuitec/myeclipse 8.5/dropins, which is for your reference only. After restarting eclipse, right-click the project a
On GitHub, there are a lot of source code that are MAVEN projects, but many do not have jar packages. To find the words on the Internet the first is more difficult, the second is afraid not enough original. With Maven+eclipse, we can visualize the build of the MAVEN project into the jar library package and the source jar package.1. Download maven:http://maven.apa
From: http://blog.sina.com.cn/s/blog_4fcc6ef20100vzo3.html
It took me a few hours to get JDK today. After installation, I found that there are no tools. jar and DT. Jar packages in JDK \ Lib. I found many solutions on the Internet, but they did not solve the problem. Finally, we can see an essential solution. The cause of this problem is that JDK and JRE are placed in the same directory during JDK installa
Java package and jar package, java package jar package
1. Package
Package pack;/* defines the package, which is placed in the first line of the program. The package name must be in lowercase */Class PackageDemo{Public static void main (String [] args){Packa. DemoA a = new packa. DemoA ();/* two errors will occur during compilation,1. Incorrect Class Name (the name of the specified package must be written be
If the API, jar package, or other ancillary resources provided by a third party are used in the development of the program. When you export and build your project's jar file, you must export the files of the third party, or it will not run correctly.You can use the Fat jar plugin: http://sourceforge.net/projects/fjep/1. DownloadAfter the download is complete, unz
Method One, use bootstrap ClassLoader to load these classes.We can use the following parameters at run time:-xbootclasspath: Completely replace the system Java classpath. Better not.-XBOOTCLASSPATH/A: Loaded after the system class is loaded. usually with this.-XBOOTCLASSPATH/P: Loading before system class load, attention to use, and system class conflict is not good.Win32 java-xbootclasspath/a: SOME.JAR;SOME2.JAR; -
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.