nsalotto.blogg.se

Apache ant run java
Apache ant run java




If that works, then you misconfigured the IDE to run ANT. Did it still include jxl.Workbook? Or BiffException?īut I still think there is something else going on.ĭoes the version that only has a println, no with jxl nor swing run from the command line after building it: java -jar target/antSample.jarĪre you running ant from the command line of from within an IDE? If from within an IDE, try running from the command line. It would have helped if you had provided that code. You would need to either include the JXL classes in your JAR, or change the task to run a class instead of a jar.īut it even did not work with "()" This means that in your case adding the JXL JAR to the classpath does no good - it will not find those classes. When you pass a JAR to java to run, java ignores the classpath. What is $).ĭ:\workspaces\Java_app\antSample\dist>jar -tf antSample.jar Peter Johnson wrote:Is the file hierarchy you posted correct, or is there a typo? Specifically, is the Main class source at antSample/app/main/Main.java or at antSample/app.main/Main.java? Please post the contents of the JAR file by running "jar -tf path/to/antSample.jar" Window > References > Ant > Runtime > Point to Ant Home to /eclipse_home/plugins/ I have try to modify Ant Runtime as some intructions found on internet at $AppClassLoader.loadClass(Unknown Source) It ran OK until target "run" when this error is thrown out:īuildfile: D:\workspaces\Java_app\antSample\ant.xml I have a simple sample to get started with Ant such as show a Hello frame.






Apache ant run java