When you export a normal jar package using eclipse before the project is released, if the configuration is not good, the Java-jar /test.jar following three types of error messages may appear when you run the command:1. The no main manifest attribute, in /test1jar Main method is not specified;2. The Error: Could not find or load main class Main method is not specified;3. Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/kafka/common/utils/Utils. the introduction class was not
Common Java packages and common Java packages
Java. lang: This package contains the core classes of the Java language, such as String, Math, Sytem, and Thread. You do not need to use the import Statement to import the package, the system automatically imports all classes in this package.
Java. util: This package contains a large number of java tool classes/interfaces and collection framework classes/i
1. Create a new MANIFEST.MF file in the project root directoryVersion number manifest-version:1.0//dependent jar path multiple spaces separated Class-path:lib/commons-logging-1.1.1.jar lib/ httpclient-4.2.1.jar//Program Entry Class Main-class:collectimg.main2. Project name right-click-->export-->jar file3. After export, put the dependent jar package into the same directory as Lib (if there is a profile profile and the jar package in the same directory but the export cannot check the configurat
})]x6.png "alt=" Wkiom1lyxfnyyat0aacg6tfn8w4330.png "/>Input and output redirection> The meaning of redirection· Cat 1 txt > 2.txt put the output of the front file directly into the back of the file, redirect the contents of 1.txt to 2.txt, and it will delete the contents of the file to rewrite650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9A/A2/wKiom1lYzvvRIUmaAADEGCh8EnI506.png "title=" h$[4p $H]np9pdbme{4_w$74.png "alt=" Wkiom1lyzvvriumaaadegch8eni506.png "/>> > Add the meaning t
When an ordinary project is not applicable to the jar package management tools such as MAVEN, usually I copy the jar package directly under the LIB, and add the additional jar package directly in the build path, or use the jar package of the User_libraries packageIn a folder, and then make the project dependent on the User_libraries package. If I create a new project, but only some of the jar packages are different or the versions are different, I usu
Detailed introduction to various Python library installation packages and installation processes (for Windows) and python installation packages
When using Python for development (in a Windows environment), you may encounter a third-party library that needs to be installed. For future search and installation convenience, the following is a summary:
Various Python library installation
Query function
Command format rpm {-q|--query} [select-options] [query-options]
RPM Query function is extremely powerful, is one of the most important functions; For a few common examples, more detailed specific, please refer to #man rpm
1, the system has installed the software query
1 Query system installed software
Syntax: RPM-Q software name
Example: [Root@localhost beinan]# rpm-q Gaim
Gaim-1.3.0-1.fc4
View all installed packages in the system, plu
Jar packages can be downloaded from maven. jar packages can be downloaded from maven.
Baidu is used everywhere when a jar is used. You can download it from maven today.
Those who downloaded the jar package on the official website lie in points on csdn.
URL: http://search.maven.org/#browsejarjarpackage can also be configured to automatically download in pom.xml.
However, a small number of
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.jar plug-in: Include the third-party Jar package in the exported jar package. Put the plug-in the dropins directory of MyEclipse (for exampl
Common Java software packages and common Java software packages
Java. lang: language java core package. After the Object System String Throwable jdk1.2, the classes in this package are automatically imported.
Java. awt: defines the objects used for java graphic interface development.
Javax. swing: Provides controls for all windows desktop applications, such as Frame, Dialog, Table, and List. It is the ja
1. How many software packages have been installed?
[root@localhost ~]# rpm -qa | wc -l217
2. How do I know which software packages are installed?
[root@localhost ~]# rpm -qa | sortacl-2.2.49-6.el6.x86_64aic94xx-firmware-30-2.el6.noarchatmel-firmware-1.3-7.el6.noarchattr-2.4.44-7.el6.x86_64audit-2.2-2.el6.x86_64audit-libs-2.2-2.el6.x86_64authconfig-6.1.12-13.el6.x86_64b43-openfwwf-5.2-4.el6.noarchbasesystem-
}" for jar in $lib _path/*.jardoif ["$CLASSPATH" = ""];Thenclasspath= $jarelseCLASSPATH = $CLASSPATH: $jarfidoneexport classpath= $CLASSPATHecho "java ${main_class} \" [Email Protected]\ ""4. Right-click Project-debug as-maven assembly:assemblyThe output log is packaged successfully.Four. Testing1. Unzip the zip file, the folder structure is as follows, all files are present:2. Enter the bin and run the Start.bat (the JRE environment needs to be installed in the running environment)3. The result
, image files, and other resources that make up a Web application. Rather than just the archive of the class.When should we use the war file? It is not appropriate to use the war file during development, because in the development phase it is often necessary to add or remove content from the Web application, update the servlet class files, and after each change, it is a waste of time to re-establish the war file. In the product release phase, it is more appropriate to use the war file because at
successfully accessed, pack the war package: just change the jar to a war."Note: If you do not want to copy the jar name, the name of the package is customized, under build can be specified"Packaged into a war packageSee if the name of the packaged war package is customized.Then run the war package againThis can be accessed.Look at the war package, the page file has been packaged in.=============================================================================================================== =
Tags: file directory file group Yum build zsh Images Manager 5.0 DockThree ways to install packages1.RPM Tools2.yum tool (can install dependent packages automatically)3. Source code PackageIntroduction and use of RPM tools1. First mount the optical drive:which-2.20-7.el7.x86_64.rpm #包含包名,版本号,发布版本号,平台whois-5.1.1-2.el7.x86_64.rpmwireshark-1.10.14-14.el7.x86_64.rpmwireshark-gnome-1.10.14-14.el7.x86_64.rpmwodim-1.1.11-23.el7.x86_64
Management of Linux system software packagesFirst, RPM toolsRPM Redhat Package Manager, the design concept is open, not only on the Redhat platform, but also on SuSE can be used.RPM Package name composition consists of-and. Divided into parts, such as abrt-cli-2.0.8-15.el6.centos.i686.rpm,ABRT-CLI: is the package name2.0.8-15: is the version numberEl6: Refers to Redhat Enterprise Edition 6CentOS: Refers to this is used on CentOSi686: Refers to the platform typeSome RPM
Former, rain tree wind version of the problem of installing Samba under Ubuntu, now write to share.[Email protected]:~# apt-get Install SambaReading Package List ... CompleteAnalyzing Dependency tree for PackageReading status information ... CompleteSome software packages cannot be installed. If you are using an unstable (unstable) release, this may beBecause the system is unable to achieve the state you requested. There may be some software that you
This article supporting source code
Ibm®websphere®datastage™xml and Web Services packages are components in DataStage that deliver fast data integration solutions when XML and Web services are involved. Study the main functions and operations of DataStage Web Services and XML packages. Learn how to use these two packages to transform, integrate data, and get Goo
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.