jar

Android build apk: control MANIFEST.MF

痞子三分冷 提交于 2020-02-02 11:22:25
问题 Android build apk: Suppose an apk contains a library jar(e.g. foo.jar) that has META-INF/MANIFEST.MF, which is important for it to function. But in APK there is a MANIFEST.MF that contains signing data, and the lib jar MANIFEST.MF is lost. APK META-INF/MANIFEST.MF Is there a way to add more attributes to the MANIFEST.MF or merge lib jar MANIFEST.MF into it? UPDATE After unpacking apk, adding some attributes to MANIFEST.MF and repacking apk, packageDebug { doLast { // add attributes to

Android build apk: control MANIFEST.MF

℡╲_俬逩灬. 提交于 2020-02-02 11:22:09
问题 Android build apk: Suppose an apk contains a library jar(e.g. foo.jar) that has META-INF/MANIFEST.MF, which is important for it to function. But in APK there is a MANIFEST.MF that contains signing data, and the lib jar MANIFEST.MF is lost. APK META-INF/MANIFEST.MF Is there a way to add more attributes to the MANIFEST.MF or merge lib jar MANIFEST.MF into it? UPDATE After unpacking apk, adding some attributes to MANIFEST.MF and repacking apk, packageDebug { doLast { // add attributes to

Does not load JDBC Library on ARM by execute Java Applikation

半腔热情 提交于 2020-02-01 17:37:05
问题 Ok We have a Java-application "app.jar" in a unix home directory with a external Sqlite Driver Library. - myapp/app.jar - myapp/lib/sqlite-jdbc-3.8.7.jar Device Udoo ARM Cortex V9 simliar to Raspberry Pi. java -version java version "1.8.0_06 Java(TM) SE Runtime Environment (build 1.8.0_06-b23) Java HotSpot(TM) Client VM (build 25.6-b23, mixed mode) Try to run this application failed. java -classpath lib/sqlite-jdbc-3.8.7.jar -jar myapp.jar It seems that the Application cannot find the Library

Loading with ResourceBundle from inside a jar

送分小仙女□ 提交于 2020-02-01 03:06:05
问题 I have seen some answers concerning how to load a particular file within a jar through getResourceAsStream , and I can manage this. However I am facing something really specific an I could not find an answer about this on the forum. Here is the configuration: I have a jar file having a conf directory that contains 2 properties files messages_en_US.properties and messages_fr_FR.properties . The classical way to load such resources is to use ResourceBundle.getBundle("messages", java.util.Locale

Adding a connector to Kafka Connect

谁说我不能喝 提交于 2020-01-30 02:34:12
问题 I am using Confluent Kafka Docker image, specifically using this: https://github.com/confluentinc/cp-docker-images/tree/4.0.x/examples/cp-all-in-one I want to add the MySQL connector, by: downloading the version 1.5.46 of the connector (https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz) mounting a volume with a jar that comes out of the downloaded connector (mysql-connector-java-5.1.46-bin.jar) adding the CONNECT_PLUGIN_PATH to the docker compose file

include package in maven while preparing jar

帅比萌擦擦* 提交于 2020-01-25 21:12:03
问题 I have below project structure. I wanted to prepare a jar with dependencies including different packages which has .java files. Project Structure: src/com/rev/automation/utilities src/com/rev/automation/testdata src/com/rev/automation/pages Main Class: org.openqa.selenium.remote How to include "src/com/rev/automation" packages into the jar in maven? i'm preparing the jar using below code, But it is not including packages and files present in "src/com/rev/automation". Kindly suggest <plugin>

include package in maven while preparing jar

一曲冷凌霜 提交于 2020-01-25 21:10:11
问题 I have below project structure. I wanted to prepare a jar with dependencies including different packages which has .java files. Project Structure: src/com/rev/automation/utilities src/com/rev/automation/testdata src/com/rev/automation/pages Main Class: org.openqa.selenium.remote How to include "src/com/rev/automation" packages into the jar in maven? i'm preparing the jar using below code, But it is not including packages and files present in "src/com/rev/automation". Kindly suggest <plugin>

include package in maven while preparing jar

让人想犯罪 __ 提交于 2020-01-25 21:08:01
问题 I have below project structure. I wanted to prepare a jar with dependencies including different packages which has .java files. Project Structure: src/com/rev/automation/utilities src/com/rev/automation/testdata src/com/rev/automation/pages Main Class: org.openqa.selenium.remote How to include "src/com/rev/automation" packages into the jar in maven? i'm preparing the jar using below code, But it is not including packages and files present in "src/com/rev/automation". Kindly suggest <plugin>

Runnable jar exported with eclipse isn't working, in eclipse it still works

你离开我真会死。 提交于 2020-01-25 20:55:08
问题 I'm trying to export a java project in eclipse as a runnable jar, but for some reason the runnable jar doesn't work. If I double click the executable jar, it doesn't do anything. I tried both extract and package required libraries into generated jar. So I also tried to export some simpler projects, those worked fine. The biggest difference is my real project has files: images and xml files. In code reference them like this: File file = new File("Recources/test.xml"); ImageIcon imageIcon = new

Remove xercesImpl-2.8.1.jar from the application

左心房为你撑大大i 提交于 2020-01-25 20:07:31
问题 Per the recommendation from here: WAS 8.5: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory, I've looked through all the jars and cannot find xercesImpl-2.8.1.jar. I did remove crimson_1.1.1.jar from my project but that did not alter the error (java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory). I looked for the method in question