Host Library--3rd Party If we download the Oracle Driver jar package and want to use it for another project group, we need to upload the jar package. Select the Host Library--3rd party, and then select artifact upload to upload to the host space. How do I get the exact version of a jar package?Unzip the package, you will find a file called MANIFEST.MF, this file has a description of the package version information.For example, manifest-version:1.0 can know the version of the package.Maven upload
How to use the jar file
Then the previous project code:http://blog.csdn.net/github_26672553/article/details/72769798In the target directory are: Me.class, my directory, news directory, News.jar.Since we have packaged the news directory as a News.jar file, is it OK to delete the news directory?
#但是运行 java ME error
Exception in thread ' main ' java.lang.noclassdeffounderror:news/newsservice at
My.myname.showName (myname.java:10) at
me.main (me.java:7)
caused by:java.lang.ClassNotFoundExce
Write this blog mainly for their own later can quickly find.
Add the following build content to the project node of the Pom.xml file:
The end result is a Lib directory under target that contains some third-party jars that the project uses, or a jar of its own other projects, and then Main-class and Class-path configuration information in the MF file of the main jar package. This is the condition that guarantees that the jar package is executa
Tags: TTY implementation jump engine writer code root directory tee HTTPHow do I implement a subdirectory forcing HTTPS address access in an Apache environment? In this article, we will share with you how to modify the. htaccess file in the Apache environment to implement a subdirectory forcing HTTPS address access. 1, root directory domain name. Even more simple, add the following code to the. htaccess fil
Tags: mysql using forcing InnoDB recovery recovery databaseEnvironment:CentOS Release 6.6 (Final)Server Version:5.5.42-37.1-log Percona Server (GPL), Release 37.1, Revision 39acee0Phenomenon:Database hangs, restart errorThe server quit without updating PID file (/var/lib/mysql/cm.data.dingkai.com.pid). FailedLog:150721 12:38:37 Innodb:database was wasn't shut down normally!Innodb:starting crash recovery.innodb:reading tablespace information from the.
OK appears as interface, right click, click Create Directory , create one libs , and put all third-party jars into the Libs directory.After success, as shown in:After putting it in, click on the name of the jar that we want to play, which is kafka-cps.jar , select Classpath to configure.The results of the edits are as follows:This is where all the jars are written libs/ . Click to OK go back to the config
Create, rename, delete files and folders under Ubuntu, forcing the Recycle Bin method to emptymkdir Directory Name- -Create a directory rmdir Empty directory name- -delete an empty directory rm file name --delete a file or multiple files RM -RF non-empty directory name- -delete everything under a non-empty directory touch file name- -Create an empty fileRenaming files (clips)/moving files (clips) to a specified fold
path.Then click on the main class selection button in general, and in the pop-up window, exe4j will automatically search for the class that contains the main method in all the jars under the current class path, and list it because I currently only select the jar for my project. And my project only Main.jar contains the main method, so at a glance, directly select it click "OK", the program entry class is set to completeAfter the Main class setting is
Findmaven.netis aFind Jarand theFind mavenof themaven Warehouse Search engine, which can be found based on the class name or jar name provided by the Java Developerincluding its jar.. Provided at the same timemaven Repository links for jars. Maven POM. maven Dependency Tree,JavaDoc,Jar Source Codeand thejar Structure Tree. At the same time in this site can also use the Maven warehouse to find relevant JAR,HTTP://WWW.FINDMAVEN.NET/GETREPO?LANG=CN, we a
Applying MAVEN Shade Plugin To resolve multiple version conflicts with jars or classesResolving multi-version conflicts with a jar or class using Maven shade pluginJava applications often encounter the dependency of the three-party library version conflict, the following is a specific example.Dubbo is a distributed service framework in which one of the RPC implementations (Dubbo protocol) uses Hessian 3.2. The other implementation (HSF protocol) also
The project needs to package Dropwizard (Java restful service) and Derby (Lightweight database) into jars and then provide them for use in other projects. since Dropwizard did not provide the jar-release version, a Gradle build script was written to package Dropwizard and Derby in the Maven library into a jar package and then add it to the target project. Script code:Apply plugin: ' java 'Project.ext {//Project Title nametitle = ' Dropwizardderby '//P
The solution in eclipse is as follows:
In the project directory (with the SRC layer) to establish a Lib directory, the third-party jar package into this directory (copy,paste) [if the local jar directly referenced, once changed the computer, hehe ... ]
Right-click the project->properties->java Build path->add Jars Add the third-party package in Lib
Export->java->runnable Jar File
Package executable j
From: http://heipark.iteye.com/blog/1171923Through "Conf.set" ("Tmpjars", jars); "You can set up a third-party jar that has been just adding a jar, running OK, and I'm going to add multiple jars today and find that MapReduce is not found at runtime. Class (ClassNotFoundException), the trace code found that the jar file did upload to HDFs, so there was no solution, and then the jar was uploaded to HDFs, Then
Colleagues want to write the packaging tools under the Android platform and encounter the problem of merging multiple jars into one jar. Here is a list of the steps to proceed:1. Copy all jar files to a temporary directory and extract all the. class files through the jar command
> JAR-XVF Xx.jar
Xx.jar must be a specific jar, cannot be *.jar, will be reported FileNotFoundException2. Delete all jar files in temp directory
> del/f *.jar
jar required to use the velocity template.
Ant.jar
The project hand packs the jar required for the release.
A write jar associated with spring
Spring.jar
Core, necessary.
Spring-webmvc.jar
The jar that is necessary to use Spring web MVC
Struts2-spring-plugin-2.1.6.jar
Strtus2 the jars needed to integrate with spring
Struts2 associated with a write jar
Struts2-core-2.1.6.jar
Core, necessary.
The jar associated with the hibernate
Hibernate3.jar
hint to force an Oracle optimizer on this index, after the SELECT keyword, plus "/*+ index (table name, index name) */".Like what:SELECT * from serviceinfo where disposalcourseflag=1;In the above statement, the actual execution of Oracle using a full table scan, hint section, used to index query. As follows:Select/*+ INDEX (serviceinfo,ix_s_disposalcourseflag) */ * from serviceinfo where disposalcourseflag=1;Note that this approach can make code maintenance more difficult, and after the nam
compile without errors, and the class that has the error to delete the jar file will compile correctly.3. If your project is a Web project and you need to deploy debugging, you must also make the following settings: Right-click Project->properties->deployment assmebly->add, select Projects, select the Target project framework Save.This will also be dependent on the project release at the time of the main project release. Otherwise, although it compiles successfully, it will error when publishin
, select libraries, click "add library" on the right and select "User library ", click "Next" and click "User librarys". On the displayed page, click "New .. click "OK" and click "add jars" to select a third-party jar package. Click "OK. The subsequent steps are very important if you do not perform subsequent operations. In eclipse, the compilation is passed and no errors are displayed. However, Java may occur when running on a simulator or a real mac
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.