jar

Android use Activity in Jar - NoClassDefFoundError

眉间皱痕 提交于 2019-12-25 07:34:58
问题 I am working on creating my own Android JAR file, this JAR will contain Activities which I need to call however I keep getting a NoClassDefFound error. It is only an issue with Activities contained in the JAR, any other objects called from the external JAR work fine. Below are the steps I have taken when creating this JAR I created a new library project called LibraryTest, and placed one Activity in it called LibraryActivity, which has a basic layout called librarymain.xml with some random

Run jar as a webapp on Azure

Deadly 提交于 2019-12-25 07:19:27
问题 I was able to run metabase.jar on my machine (W10), and now I need to try on Azure, because it's where I have SQL Server. Metabase.jar: metabase.com/start/ I couldn't do it by myself (closure and jetty are new to me). On Azure, I tried: Create a web app; Set to Java 8 and Jetty 9.1; Failed to run metabase.jar. 回答1: Based on my understanding, I think you want to deploy the metabase.jar file as a web application on Azure WebApps like on local. Then I followed the article to upload the metabase

Setting VM Options in JAR (-Xmx) [JVM Startup Parameters]

时光怂恿深爱的人放手 提交于 2019-12-25 05:53:34
问题 I searched for this question and got many many matches on stackoverflow itself, but the answers in there are sort of contradicting. In Ques: How to add VM options to jar? the top-voted+accepted says it is not possible and also most of the answers in Ques: Can I set Java max heap size for running from a jar file? say that No, it is not possible. Most of these answers saying "not possible" were given by people with high reputation and therefore I assume they cannot all be just wrong by

Setting VM Options in JAR (-Xmx) [JVM Startup Parameters]

六眼飞鱼酱① 提交于 2019-12-25 05:53:11
问题 I searched for this question and got many many matches on stackoverflow itself, but the answers in there are sort of contradicting. In Ques: How to add VM options to jar? the top-voted+accepted says it is not possible and also most of the answers in Ques: Can I set Java max heap size for running from a jar file? say that No, it is not possible. Most of these answers saying "not possible" were given by people with high reputation and therefore I assume they cannot all be just wrong by

changing code at runtime in java

坚强是说给别人听的谎言 提交于 2019-12-25 05:28:35
问题 Is there a way to change the code of the java at runtime?I need to read java file from jar, change the code, recompile it and put into the jar. All of this should be done at runtime. The part I dont knwo is how to read the java file as a java file from jar file and change the code 来源: https://stackoverflow.com/questions/11852954/changing-code-at-runtime-in-java

ant java task with space issue

放肆的年华 提交于 2019-12-25 05:14:36
问题 I was trying to execute a jar file via ant script. Like this <java jar="${jar.file}" fork="true" failonerror="true"> <arg line="${jar.args}"/> </java> jar.file has full path to the jar file and contains some space in it. When I executed that on Linux, there was no problem. But when I do the same on Windows I got error. java task couldn't locate the jar! I've tried all different variations like wrapping the file path with quote ("), replaced space with ", tried escaping with backslash, etc.

ant java task with space issue

岁酱吖の 提交于 2019-12-25 05:14:00
问题 I was trying to execute a jar file via ant script. Like this <java jar="${jar.file}" fork="true" failonerror="true"> <arg line="${jar.args}"/> </java> jar.file has full path to the jar file and contains some space in it. When I executed that on Linux, there was no problem. But when I do the same on Windows I got error. java task couldn't locate the jar! I've tried all different variations like wrapping the file path with quote ("), replaced space with ", tried escaping with backslash, etc.

Jar packaging and distribution

别来无恙 提交于 2019-12-25 05:09:57
问题 We have some common code laid out in packages as expected. Some of these packages are handler, processor, util, registration etc Common here means these will be re-used across multiple Java / Java EE projects which are unrelated to each other. The question is on packaging for distribution. Each package comprises a different functional units but put together, they are an API. Should we bundle individual functionalities into a JAR and end up with say 8 - 10 jars. eg: handler jar, registration

Login and XML Orbeon

扶醉桌前 提交于 2019-12-25 05:04:44
问题 I have two new questions: 1) I configure the orbeon Form to restrict the access to users (with tomcat). This works good. But the Page for login is in english (I need view this page in Spanish) and the style from this page is bad. So, it's possible configure this page? I thinked update the orbeon-form-runner.jar, descompress and edit the login.xhtml and compress to new orbeon-form-runner.jar but i recibe a error when i start the orbeon: this is the error: At least one JAR was scanned for TLDs

Distributed jar file not picking up my .txt file

Deadly 提交于 2019-12-25 04:55:27
问题 I'm using OS X, Netbeans 7.3 Beta 2, Java. I have a program which reads from a text file. When running my distributed jar, my program does not utilise this .txt file. Here are my two packages - ignore all java files in com.john.view apart from SPPMainGUI2.java: As you can see, cpass.txt is found in com.john.spp. Here is how I use it: BufferedReader in = null; try { in = new BufferedReader(new FileReader("cpass.txt")); } catch (FileNotFoundException ex) { Logger.getLogger(SPPMainGUI2.class