findstr is not recognized when trying to start Jboss server - jboss

I've downloaded Jboss jboss-5.0.0.CR2-jdk6.zip file and extracted the zip. Then I've set system variable JBOSS_HOME=F:\jboss-5.0.0.CR2. When I'm trying to run the jboss by double click on run.bat it executes for a while and then windows are automatically closed. If I run the run.bat file from command prompt it shows the error depicted below:
I am not able to find out where is the problem, please help me.

Have a look at this JBoss wiki
The problem is findstr is not in your path, set it and restart command prompt .
You can set path containing findstr to rid out of this.
Here is material how to set path

Related

How to start "Windows Terminal" via command line?

I am using Listary (which is a comfortable explorer integration) and I want to be able to start an instance of "Windows Terminal" in the current directory. My Listary command is configured, so that it starts the application under the path
C:\Users\%user%\AppData\Local\Microsoft\WindowsApps\wt.exe.
Unfortunately I couldn't find out yet a way to pass a target directory to Windows Terminal as a parameter. It refuses to take any paths and always starts at the %userprofile% directory. Is there a way to accomplish this behaviour?
I have found the solution, after reading this article:
https://devblogs.microsoft.com/commandline/windows-terminal-preview-v0-9-release/
In short, you have just to type "-d ." into the "Parameter" field of Listary's custom command. "." refers to the current directory.

Can some please let me know how to install the jboss-as-7.1.0.Final in windows 64 bit

Can some please let me know how to install the jboss Final in windows 64 bit when i am trying to run standalone.bat file it is coming on within few seconds it go off i have already set the env path please some one do the needfuul
As you have already set ENV variables. I am assuming you have set JAVA_HOME and JBOSS_HOME.
Open command prompt
Goto {JBOSS_HOME}\bin folder and run standalone.bat
Then you can see error on screen. Paste error here if getting issue.

PhoneGap command not recognized

I have followed the directions on PhoneGap's website and installed PhoneGap using the command prompt on Windows. However, after it has installed I try to run the command 'phonegap' and I get an error saying that 'phonegap' is not recognized as an internal or external command, operable program or batch file. How do I fix this? Thanks.
You might need to add phonegap to your classpath variable, in order to let the prompt know where the phonegap .exe file is located.
Try writing the full path of the exe file, if that runs, then what I mentioned above should solve your problem.
EDIT
Just looked at the install page at phonegap.com (http://phonegap.com/install/). Very scarce on the information I would say.. But I still recommend investigating the above.
The Problem with enthronement variable for default path of your your current user. Follow the steps.
Click the Start menu and type "regedit" on the search box. This will launch the Windows Registry Editor program.
Enter to the following Registry entry: HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings
Select the "Enabled" entry in the right side window. If this entry is there, right-click and select "New" followed by "DWORD Value." Name the value "Enabled."
Right-click the "Enabled" entry and click "Modify."
Change the number in the "Value" box to "1." This will re-enable WSH.
close all opened cmd windows and open a new window.
Just try to run CMD as administrator. Hopefully that will solve your problem. This solved mine.
Even though this is a very old question, I'm going to post a solution that worked for me on Windows Vista/7/8. The problem is that by default the command prompt in which the npm command is run is not elevated. So launch a command prompt as administrator and then run npm command. If it is not elevated then the environment variables wont be set properly.
In windows 7 platform, when the latest version of phonegap (3.4) installed it hosts in path like this:
C:\Users\\AppData\Roaming\npm
Sometimes you should add this address to the PATH environment manually.
Go to System Properties-> Advanced -> Environment Variables
Select PATH variable from list and then edit it

Batch file in eclipse path variables not found

I want to start a batch-script in my eclipse. (Instructions here: How to run a batch script (.bat file) from eclipse)
In my batch file i need some commands like pear or phing.
I put the path to these commands into my environment variable called PATH.
(Works fine with cmd manually)
After starting the script, I'm getting this error:
'pear' is not recognized as an internal or external command,
operable program or batch file.
If I type pear by hand, it doesn't work either.
You need to restart Eclipse after changing the system environment; environment variable changes requires any process that is already running to be restarted in order for that application to pick up the changes.
Another option might be to put the full path to those commands in the .bat file so that it doesn't rely on the system environment in order to work properly.
Tip: Make sure to close and start eclipse afresh for PATH variable changes to take effect. Using the Restart option in File menu may not help here.

Run, The Command Line and that Path Variable

I'm having a very weird issue with the command line and running Ant. I point the path variable at the location of my Ant bin directory (C:\Ant\bin) and when i go into a command window and type PATH it shows the location in it. But when I go to run Ant by typing "ant" it does nothing and states that it isn't recognized. But when I go to the run window (Windows+R) and type "ant" it runs it.
I have restarted Windows twice and the problem still persists. I am running Windows Vista Ultimate with SP1 installed. I have tried "Running as Administrator" with no difference.
Any one experience anything like this before?
Sometimes you can set a system-wide (or even just personal) Environment Variable and it'll cure it, as opposed to just setting it in your shell.
Go to the Control-panel, then System, then Advanced, and look for the button on Environment Variables. From there, you can follow your nose.
Good luck.
Ant also depends on Java to be on the path. Do you have that?
I would also check to make sure the environment variables ANT_HOME and JAVA_HOME are set up properly in the console.
Is there any chance that the command window you are trying to run Ant in is a different window to the cmd windwo where you set up and verify that its in the path? If the PATH is updated after a cmd window is already open it won't recongnise the change. Not clear if that might be your issue.
If you are in the dir C:\Ant\bin and type "ant" does it recognise it?