jar

Android Exception: 'java.lang.NoClassDefFoundError: javax.jmdns.JmDNS'

纵饮孤独 提交于 2019-12-29 08:58:12
问题 Hopefully my issue isn't too silly but I'm having the following problem... I'm importing a jar which contains the library JmDNS into my project. My project sets up to handle JmDNS like this... setUp(); try { peer = new PublicPeer("Aidan",6666,6667,this); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } private void setUp(){ android.net.wifi.WifiManager wifi = (android.net.wifi.WifiManager) getSystemService(android.content.Context.WIFI_SERVICE); lock = wifi

Can't start .jar file (using LWJGL)

こ雲淡風輕ζ 提交于 2019-12-29 08:52:16
问题 Good day! I created jar file (using Netbeans) and i can't start it. This project uses lwjgl libraries. Inside my IDE it works well. I use next command: java -jar LWJGL_TimerExample.jar Answer is: Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1045) at org.lwjgl.Sys$1.run(Sys.java:73) at java

How to add the jar file into the build path

天大地大妈咪最大 提交于 2019-12-29 08:02:27
问题 currently i am working on the nd file upload and download from ftp server to android. now i am having the jar file which i need to use in my application.can to please suggest me how to add jar file into the build path. 回答1: Try this: Right click on project -> properties -> Java Build Path -> Libraries -> Add External Jars -> select the jar file where it is in your Pc-> click ok. 回答2: In your .classpath file which should look something like this: <?xml version="1.0" encoding="UTF-8"?>

How to add the jar file into the build path

家住魔仙堡 提交于 2019-12-29 08:01:22
问题 currently i am working on the nd file upload and download from ftp server to android. now i am having the jar file which i need to use in my application.can to please suggest me how to add jar file into the build path. 回答1: Try this: Right click on project -> properties -> Java Build Path -> Libraries -> Add External Jars -> select the jar file where it is in your Pc-> click ok. 回答2: In your .classpath file which should look something like this: <?xml version="1.0" encoding="UTF-8"?>

No suitable driver found when including the needed drivers with maven-assembly-plugin [duplicate]

 ̄綄美尐妖づ 提交于 2019-12-29 07:54:10
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: java error (No suitable driver found) I have a very small too that works with a PostgreSQL DB and it would be very convenient to use it as a single jar. So indeed I've tried using the maven-assembly-plugin like so: <artifactId>maven-assembly-plugin</artifactId> <version>2.3</version> <configuration> <archive> <manifest> <mainClass>pack.name.MainClass</mainClass> </manifest> </archive> <descriptorRefs>

libraries for JSF (Sun/Oracle Mojarra)

六月ゝ 毕业季﹏ 提交于 2019-12-29 07:48:15
问题 I am downloading Sun/Oracle Mojarra implementation of JSF from http://javaserverfaces.java.net/download.html I downloaded the latest -2.1.9 binary. It comes with only one jar - javax.faces-2.1.9.jar. I had a sample project which I believe is using the older 2.0 version, which includes 2 jars - jsf-api.jar and jsf-impl.jar. I replaced those 2 older jars with the single new jar. It seems like the sample project still works well. My question: Is there anything else I need to do besides replacing

Can a Jar File be updated programmatically without rewriting the whole file?

孤人 提交于 2019-12-29 06:29:47
问题 It is possible to update individual files in a JAR file using the jar command as follows: jar uf TicTacToe.jar images/new.gif Is there a way to do this programmatically? I have to rewrite the entire jar file if I use JarOutputStream , so I was wondering if there was a similar "random access" way to do this. Given that it can be done using the jar tool, I had expected there to be a similar way to do it programmatically. 回答1: It is possible to update just parts of the JAR file using Zip File

Java jar files into a repository (CVS, SVN..)

橙三吉。 提交于 2019-12-29 06:19:05
问题 Why it's a bad idea to commit Java jar files into a repository (CVS, SVN..) 回答1: Because you can rebuild them from the source. On the hand if you are talking about third-party JAR files which are required by your project then it is a good idea to commit them into the repository so that the project is self-contained. 回答2: So, you have a project that use some external dependencies. This dependencies are well known. They all have A group (typically, the organization/forge creating them) An

Java jar files into a repository (CVS, SVN..)

橙三吉。 提交于 2019-12-29 06:19:00
问题 Why it's a bad idea to commit Java jar files into a repository (CVS, SVN..) 回答1: Because you can rebuild them from the source. On the hand if you are talking about third-party JAR files which are required by your project then it is a good idea to commit them into the repository so that the project is self-contained. 回答2: So, you have a project that use some external dependencies. This dependencies are well known. They all have A group (typically, the organization/forge creating them) An

Java Web Start broken since JDK 1.7

ぃ、小莉子 提交于 2019-12-29 04:23:05
问题 HERES THE ANSWER: It appears (through our testing) that Java 7 Web Start requires you to host your resources on a server using an SSL certificate. Your cert does NOT have to be signed, but unsigned certs will prompt the client with a trust message that they can ignore. See the below answer for more details We have an internal application which we have been using for many years now. In order to make maintenance easier for this application we have not provided an installable version of the