jar

GWT Runtime Dependencies

二次信任 提交于 2020-01-05 06:06:02
问题 Please note , not interested in using the Google-Eclipse plugin; I want to manage all dependencies manually. Just downloaded the GWT 2.5.1 SDK and am looking at all the JARs it ships with: gwt-api-checker.jar requestfactory-apt-src.jar gwt-codeserver.jar requestfactory-client.jar gwt-dev.jar requestfactory-client-src.jar gwt-elemental.jar requestfactory-client+src.jar gwt-servlet-deps.jar requestfactory-server.jar gwt-servlet.jar requestfactory-server-src.jar gwt-soyc-vis.jar requestfactory

GWT Runtime Dependencies

我是研究僧i 提交于 2020-01-05 06:03:05
问题 Please note , not interested in using the Google-Eclipse plugin; I want to manage all dependencies manually. Just downloaded the GWT 2.5.1 SDK and am looking at all the JARs it ships with: gwt-api-checker.jar requestfactory-apt-src.jar gwt-codeserver.jar requestfactory-client.jar gwt-dev.jar requestfactory-client-src.jar gwt-elemental.jar requestfactory-client+src.jar gwt-servlet-deps.jar requestfactory-server.jar gwt-servlet.jar requestfactory-server-src.jar gwt-soyc-vis.jar requestfactory

Cant run my programme from command line

早过忘川 提交于 2020-01-05 05:26:18
问题 I have a main method that creates an instance of a logic class public static void main(String[] args) { try { Logic logic = new Logic(args[0]); ....... do some stuff here } catch (Exception e) { System.out.println("Error Encountered Details: " + e); } } the thing is that the programme requires a csv file to run, i have put it in the same directory as the .jar file but when i run from the command line i just get java.lang.arrayindexoutofbounds(0) error what am i doing wrong thanks 回答1: Your

Using an Image Panel with a Jar

China☆狼群 提交于 2020-01-05 04:52:08
问题 I am having trouble getting my ImagePanel to display when I pack it was a jar. When I run the project from Eclipse it displays just fine. here is the line that creates the ImagePanel: ImagePanel panel = new ImagePanel(this.getClass().getClassLoader() .getResource("edu/luc/tictactoe/gui/resources/images/UIMM.png")); frame.setContentPane(panel); and here is the ImagePanel class: @SuppressWarnings("serial") public class ImagePanel extends JPanel { BufferedImage img; public ImagePanel(URL url) {

How to attach libraries to JAR file?

回眸只為那壹抹淺笑 提交于 2020-01-05 04:42:33
问题 It works fine when compiling project, but after exporting it to a runnable jar and launching, it can't find external files and throws an error. What should I do? 回答1: You could attempt building a fat jar that includes all the jars. It contains a custom class loader to load the jars referenced externally by your project. Try using http://fjep.sourceforge.net/ plugin to build a fat jar. You can export a java project containing jars using the File -> Export -> Other -> One Jar Exporter . The jar

Opening a PDF file that is packaged in a JAR

孤人 提交于 2020-01-05 04:33:09
问题 I am trying to open a PDF file that is packaged into the jar file during runtime. The basic idea is that the user clicks the help option and then it displays a help file that is a PDF. Right now I have this in LineFit.class in the linefit package to try and open the help PDF: try { File test = new File(LineFit.class.getClass().getResource("/linefit/helpTest.pdf").toURI()); try { Desktop.getDesktop().open(test); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace()

Spring Aop “Around.class” Class Not Found Exception

青春壹個敷衍的年華 提交于 2020-01-05 04:23:05
问题 Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang

how to load a properties file from the META-INF directory?

核能气质少年 提交于 2020-01-05 04:12:09
问题 Is it correct to say that properties files used in execution by a running JAR best belong in META-INF ? The notion being to fit with the Standard Directory Layout specified by Maven . Assuming that structure is desired, how is the properties file loaded from META-INF ? thufir@doge:~/NetBeansProjects/json_parser$ thufir@doge:~/NetBeansProjects/json_parser$ java -jar build/libs/json_parser-all.jarAug 18, 2017 6:44:24 AM net.bounceme.doge.json.Main main INFO: starting Aug 18, 2017 6:44:24 AM net

Class is present in JAR, but still “Could not find or load main class”

穿精又带淫゛_ 提交于 2020-01-05 01:54:10
问题 I downloaded and installed UMD's FindBugs 3.0 in /usr/local/share/findbugs-3.0 : $ ls /usr/local/share/findbugs-3.0/ FindBugs.jar I have a little script to run it: $ cat ./findbugs FINDBUGS_HOME=/usr/local/share/findbugs-3.0 java -jar $FINDBUGS_HOME/FindBugs.jar $* Running the script results in: $ ./findbugs Error: Could not find or load main class edu.umd.cs.findbugs.bluej.FindBugsExtension Dumping the JAR : $ jar tf /usr/local/share/findbugs-3.0/FindBugs.jar | grep "edu/umd/cs/findbugs

Remove item from “Android Private Libraries” grayed out. Cannot remove jar

≯℡__Kan透↙ 提交于 2020-01-04 13:44:01
问题 I have an Eclipse project and I am trying to update a library into a newer Jar file. However the Eclipse Project will not let me remove the old library? I closed eclipse and attempted to just manually delete it from the folder and reboot eclipse but it still won't let me compile now because the old "jar file is missing" Any ideas? image update: 回答1: I had the same question and the following solution works for me. In the Order and Export tab, cancel the checkbox of Android Private Libraries