This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: java.lang.NoSuchMethodError: main while build
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 12, 2008
06:11 AM
java.lang.NoSuchMethodError: main while build
Hi All,
Can anybody explain me wht exactly the use of the Main class in InstallAnywhere?
I have a java project for which I need to create the installer. I had written my script to create the installer in PHP and when I try to run the same through cmdline I get the below error.
"java.lang.NoSuchMethodError: main"
Exception in thread "main"
My php code is able to create the xx.iap_xml project and when I open the same in IDE and build it, it builds without errors and also able to install the same.
can anybody tell me what am I doin wrong when I call the below command in php?
"c:/buildapps/jsdk/1.5.0_04/bin/java -verbose com.zerog.ia.integration.ant.InstallAnywhereAntTask -build "Default" 2>&1"
Appriciate for the help
Thanks & Regards
jaknav
Can anybody explain me wht exactly the use of the Main class in InstallAnywhere?
I have a java project for which I need to create the installer. I had written my script to create the installer in PHP and when I try to run the same through cmdline I get the below error.
"java.lang.NoSuchMethodError: main"
Exception in thread "main"
My php code is able to create the xx.iap_xml project and when I open the same in IDE and build it, it builds without errors and also able to install the same.
can anybody tell me what am I doin wrong when I call the below command in php?
"c:/buildapps/jsdk/1.5.0_04/bin/java -verbose com.zerog.ia.integration.ant.InstallAnywhereAntTask -build "Default" 2>&1"
Appriciate for the help
Thanks & Regards
jaknav
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 12, 2008
06:59 AM
Oh my God, do you actually spit out in a programatical way the .iap_xml file?!? And using PHP?!? Then what need do you have for InstallAnywhere anyway? Have you tried opening your made up project with the Advanced Designer? Does it open? If the answer to the previous is Yes, does it also build from within the Advanced Designer?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2008
12:29 AM
Yes I'm able to open the project in Advanced designer and also able to build through it.....but I want to build through commad line which I'm not able to do with the below cmd.
c:/buildapps/jsdk/1.5.0_04/bin/java -verbose com.zerog.ia.integration.ant.InstallAnywhereAntTask E:/build/CRM/C100/WIN2K/core/install/project-code-only/CRM.iap_xml -build "Default" 2>&1
The last few lines of verbose:
[Loaded com.zerog.ia.integration.ant.InstallAnywhereAntTask from file:/C:/buildapps/InstallAnywhere/8.0/resource/build/iaant.jar]
[Loaded org.apache.tools.ant.UnknownElement from file:/C:/buildapps/InstallAnywhere/8.0/resource/ant/ant.jar]
[Loaded org.apache.tools.ant.BuildException from file:/C:/buildapps/InstallAnywhere/8.0/resource/ant/ant.jar]
java.lang.NoSuchMethodError: main
[Loaded java.lang.Shutdown from c:\buildapps\jsdk\1.5.0_04\jre\lib\rt.jar]
[Loaded java.lang.Shutdown$Lock from c:\buildapps\jsdk\1.5.0_04\jre\lib\rt.jar]
Exception in thread "main"
Please do help me...urgent
c:/buildapps/jsdk/1.5.0_04/bin/java -verbose com.zerog.ia.integration.ant.InstallAnywhereAntTask E:/build/CRM/C100/WIN2K/core/install/project-code-only/CRM.iap_xml -build "Default" 2>&1
The last few lines of verbose:
[Loaded com.zerog.ia.integration.ant.InstallAnywhereAntTask from file:/C:/buildapps/InstallAnywhere/8.0/resource/build/iaant.jar]
[Loaded org.apache.tools.ant.UnknownElement from file:/C:/buildapps/InstallAnywhere/8.0/resource/ant/ant.jar]
[Loaded org.apache.tools.ant.BuildException from file:/C:/buildapps/InstallAnywhere/8.0/resource/ant/ant.jar]
java.lang.NoSuchMethodError: main
[Loaded java.lang.Shutdown from c:\buildapps\jsdk\1.5.0_04\jre\lib\rt.jar]
[Loaded java.lang.Shutdown$Lock from c:\buildapps\jsdk\1.5.0_04\jre\lib\rt.jar]
Exception in thread "main"
Please do help me...urgent
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 13, 2008
04:41 AM
I'm afraid you're doing it the wrong way: in order to build the .iap_xml project using the command-line tool, you have to use the build.exe located in your IA installation folder.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2008
01:11 AM
I'm able to build through build.exe, how abt building the VM's?
wht options/args I have to pass to build.exe?
How to build the project through ANT? Any idea?
Appreciate your help
wht options/args I have to pass to build.exe?
How to build the project through ANT? Any idea?
Appreciate your help
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2008
03:21 AM
I strongly suggest consulting the manual, as there is a whole chapter which treats this issue of command-line building: you'll find there all the parameters which build accepts etc.
When it comes to building the project through ant, there is an iaanttask but I personally prefer to directly invoke build.exe using exec with the correct parameters (as people often have complained about issues with the iaanttask).
When it comes to building the project through ant, there is an iaanttask but I personally prefer to directly invoke build.exe using exec with the correct parameters (as people often have complained about issues with the iaanttask).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2008
02:22 AM
Buddy thanks for the help....
Is there a way to build the InstallAnywhere project using Java?
I was using Java to build ISMP projects earlier and now I dont want to install Ant on build server for IA.
How can I build usin Java?
Is there a way to build the InstallAnywhere project using Java?
I was using Java to build ISMP projects earlier and now I dont want to install Ant on build server for IA.
How can I build usin Java?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2008
03:12 AM
I don't think this is possible (I mean personally I've never used anything but building using the Advanced Designer or the build.exe tool). You're the first person that I know of to have tried such thing. You may want to contact directly the Acresso Software support, but I've have a hunch that they'll tell you that either 1) this is not possible or 2) they might let you know about a method, but they'll warn you about it not being supported. Franckly, I don't see the use of building using Java, because it completely removes the use for IA...