From: aNgIe B. <ang...@gm...> - 2011-03-01 22:40:35
|
I have the following exception when I execute a .jar as a Java application: *Command:* D:\Documents and Settings\AngieBe\Desktop\xmlvm2> java -jar "D:\Documents and Settings\AngieBe\Desktop\xmlvm2\dist\demo\iphone\ihelloworld\portrait\java\ihelloworld.jar" *Exception:* Exception in thread "main" java.lang.NoSuchMethodError: org.xmlvm.iphone.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;)V at org.xmlvm.demo.ihelloworld.portrait.HelloWorld.main(HelloWorld.java:52) I have tried with others .jar like iFireWorks and always the same error. But I can execute *java -jar xmlvm.jar* without errors. Can anyone help me please? -- *Angie Benegas Roshka: La vanguardia es así. Tel: +595 21 204252 Int. 722* |
From: Panayotis K. <pan...@pa...> - 2011-03-02 15:35:21
|
On 02 Μαρ 2011, at 12:40 π.μ., aNgIe Benegas wrote: > I have the following exception when I execute a .jar as a Java application: > > Command: > D:\Documents and Settings\AngieBe\Desktop\xmlvm2> java -jar "D:\Documents and Settings\AngieBe\Desktop\xmlvm2\dist\demo\iphone\ihelloworld\portrait\java\ihelloworld.jar" > > Exception: > Exception in thread "main" java.lang.NoSuchMethodError: org.xmlvm.iphone.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;)V > at org.xmlvm.demo.ihelloworld.portrait.HelloWorld.main(HelloWorld.java:52) > > I have tried with others .jar like iFireWorks and always the same error. But I can execute java -jar xmlvm.jar without errors. > > Can anyone help me please? Can you provide us with the message, just when JAR is built? I have an idea but I need to be sure first. |
From: Markus N. <mar...@gm...> - 2011-03-02 17:45:57
|
Hi, The easiest way to run the iphone demos is to use the same ant-script you use to build them. Building ihelloworld (e.g. the portrait version): cd [xmlvm_root]/demo/iphone/ihelloworld/portrait ant Running ihelloworld: cd [xmlvm_root]/demo/iphone/ihelloworld/portrait ant run The ant script does a lot of steps in that target to launch the application in the Java iphone emulator. You can take a look at the script and reproduce those steps if you don't want to launch through ant. Regards, Markus On Tue, Mar 1, 2011 at 2:40 PM, aNgIe Benegas <ang...@gm...>wrote: > I have the following exception when I execute a .jar as a Java application: > > *Command:* > D:\Documents and Settings\AngieBe\Desktop\xmlvm2> java -jar "D:\Documents > and > Settings\AngieBe\Desktop\xmlvm2\dist\demo\iphone\ihelloworld\portrait\java\ihelloworld.jar" > > *Exception:* > Exception in thread "main" java.lang.NoSuchMethodError: > org.xmlvm.iphone.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;)V > at org.xmlvm.demo.ihelloworld.portrait.HelloWorld.main(HelloWorld.java:52) > > I have tried with others .jar like iFireWorks and always the same error. > But I can execute *java -jar xmlvm.jar* without errors. > > Can anyone help me please? > -- > *Angie Benegas > Roshka: La vanguardia es así. > Tel: +595 21 204252 Int. 722* > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > > |
From: aNgIe B. <ang...@gm...> - 2011-03-02 21:23:19
|
ok! Thank you! It worked!! 2011/3/2 Markus Neubrand <mar...@gm...> > Hi, > > The easiest way to run the iphone demos is to use the same ant-script you > use to build them. > > Building ihelloworld (e.g. the portrait version): > cd [xmlvm_root]/demo/iphone/ihelloworld/portrait > ant > > Running ihelloworld: > cd [xmlvm_root]/demo/iphone/ihelloworld/portrait > ant run > > The ant script does a lot of steps in that target to launch the application > in the Java iphone emulator. You can take a look at the script and reproduce > those steps if you don't want to launch through ant. > > Regards, > Markus > > On Tue, Mar 1, 2011 at 2:40 PM, aNgIe Benegas <ang...@gm...>wrote: > >> I have the following exception when I execute a .jar as a Java >> application: >> >> *Command:* >> D:\Documents and Settings\AngieBe\Desktop\xmlvm2> java -jar "D:\Documents >> and >> Settings\AngieBe\Desktop\xmlvm2\dist\demo\iphone\ihelloworld\portrait\java\ihelloworld.jar" >> >> *Exception:* >> Exception in thread "main" java.lang.NoSuchMethodError: >> org.xmlvm.iphone.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;)V >> at org.xmlvm.demo.ihelloworld.portrait.HelloWorld.main(HelloWorld.java:52) >> >> I have tried with others .jar like iFireWorks and always the same error. >> But I can execute *java -jar xmlvm.jar* without errors. >> >> Can anyone help me please? >> -- >> *Angie Benegas >> Roshka: La vanguardia es así. >> Tel: +595 21 204252 Int. 722* >> >> >> ------------------------------------------------------------------------------ >> Free Software Download: Index, Search & Analyze Logs and other IT data in >> Real-Time with Splunk. Collect, index and harness all the fast moving IT >> data >> generated by your applications, servers and devices whether physical, >> virtual >> or in the cloud. Deliver compliance at lower cost and gain new business >> insights. http://p.sf.net/sfu/splunk-dev2dev >> _______________________________________________ >> xmlvm-users mailing list >> xml...@li... >> https://lists.sourceforge.net/lists/listinfo/xmlvm-users >> >> > -- *Angie Benegas Roshka: La vanguardia es así. Tel: +595 21 204252 Int. 722* |
From: Arno P. <ar...@pu...> - 2011-03-02 20:56:43
|
I think you need to add xmlvm.jar to CLASSPATH when you try to run ihelloworld.jar. Arno On 3/1/11 2:40 PM, aNgIe Benegas wrote: > I have the following exception when I execute a .jar as a Java application: > > *Command:* > D:\Documents and Settings\AngieBe\Desktop\xmlvm2> java -jar > "D:\Documents and > Settings\AngieBe\Desktop\xmlvm2\dist\demo\iphone\ihelloworld\portrait\java\ihelloworld.jar" > > *Exception:* > Exception in thread "main" java.lang.NoSuchMethodError: > org.xmlvm.iphone.UIApplication.main([Ljava/lang/String;Ljava/lang/Class;)V > at org.xmlvm.demo.ihelloworld.portrait.HelloWorld.main(HelloWorld.java:52) > > I have tried with others .jar like iFireWorks and always the same error. > But I can execute *java -jar xmlvm.jar* without errors. > > Can anyone help me please? > -- > *Angie Benegas > Roshka: La vanguardia es así. > Tel: +595 21 204252 Int. 722* > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search& Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |