jar

Compiling multiple jar and java files using javac

青春壹個敷衍的年華 提交于 2020-02-22 07:18:37
问题 I downloaded a sample code written in java that has multiple jar files and java files. I am not a Java programmer so I am having a hard time compiling the code. Here's my attempt: javac -classpath lib/*.jar src/*.java However this is what I get: javac: invalid flag: lib/dom4j-1.6.1.jar Usage: javac <options> <source files> use -help for a list of possible options What's wrong with my approach and how can I compile the code? ALl the jar files are located in the lib folder, and the java files

Cannot run Java application. Main not found [duplicate]

Deadly 提交于 2020-02-06 17:44:46
问题 This question already has answers here : Can't execute jar- file: “no main manifest attribute” (37 answers) Closed 6 years ago . I am completely new to java and I need to just run an application I downloaded off the internet. The application in question is the "spinn3r" client found here: http://code.google.com/p/spinn3r-client/downloads/detail?name=spinn3r-client-3.4.06.tar.gz I extracted the tar.gz and found a .jar file. I then ran: java -jar applicationName.jar I get the following error:

Library conflict in SoapUI

半腔热情 提交于 2020-02-06 08:21:48
问题 My problem is simple : I created my own jar to use it in a groovy testSuite : My lib needs : bcpkix-jdk15on-1.49 and bcprov-ext-jdk15on-159 In the lib folder in my soapui path I have : bcprov-jdk15-1.46 So when I import my jar into a groovy script in soapUI, I get this error : java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z error at line: 7 Which is probably a conflict in bcprov library, is there a way to solve this ? 回答1:

Execute bazel-buildfarm in a production-ready way without “bazel run”

无人久伴 提交于 2020-02-06 08:19:28
问题 The readme of Bazel-buildfarm says: In general do not execute server binaries with bazel run, since bazel does not support running multiple targets. This sounds like bazel run is designed for local testing-purpose, not for productive servers where multiple jobs could run. But I couldn't find a documentation showing how to run the bazel server instead. Older Dockerfiles run bazel build and then execute the generated jar-file with java. I tried this on my test machine and got the following

What jars do I need for Spring AOP for version 5

折月煮酒 提交于 2020-02-06 07:54:49
问题 As of version 4 of Spring, these are the jars needed to use Spring AOP: aopalliance.jar aspectjrt.jar aspectjweaver.jar cglib-nodep-2.1_3.jar spring-aop-4.0.0.M2.jar But for version 5, what are the jars needed other than spring-aop-5.0.2.RELEASE.jar spring-aspects-5.0.2.RELEASE.jar And where do I find them? 回答1: Following are the minimum set of dependencies that I required to run an annotations based Spring applciation spring-context-5.2.2.RELEASE.jar spring-beans-5.2.2.RELEASE.jar spring

imported jar package does not exist

回眸只為那壹抹淺笑 提交于 2020-02-05 08:12:05
问题 I am writing a class to encode a string using base64. I downloaded the jar file and imported it into my project in the following way: Right click on the project library properties -> Click on the Add/Jar Folder button -> Navigate to the jar file I wish to add -> Click on it and click open to upload it to the library The jar was successfully uploaded and it is visible in the project library. But when I try to use it, netbeans says the package org.apache.commons.codec.binary.Base64. does not

NetBeans - How to Build Project jar file with all required libraries

怎甘沉沦 提交于 2020-02-05 04:12:09
问题 I've tried to build my project with NetBeans 6.5; The thing is the project contains external jars added so I need them all being placed into my jar file (because it is to be signed); but IDE just places project classes in the jar :( So my question is how to place project dependent external libs into my project JAR with NetBeans ? 回答1: I think you need something like this fat jar tutorial. I'm not sure if it's easier than building with an Ant script, but it should do the trick. 来源: https:/

Using maven to create junit xml reports of jar

痞子三分冷 提交于 2020-02-02 14:30:33
问题 I have inherited a codebase whereby we have a maven project of component tests that use junit as the framework that runs the tests. Everything runs OK, but the problem is that these tests must be compiled into a jar-with-dependencies so that they can be run on a standalone computer with very limited outwards connectivity (e.g does not have access to maven central). I have managed to create a runnable jar with dependencies which I can run using junit.jar and the command line like so: java -cp

java -xbootclass path is no longer a supported option

感情迁移 提交于 2020-02-02 13:17:21
问题 I upgrade the linux system and java package was also upgraded and i was running a jar file with command java -Xbootclasspath/p:b.jar -jar c.jar and error occurs says -Xbootclasspath/p is no longer a supported option. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. now what to do iam not a java programmer i just need to run that jar file ! any help! 回答1: thanks guys i just solved the problem by calling java interpreter in JDKv8 in

java -xbootclass path is no longer a supported option

℡╲_俬逩灬. 提交于 2020-02-02 13:16:06
问题 I upgrade the linux system and java package was also upgraded and i was running a jar file with command java -Xbootclasspath/p:b.jar -jar c.jar and error occurs says -Xbootclasspath/p is no longer a supported option. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. now what to do iam not a java programmer i just need to run that jar file ! any help! 回答1: thanks guys i just solved the problem by calling java interpreter in JDKv8 in