installing phonegap on windows7 error - apache

I am a web developer and new to Phonegap..
I was trying to install phone gap on my windows 7 machine as per described here
http://docs.phonegap.com/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface
but when i run the following command
cordova platform add android
i am getting the following error
[Error: An error occured during creation of android sub-project.
ERROR : executing command 'ant', make sure you have ant installed and added to y
our path.
]
does this mean that i should install apache ant on my machine ? if so can someone redirect me to right link.
I am also running wampserver on my machine for my other developments..
will installing 'ant' affect on my wamp ?

As described in PhoneGap Getting Started
Finally, you may need to include %ANT_HOME%\bin to your PATH as well. To check to see if this is required, run a command prompt and type ant. If the program can not be found add %ANT_HOME%\bin to the PATH. You may need to specify the full path instead of using the %ANT_HOME% environment variable.
If you need ant for Windows, you may want to download and install it from here

You need ant to add the android platform.
Ant is a java-based build tool.
You can get further informations and download it at http://ant.apache.org.
ant has nothing to do with the apache webserver and doesn't effect your wamp installation. It's another software product provided by the apache foundation.
lg
fastrde

Related

Apache Tomcat 8.5 . Error: Service terminated with service specific error incorrect function

i have installed apache tomcat 8.5 one month ago with java 1.8 on Windows Server 2008 and it works ok.
now the service is stopped and i'm not able to restart it from apache configuration or Windows Services . It is always stopped.
i got the following error: "service terminated with service specific error incorrect function".
ther error in Windows Event viewer does not saying nothing more:
even its details tab:
What can i do?
I was trying to install Apache Tomcat/8.5.31 as Windows service and i was also facing the same error.
For me what finally worked was following these steps. Go to Tomcat installation directory's bin folder. You will see two EXEs (tomcat8.exe and tomcat8w.exe). tomcat8w.exe is a GUI application for monitoring and configuring Tomcat services. Double-click it and then go to Java tab
1) Enable the check box for Use default
2) In Java Classpath: section, specify the path to bootstrap.jar and tomcat-juli.jar. These should be present in your tomcat installation's bin directory itself:
<path_to_tomcat_installation>\bin\bootstrap.jar;<path_to_tomcat_installation>\bin\tomcat-juli.jar
To get more help, you may check the log at the following location provided you installed your Tomcat as Windows service using default LogPath option as described in the documentation: %SystemRoot%\System32\LogFiles\Apache
UPDATE: In another recent installation, i noticed that despite having configuration settings exactly similar to another working setup, i was still getting Incorrect function error under System log in Event Viewer. This time, i had to uncheck the Use default option and had to explicitly provide path to jvm.dll as shown below:
Java Classpath setting was still required as explained above.
Currently I have a Windows Server 2012 R2 Datacenter running Tomcat 9 & had the same problem. This happened after I ran Windows updates & restarted the Server.
Error messages below. (The blanked out text is my private data.)
Error showed when attempting to start the service.
Error in System Event Log
The following steps fixed the issue...
Navigate to your tomcat9w.exe Location: \Tomcat9\bin\
Right click your tomcat9w.exe and select Run as administrator.
Select the Java tab. Select Use default, Apply, & OK
Start your service.
Note: I unchecked the "Use default" box after I was able to get the service running correctly. Because I wanted to retain my existing configuration. Going forward the service has continued to work correctly.
Hope this helps!
I was also facing some issue with Tomcat 9 and Java 13 (tried all previously mentioned solutions but nothing worked). When I downgraded it to Java 11 and Pointed the jvm.dll from JDK 11 my issue got fixed (or Use Default if JAVA_HOME is set to Java 11).
In my case the only way I could get it to work, was to go to the "Startup" tab and change "Mode" from "JVM" to "Java". After that, it started fine and was able to confirm that by visiting the localhost.
(Definitely not an expert)
I fixed this issue by (re)installing Java. I was using the Java SDK downloaded by IntelliJ. Although I was able to direct Tomcat to that download during installation, it returned this "error service terminated" message at runtime. Instead I installed Java SDK directly from Oracle, Tomcat found the installation immediately during installation (I didn't need to point it), and this error disappeared.
It's possible the Java installation by IntelliJ was incomplete somehow and is the underlying cause of the problem, but I am definitely not an expert.
I fixed the issue by reinstalling Tomcat:
Search the Command Prompt icon
Right-click on it
Select Run as administrator
Change the folder to the bin folder of Tomcat
Execute appserver uninstall
Execute appserver install
It solved my problem.
I followed the below steps to fix the the above issue. it may help if someone still face the same.
Step 1. opened the installation directory : tomcat9w.exe Location: \Tomcat9\bin\
Step 2. Browsed the Jvm.dll path under "Java Tab" in Tomcat where it has installed
Step 3. Run the service but still faced same.
Step 4. then, Opened ""C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin>startup.bat --> entered.
Finally it got fixed .

Mobilefirst-8.0 Platform Using Eclipse Development

I am trying to put sample for MFP-8.0 Apps and i follow that below links & video,
https://mobilefirstplatform.ibmcloud.com/blog/2016/06/17/ibm-mobilefirst-studio-8-0-plugin-for-eclipse-now-available/
This is error message i got from eclipse console.
E:\POC\MFP-8.0\MFP\SampleTest\www>mfpdev app register --noprompt
E:\POC\MFP-8.0\MFP\SampleTest\www>exit
'mfpdev' is not recognized as an internal or external command,
operable program or batch file.
If anything i missed out for above the tutorial what else i have to do? kindly any one advice me.
System environment : Windows 8.1,Eclipse Mars, Java 1.8
Thanks
If it doesn't know what "mfpdev" is, it sounds like then that you do not have the MobileFirst CLI installed.
Make sure you have nodejs installed, then from command line run the following command: npm install -g mfpdev-cli, which will install the CLI.
The Studio plug-in relies on the CLI installed, since behind-the-scenes it calls CLI commands.

Installing Apache Cordova

I'm new to this of Apache Cordova. I'm trying to follow the documentation but cannot understand it very well. It says that for prerequisite I need to install the correspondant SDK. I did install Android Studio. then downloaded the Node.js and then tried to run the installation but it doesn't start I don't understand why it doesn't start. There is another things that I need to do so it starts installing?
Any help will be great. Thanks!
I think the clue is in the message -- just run the command npm install -g cordova from the normal DOS command prompt.
first of all you have to install 1)node.js 2)apache ANT 3) Java JDK & JRE 4) Android SDk & Eclipse and then after all installation you have to set this all software path into environmental- variable. and then fire your npm install -g cordova. without this all software installation and there path setup your phoneGap application will not created. and still you have any confusion and any question related software installation and there path setup then again tell me i will help you.
First and foremost, you want to install Node.js in order to get the 'npm' commands to work.
https://nodejs.org/download/release/latest/
You can download the latest version of Node.js from there... I was on a Mac, so I did the .pkg download. Install the appropriate one for your development machine.
After that, the 'npm' commands for Cordova will work. Hope this at least gets you started! :)

Facing 'Unable to locate the CLI executable' on Windows

I just installed Titanium and I'm not really familiar with this IDE. I added Android SDK to start my first application and everything looks cool until I tried to see my application in Android Emulator. I'm getting Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI. and Check for Titanium Updates Says No Titanium updates available. and restarting the studio multiple times didn't work too. I cannot even preview my application in web browser. What am I doing wrong?
I'm using Titanium Studio, build: 3.1.0.201304151600 on Windows Server 2008 R2 Everything is up to date Node.js, Android SDKs, etc. I'm trying to create a web-based application frt Android 2.2+ and mobile web.
Farid,
There are several things you can try.
1.Type titanium in your command line and hit enter.If it gives 'not recognised as an internal or external command',it means Titanium package is not properly installed.
2.Try uninstalling just the Titanium node.js package using npm titanium uninstall command.
3.Once uninstalled,open Titanium studio.It will prompt you for installing Titanium CLI.Follow the steps and install Titanium CLI.
4.If these steps do not work,then uninstall node and install everything from the studio itself,rather than from the command line.
Sometimes installing Titanium CLI from command line fails.
EDIT:Before you try all this type node in your command prompt and see if node command is being recognised.If it is not you will have to set it to the PATH variable.
Thanks to 'Mukund Samant' with useful workarounds, I managed to fix this problem [although I faced another problem] by removing node.js and installing an older version (0.8.22) and then installing node.acs package manually by runnig this command: npm -g install acs. Now Titanium won't give me any errors or update messages on startup.
Note that I found out I have to run Titanium Studio as Administrator!

Can't launch JBoss7 from Eclipse Indigo

I can't figure out where I am going wrong. I have Eclipse Indigo, JBoss 7.1, JBoss Tools installed. I have this configuration working on my Windows7 64-bit system. I am attempting to set up a co-worker's Windows XP 32-bit machine with the same configuration but am not able to get the server to launch. I have configured the server but when I attempt to start the server, I get an error indicating that it was unable to start the server but there is no specific error listed.
I am able to start JBoss from the command prompt using the standalone.bat file.
I am able to configure the standalone.xml file from within Eclipse. I have confirmed this by checking the file in the standalone/configuration directory.
When I attempt to publish the project from within Eclipse, it does not publish.
Nothing gets written to server.log
The startup parameters match what I have on my computer.
I can't figure out what I am missing. Any suggestions would be appreciated!
Edit:
I have done some more checking. I am able to publish to the server and I am able to start the server (with the published application) fine from the command prompt. That part works. When I attempt to start the server from within Eclipse it gives me "Server JBoss 7.1 Runtime Server failed to start." It never writes anything to the console tab in Eclipse either so I can't tell why it is failing to start.
Also in the Servers tab, there is an entry called "Server Details". When I expand that entry, it says "Not Connected".
The answer to my problem is that Eclipse had be configured to use the java JDK, not the JRE. As soon as I switched over to use the JDK it started working fine. For some reason JBoss will start under 64-bit windows with the JRE but under 32-bit you need to use the JDK. I found the answer here: https://community.jboss.org/thread/169097