Most of the time when we work in the company, we don't see the source code when eclipse refers to a jar package that is packaged by others, so it's not very good to understand the intentions of others, so we need help with anti-compilation. OK, here's how to use the anti-compilation method correctly.One, download Net.sf.jadclipse_3.3.0.jar and put it in the plugins folder under the Eclipse folderSecond, del
1, Java Operation
Test jar: Execute---java-classpath f:/testhello.jar Test2
Or
JAVA-CP F:/testhello.jar Test2
Print Results: Hello World
The Java classes are as follows:
/**
* Document: This kind of function----> Print Hello World
* USER:YANGJF
* date:2016/9/25 9:48
/Public Class Test2 {public
static void Main (string[] args) {
System.out.println (' Hello World ');
}
2, Scala operation
Test
After Oracle 9.2, the naming of the JDBC driver will change, and the jdk1.1,jdk1.2 driver name (Class12.jar) will no longer change, it continues, starting with JDK1.4 all changes to the driver name, For example: JDK1.4 's driver name is Ojdbc14.jar. The driver name for the JDK1.5 is Ojdbc15.jar.
JDBC versions should be selected in different versions of the dat
Java. after the class, if you just use Java commands to execute it, you may not think it is too enjoyable. It is interesting to find a way to generate a file that can be executed by double-clicking with the mouse like an EXE file. Here I use a free small software called exe4j. It feels good.
Next, you need to select the. Class file you are about to release. The following is a jar file. Here I use the name D: myjavatest. for example, write a file manif
Background:Upload jar package from FTP to Linux, then download jar package file on Linux via FTP command, start execution Java-jar, always prompt error: error:invalid or corrupt jarfile Xxx.jarHowever, local execution is carried out under CMD.We were going to run a HDFs file operation via the yarn jar or Hadoop
@@ 首先 Most important cmd command: Javac, jar: Use the following ( note [.] Do not lose the wrong ):1. Javac Compilation:D:\myworkset\idea_hadoop>javac-d. \out\production-cp. \lib\*-encoding Utf-8 Src\com\it18zhang\hadoop\*.java2.jar Packaging:D:\myworkset\idea_hadoop>jar cvfm. \out\artifacts\idea_hadoop.jar. \out\production\meta-inf\manifest. Mf-c. \out\productio
One way to do this is to set the classpath in the Mainfest file in the jar file you want to execute. It's easy to write the wrong name. Add the. jar file in the delete Lib folder at any time because you need to modify the Mainfest file every time you add a deletion classpath
There's a lot of it. How to set the jar package for a directory to classpath, but if you
The program needs to be packaged intoJardocuments for use by third parties for project requirements(the pictureThe text resource is written toJarin the package,when a third-party call,you only need toAndroidmanifest.xmlconfiguration under the correspondingActivitythroughstartactivityWay Pull UpActivity): On the internet for a long time, and rely on viewAndroidSource finally solves the problem A: need to understand knowledge: 1.APK Span style= "font-size:9pt" in Res directory does not pass
The project needs to be packaged intoJardocuments for use by third parties for project requirements(the pictureThe text resource is written toJarin the package,when a third-party call,only need toAndroidmanifest.xmlconfiguration under the correspondingActivitythroughstartactivityWay Pull UpActivity): On the internet for a long time. and rely on viewAndroidsource code finally overcame the problem A: Need clear knowledge: 1.APK Span style= "font-size:9pt" in Res folder does not pass Eclip
Java javacsv. jar application for csv file operations, csvjavacsv. jar
Csv files are separated files. If you use java I/O streams for writing, it is troublesome. Here we provide you with a jar package of javacsv, which is very convenient for you to operate csv files.
: Https://pan.baidu.com/s/1i46ErFB
So how to use it?
Take a look at the next example and you will
After importing the maven project using eclipse with the m2eclipse plug-in installed, Pom. XML start position: missing artifact COM. the Sun: Tools: jar: 1.5.0 error is not a big problem, but this error will block the eclipse build Maven project. There are two solutions to this problem:
Method 1:
Find the eclipse. ini file in the eclipse installation directory and append the VM parameter to the-vmargs parameter. The following is an example:
Java uses Redis connection poolingJar Package for Jedis-2.9.0.jar+commons-pool2-2.4.2.jar1 Packagecom.test;2 3 ImportRedis.clients.jedis.Jedis;4 ImportRedis.clients.jedis.JedisPool;5 ImportRedis.clients.jedis.JedisPoolConfig;6 7 Public classRedisutil {8 //Redis Server IP9 Private StaticString ADDR = "192.168.0.41";Ten One //the port number of the Redis A Private Static intPORT = 6379; - - //Access Password the Priv
Import Zxing.jar package on Android, always error:
Could not find class ' Com.google.zxing.MultiFormatWriter ' and referenced from method Com.changyang.app.util.Encode2dUtil.creat2DCode
the solution was later found :
Prior to the release of Adt17, a Lib directory was created and add to Buiild path when importing the Third-party jar packages .
After the adt17 version, import the third party jar package,
Original: https://blog.csdn.net/lw_power/article/details/52524610
1th Step: Create folder, copy Jar package
Create a folder in your Gradle project called "Libs" (the name can be defined by itself, not necessarily the name), and copy your local jar pack into this folder.2nd Step: Write Build.gradle core profile fragment
Add the following code fragment to the Gradle core configuration file Build.gradle:
1, we need to increase the configuration file jar needs, select the project's src directory, right mouse button, select [New]-select [Folder].2. Enter Meta-inf as the directory name and click [Finish].3, select the directory you just created, right mouse button, select [New], select [File].4, input MANIFEST. MF, select [Finish].5, edit the file, modify the following content:manifest-version:1.0Main-class:lession1. HelloWorldClass-path:spring.jar Sprin
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.
Jar package using Eclipse packaging stepsRight-click on the item to be packaged-"SELECT Export"There are two ways to pack up here.1. If no other third-party package is used in the project, then the first one in the direct selection (JAR file)2. If there are references to other third-party packages in the project, use the second (Runnable jar file) in the selectio
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 execute, select extract required libraries into generated
Running the jar package with Java-jarIn fact, it is not difficult, online search a lot, but not full, or speak a lot, some details are missing, in this, I would like to point out the detailsJava-jar1. In fact, the command is relatively simple: enter the corresponding directory, the execution of Java-jar Xxx.jar can!2. But why can't the jar from MAVEN package or e
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.