I cannot generate the documentation of my project. Getting the error message under NetBeans "'"php.exe"' is not recognized as an internal or external command, operable program or batch file.".
The ApiGen 2.8.0 standalone has been unzipped in a separate folder and its reference is given under Tools->Options->apigen.
Any advice from anyone? Thks in advance.
The problem is that your Netbeans installation does not know where your PHP executable is by default. You'll need to add the PHP path to your windows environment by following these steps;
Unzip APIGen in a suitable location by personal preference
Go to your PHP executable directory (For XAMPP on C it would look like C:\xampp\php
Copy the location address in your window path at the top
Open start menu and right click "Computer"
Choose "Advanced system settings" to your left and click "Environment vars" in the new window.
In the second list view, mark "Path" entry and click "Edit"
Position cursor at the very end in the value field.
Type semi-colon and paste your copied path on step #3, make sure your path ends with backslash.
Click ok and then make sure to restart Netbeans.
Go to Options -> PHP and then click "Search", Netbeans should now be able to find your PHP executable.
To set up APIGen in netbeans;
Go to Options -> PHP -> APIGen
Browse to your extracted APIGen location and select the apigen.bat file.
You may also add " --debug" after apigen.bat in order to get detailed error reports if something fails.
Your system should now be ready to generate documentaiton. The first time you generate the documentation you'll be asked to select the output folder and what the documentation should cover.
Related
I reported a bug to http://issues.apache.org I have to give them a IDE log, but I have no clue where to find it?
I searched in C:\Users\MyUser but there is no folder for netbeans.
I am on windows.
The logfile is stored in the "User Directory".
The location of the user directory is shown under "Help -> About".
Inside that directory the logfile itself can be found in the sub-directory var\log and is named messages.log
You can display the log file directly inside the IDE using "View -> IDE Log". The first view lines of the logfile also include the information about the user directory.
That is helpful if you just want to copy & paste a part of the logfile (e.g. the exception of the error you are reporting).
The NetBeans IDE keeps its log messages in a file called /var/log/messages.log in the NetBeans userdir.
Windows 7 : C:\Users\joe\AppData\Roaming\NetBeans\7.2\var\log\messages.log
Windows XP : c:\Documents and Settings\joe\Application Data\NetBeans\7.3\var\log\messages.log
Application Data directory is localised to your Windows XP installation language
Source : http://wiki.netbeans.org/FaqLogMessagesFile
For macOS it is located here:
/Users/{username}/Library/Application\ Support/NetBeans/{version}/var/log/messages.log
I am working on eclipse helios and windows 7.
I dont know
1.What needs to be added as a seperator, like ";" , "%" and where?
2. Which directory path of Sonar is to be assigned to the path?
In short I need whole procedure for setting the SONAR_RUNNER_HOME in windows.
Steps to set environment variables for SONAR_RUNNER_HOME
Open your environment variables window.
Click new button in System variables section.
Set a variable name SONAR_RUNNER_HOME and its value should be the unzipped path of sonar-runner zip file.
Example:-
variable name:- SONAR_RUNNER_HOME
variable value:- C:\Program Files (x86)\sonar-runner
And then append sonar-runner's bin path %SONAR_RUNNER_HOME%\bin to the environment variables path.
Example:-
variable name:- PATH
variable value:- %SONAR_RUNNER_HOME%\bin;
You need to open your environment variables first.
You do this by pressing "Winkey" + "Pause" at the same time -> click on "advanced system settings" on the left -> select "environment variables"
1.What needs to be added as a seperator, like ";" , "%" and where?
Under Windows ";" (semicolon) is used as seperator. You need to add it at the end of your variable, so you tell windows that another variable begins here. E.g. "C:/programs/myProgram; C:/programs/anotherProgram" (have a look at your "PATH" environment variable and you will understand what I mean.)
2. Which directory path of Sonar is to be assigned to the path?
In short I need whole procedure for setting the SONAR_RUNNER_HOME in windows.
The following guide is the same as the offical one on this page Installing and Configuring SonarQube Runner:
Uncompress the downloaded file into the directory of your choice (e.g.: C:\Program Files\SonarRunner). I'll refer to it as in the next steps.
Update the global settings (database connection, server URL) by editing /conf/sonar-runner.properties. (have a look at the link given above)
Create a new SONAR_RUNNER_HOME environment variable set to
Add the /bin directory to your PATH / Path. (You can either add e.g."C:\Program Files\SonarRunner\bin;" or "%SONAR_RUNNER_HOME%\bin;"). Make sure you add an ";" (semicolon) behind your existing variables as an seperator.
You can check the basic installation by opening a new shell and executing the command "sonar-runner -h" (on Windows platform the command is "sonar-runner.bat -h") . For a example please have a look at the link above.
You could also have a look at: Analyzing with SonarQube Runner
I am trying to configure Netbeans IDE 7.4 for node-webkit development.
It is excellent IDE but I want to run my projects with F6 button. To do this I added NW.EXE as additional browser (executable is located outside project folder).
After this I have a problem with execution arguments. NW.EXE expects a folder path to be specified as an argument, but I cannot leave empty field of Start File in project settings and the Project URL has to start with either http:// or file:// while Node-webkit needs a path like C:/path_to_app
Does any method exist to deal with this feature?
In short, you can work this around by creating a batch program and let it strip the file name down to the path name part, to be fed to nw.exe, as it requires.
Unfortunately, as you said, we don't have full control over the way the main file of the project is passed to the browser, hence some further actions (in addition to the creation of the batch file) are needed.
This is how I got it working after a bit of struggle:
added nw.exe to the system %PATH% variable (optional, just for ease of access)
created nw.bat in the same folder as nw.exe, and filled it with this content:
#echo %1
start nw.exe %~d1%~p1
The first line of this batch file is just to inspect the actual parameter that is getting passed to the batch file.
The second line uses start to invoke nw.exe without having to wait for its return (you may need to specify the full path to nw.exe, if you didn't add it to the system %PATH% variable).
The second line also passes to nw.exe the drive part of the parameter (extracted from %1 by %~d1) concatenating it to the path of the parameter (extracted from %1 by %~p1).
For instance, my last run from within NetBeans gave this output:
D:\node\test\index.html
D:\node\test>start nw.exe D:\node\test\
Then I needed something to tie the NetBeans run button to an arbitrary executable, and luckily I found a perfect fit.
So here is how I went on:
installed the Node.js Projects plugin from Timboudreau Update Center
went to Options > Miscellaneous > Node.js and set the Node.js Binary field to point to my nw.bat file
In my project, I've also taken care to put package.json in the same folder of index.html (being that that's the main file of my package, and that's what will be fed to the batch file).
Now pressing F6 on my NetBeans installation happily runs my node-webkit project without any further ado :-)
I have installed Erlide in Eclipse, and trying to create an application. The Erlang project is named demo. It contains three folders - ebin, include and src. The demo.erl file is in src, for simply printing Hello World.
To run it in Eclipse shell, I choose Run from the top menu, and click Run as Erlang Application. Then a console opens in the sidebar. There I type c(demo) and press CTRL-Enter. Then I get an error message like demo.erl:none: no such file or directory.
Then I do pwd(), and it shows C:/Users/myName/Desktop/eclipse-jee-juno-SR1-win32-x86_64/eclipse even though the Erlang project is in workspace C:/Users/myName/Desktop/workspace/Erlang. Is there any way make Erlide run all Erlang applications from their directory directly?
If you have set Project -> Build Automatically in Eclipse to true, you don't need to type c(demo). explicitly to compile the demo module, it's done automatically when you save your file. But if you have not set it, you'll get exception error: undefined function if you try to use some of the functions in the module for example.
To make the c(demo) command work properly and find your .erl files, there are several ways to set the current working directory:
Use Run -> Run Configuration -> Erlang Application -> Runtimes -> Working directory -> enter the full path to the /src folder of your project (without quotes).
Then hit Apply and restart Eclipse (File -> Restart). If you try to Run the project without first restarting the IDE, your changes will not take effect i.e. the pwd(). command will still be returning the old working directory path.
You can set the working directory in the erlide console with the command c:cd(the/full/path/to/your/src/folder)., before the call to c(demo). The path should be put in quotes.
You can also set the working directory in the .erlang file by typing there the same command c:cd(the/full/path/to/your/src/folder). (the path again should be put in quotes). The file must be placed in you user directory, for Windows this would be C:/Documents and Settings/YourUsername. It's the same directory were also .erlang.cookie and erlide-debug.txt are placed. Windows Explorer will not allow you to create a file named .erlang, so you have to use the command copy NUL .erlang in Command Prompt (cmd.exe) for this. Then you can edit it with any txt redactor. Don't forget to restart Eclipse again after it.
Also note the following:
You can use only / and not \ in the path (even in Windows).
If you have entered a wrong path (with \ or to a non existing directory), it will be ignored and the working directory will not be changed at all.
After changing the working directory to your/src folder, your beam files will start to appear there too instead of the /ebin folder.
If you set a different path in both .erlang file and Run -> Run Configuration -> Erlang Application -> Runtimes -> Working directory, pwd(). will return the path in .erlang file.
You don't need to run c(demo). The beam code is loaded and reloaded automatically, whenever the source is changed and saved.
If you still need to set a working directory, go to run->run configuration and you can edit the configuration.
/Vlad
I have an application written using VS2005 in C# targeting the Compact Framework 2.0 SP2. As part of the solution, I have CAB deploy project which deploys to the device without a problem. What I can't do is create a shortcut to my application on the devices desktop.
I have spent several hours reading various bits of documentation (why is the search at the MSDN site so bad?), followed the instructions but no joy.
What I've done is:
Add the "Windows Folder" node to the File System
Created a folder underneath that named "Desktop"
Created a shortcut to the Applications Primary Output and placed that in the "Desktop" folder
What am I missing?
A bit late but maybe this will help somebody like me who searched for this issue, I solved the problem like this:
I added a custom folder on the root node (File System on Local Machine) and called it %CE3%.
That is the shortcut for \Windows\Desktop.
I added my shortcut (right click create new shortcut) and gave it a name.
That's it, then I build!
When analysing the Shortcuts section in the inf generated, it looked good.
[Shortcuts]
"ShortCutName",0,"MyApp.exe","%CE3%"
And when I deployed and it worked perfectly!
I'm using VS2008 and deploy on windows CE 5.0
Here is a list of shortcuts: windows CE shortcuts
A Windows CE shortcut (CE of any version or flavor, including WinMo) uses a ASCII-text based file. They are in the form:
{XX}#{PATH}
Where:
XX = the number of the characters in the path, to include the number a # sign
PATH = fully qualified path to the file to run
For example:
20#\Windows\calc.exe
The other option is to use the CEShortcuts section of the INF file used to generate your CAB.
In the [DefaultInstall] section of the INF, set the CEShortcuts to a section name of your choice (something like "Shortcuts"), then add that section with your shortcut descriptor. MSDN details it here.
MSDN also has an article on creating a deployment project to generate the cab (available here), but in all honesty, the project capabilities are limited and IMO the tool just generally sucks. To this day we still use direct calls to CABWIZ (which also sucks, but it's our only choice) with hand-written INF files.
I had this same problem and found a simple solution, if anyone still needs this.
Instead of adding a windows special folder, just add a custom folder named Windows, then a folder within it named Desktop, and put the shortcut there.
This worked for me.
The Simplest way is to go into the Application folder in Cab Project(setup), right click on your EXE Program(Application exe that you want to make shortcut for) and chose "Create Shortcut to" and move that file to any folder you want such as "Start Menu Folder"
Mitch: create the LNK file as before, but give it a name like "shortcut.lnkx" (note the "x" on the end). You can then add it to the "Desktop" folder in your CAB project. Once the file is added, change the TargetName property to "shortcut.lnk" and compile. I think this will work.
Assuming that you use Windows Mobile (5.0 or 6.x) you could use that syntax to create a file as a shourtcut(*,lnk):
SHORTCUT = XX#"\Program Path..."?\Icon File Path...,-Icon Number
Where:
XX = Count of characters to be included in arguments after the Program Path to process.
Program Path = Target exe file location.
Icon File Path = If exe file does not contain an icon image or you want to use another, this is the location of the file containing the icon image.
Icon number = Index of icon image within the file, it starts with 0.
Ex: 86#"\Storage Card\Logical Sky CEdit\cedit.exe"?\Storage Card\Logical Sky CEdit\cedit.exe,-101
I had test it, and works fine.
1.Copy the file.
2.Go to desktop (or wherever you want to create the shortcut).
3.Right click on an empty space, click Paste Shortcut.
That's it.
Actually, this is pretty simple ! (Using VS 2008 and Smart Device CAB project)
1- In the solution explorer on VS, Go to your CAB project and right-click on it.
2- Go to View -> File System
3- Here, on the left column, right-click and "Add Special Folder"
4- Select Start Menu Folder for the shortcut folder
5- Go to the Application Folder just above
6- On the right column, right click on the Primary output and select "Create shortcut to bla bla bla"
7- Then you just have to move it to the start menu folder on the left and rename the File :)
OPTIONAL: You can even add fonts to the device using "Fonts folder" in the "Add Special Folder" menu !
Cheers
I assume that you're working with a "Smart Device CAB Project"? I don't think this project creates shortcuts in the correct manner for Windows CE 4.2. I think you can download an SDK from Microsoft that after installation will show you something like "Windows CE CAB Project" as a project option.
I think you can do this manually, though. A Windows CE shortcut is a file with a *.lnk extension, so if you want a shortcut labeled "My Application", create a text file on your PC named "My Application.lnk". The file's contents should be:
46#\Program Files\My
Application\MyApplication.exe (the # should be the full path length)
or whatever full path your application has on the Windows CE device.
In your CAB project, continue with adding the "Windows" folder and then the "Desktop" folder as you were. In the Desktop folder, right-click and add the LNK file that you created. You may have to soft-reset the device in order to have the shortcut show up after installation.