jar

Applets Jar cant find resource

假如想象 提交于 2020-01-06 13:08:43
问题 I've made applet, Here's files from its jar. In my classes I've call ffmpeg.exe , and I have all privileges like self-signed applet and make call via Access Controller. So I've getting error in program, It's can't be find *my ffmpeg lib* . This should be very easy Q: where should I place my ffmpeg.exe file ? And I've get exception as: Cannot run program "ffmpeg": CreateProcess error=2, ?? ??? ??? ????? ???? The code are following as: public class DtpVideoApplet extends Applet { public String

JavaLogger randomly writes to a second file

六月ゝ 毕业季﹏ 提交于 2020-01-06 12:43:48
问题 I have a jar that is called about every minute from another script. In this jar I have created a JavaLogger that logs what happens while the Jar runs. The log file that JavaLogger writes to is called myLog.0. I have the following code to allow it to go to .1/.2/.3/.4. try { FileHandler fileHandler = new FileHandler(filePath, 5242880, 5, true); fileHandler.setFormatter(new java.util.logging.Formatter() { @Override public String format(LogRecord logRecord) { return "[" + logRecord.getLevel() +

MessageHandler in JAR/WAR/EAR

China☆狼群 提交于 2020-01-06 08:36:09
问题 I am making a PEP Server which intercepts the SOAP messages, and checks them against WS-Policies defined in a separate database. It is divided in 3 compontents: 1) PEP (Policy enforcemenet point) intercepts the messages with a message handler 2) sends it to the -> PDP (Policy decision point) decides which message gets through 3) this by using the PIP (Policy information point) which has a database with the policies. If the policies are correct, the message gets send further to the web service

How to run json-schema-validator from the command line

徘徊边缘 提交于 2020-01-06 08:30:34
问题 Is it possible to run the json-schema-validator from the command line? Is there a jar file for json-schema-validator? I found a jar at: [http://mvnrepository.com/artifact/com.github.fge/json-schema-validator/2.1.8][1] but it appears to be corrupt/incomplete/something (I'm not a Java programmer). Applying java.exe to the jar file: java -jar json-schema-validator-2.1.8.jar results in this error message: "no main manifest attribute, in json-schema-validator-2.1.8.jar" What does that mean? Here

How Jar usage in iphone project?

混江龙づ霸主 提交于 2020-01-06 08:17:33
问题 I have a jar file , that i need to include in my xcode project i.e. iphone project. How to do it & also please help me, then how to use it in objective-C code, as in java its used like: system.out.println("Res:"+objA.connect("",""")blahh, blahhhhh) Thanks for ur Help!!!!! 回答1: Java Executables such as Jar files are not supported in iOS and are unlikely to in any future distribution of iOS. To perform the same function as you are in your aforementioned code, you would simply use the following.

error could not find the main class program will exit after netbeans

 ̄綄美尐妖づ 提交于 2020-01-06 07:55:09
问题 When i compile and run my program in eclipse, it works. When i run my .jar program on my personal computer (Windows 8 with java JDK 7), it works. But when i'm trying to run .jar in others computers, it doesn't work. So i tried to run with command line java -jar myjar and i got this message which i can't understand java -jar "Bureau\Application SNCF\SNCF.jar" Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader

error in running a jar using java code

巧了我就是萌 提交于 2020-01-06 07:24:33
问题 I have a java swing application to extract text from pdf. It works fine when i run using command prompt( java -jar xyz.jar ) or double click and run the jar but it gets stuck when I run using java code Process asm = Runtime.getRuntime().exec("java -jar xyz.jar"); asm.waitFor(); or using process builder. is it because of the exceptions in my application? I'm not sure. 回答1: You probably aren't in the proper directory. Use the directory() method of ProcessBuilder so that the external process is

error in running a jar using java code

断了今生、忘了曾经 提交于 2020-01-06 07:24:21
问题 I have a java swing application to extract text from pdf. It works fine when i run using command prompt( java -jar xyz.jar ) or double click and run the jar but it gets stuck when I run using java code Process asm = Runtime.getRuntime().exec("java -jar xyz.jar"); asm.waitFor(); or using process builder. is it because of the exceptions in my application? I'm not sure. 回答1: You probably aren't in the proper directory. Use the directory() method of ProcessBuilder so that the external process is

Which jar for interface HttpSessionListener?

孤街浪徒 提交于 2020-01-06 07:17:09
问题 I wanted to use javax.servlet.http.HttpSessionListener interface in my project. The project can't find a proper jar. Which jar do I need to include in the project? Which package? Edit Seems like a different problem, new question here. 回答1: I think servlet-api.jar will do it. and if project still can't find a proper jar, then you must try to add it again [as you have said that you are using eclispe so you can add it using properties-> build path -> configure build path -> add external jars ].

Why my Jar doesn't run unless I extract files?

醉酒当歌 提交于 2020-01-06 06:52:08
问题 Every time I run the exported .jar file, that contains a JFrame with an image as its icon, the file doesn't run, unless I extract the file . In the compiler it is running. I dont want to make a launcher that saves both, the resources package and the jar file, in a directory. 回答1: "Why my Jar doesn't run unless I extract files?" This seems to be the behavior of using File to your resources. Take for example File file = new File("resources/image.png"); Image image = ImagIO.read(file); And you