How do I disable "Run Monitor" in NetBeans? - netbeans

I'm using NetBeans IDE v7.0.1.
When I try to run a program (F6 Shortcut), There is a pop-up window in the left side named "Run Monitor". How do I disable it?
Thank you all.

go into your project properties (right-click on the project --> properties or go to the "File" menu and select your project properties), select "profile" and uncheck the box "Show profiling indicators during run"

In more recent versions of NetBeans, we can disable HTTP monitor
in the Server Properties dialog. In the Services tab, we expand
the Server node. We right click on Apache Tomcat and select Properties.
In the Connection tab we uncheck the Enable HTTP monitor option.
We also may need to restart Tomcat.

Related

How to setup tomcat with intelliJ?

I used to use eclipse for my java project till now. In that I used to give a server.xml corresponding to a tomcat server. But in IntelliJ I can't find where should I give that server.xml. Can anyone help me out?
You can find this file in Directories Used by IntelliJ IDEA to Store Settings, Caches, Plugins and Logs.
For my computer, I am using window 10, I found that in following path:
C:\Users\<USER ACCOUNT NAME>\.IntelliJIdea15\system\tomcat\<project name>\conf\server.xml
In intellij, you should click on Run > Edit configurations... > Add new configuration (clicking on "+" icon) > Tomcat (select local or remote) and complete the configuration using your settings.
I hope this can help you.
Thanks
Goto File, then New Project.
Create from Scratch.
Click Next, give the Project a Name, and keep Clicking Next until the Desired Technologies window comes.
Click Web-Application, then Finish.
Click File, then Settings.
Click on Application Servers and Hit the + to add a new Tomcat Server.
Set the Home Directory of the application server you have just installed(ex: c:/Program Files/Apache Software Foundation// and then Click ok.
Click on the run button, and then then Edit Defaults.
Click on the + in the top left hand corner and add a Tomcat Server, then Local configuration.
Select the Tomcat in the pulldown menu next to Application Server.
I hope this will help you.

How to see what triggered "Build workspace" in Eclipse

My eclipse is constantly running "Build Workspace" tasks. It is not a long running builds, more like 1 build a second.
Sometimes I'd see 10 "Build workspace" tasks sleeping and waiting in the Progress tab.
I'd like to know what is triggering those builds. I have many plugins installed.
What is the way to troubleshoot this?
Here are some steps to help you debug what is going on.
Download the Eclipse Classic SDK for whatever version of Eclipse you are currently using. For Juno that link is here.
Open the eclipse.ini for your current normal eclipse and add the following options: -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
Start your Eclipse instance that you want to debug, it should pause at the splash screen
Unzip the Eclipse classic SDK and start that Eclipse instance
Open the Plugins view
Find org.eclipse.core.resources
Right click and select "Add to Java Search"
Open Type dialog, type in "BuildManager"
You should see a class from that plugin be given as an option, then open it
Find the line that looks like: prereqs = currentBuilder.build(trigger, args, monitor); It should be about line 728 (For Eclipse Juno)
Set a breakpoint here
Create a new Remote Java Application debug configuration and point to localhost port 8000
Launch this debug configuration
You should see your other Eclipse instance startup
Now every time the Eclipse build manager fires off a build (which should happen on all of those Build Workspace jobs), then you will see this breakpoint be hit and you can find out what builder is firing.
Update 1
If you need source to other Eclipse bundles they can also be added in the "Plug-ins" view. Select all the plugins there and right-click and use Add to Java Search
What plugins do you have installed that are currently active?
Press CTRL+3 type "plugin" and then choose plugin registry.
In the plugin view right click and choose "Active Only"
Check the non-essential core plugins (for example related to servers which automatically build & publish)
Post a screenshot of active plugins if you need any more help
You may have build automatically checked which will build when you save. Check under the nav Project > Build Automatically
Other way to close all unused projects.
Further, for good view, use filtering: View Menu -> filters -> Check 'Closed Project'.
Sometimes if you have > 20 opened projects you can observe constant 'build workspace' tendency.

Eclipse, ColdFusion Builder, Debug in built-in browser

I've been using Eclipse Classic with the ColdFusion Builder 2 Plug-ins and I was wondering if there was a way to launch the debugger in a browser within Eclipse. I've seen a browser in Eclipse before, but I'm not sure where it's hiding... and if it's possible to launch the debugger within it instead of the external browser.
Thanks a lot!
With Eclipse classic the only way to open the Internal Web Browser are the following.
Open the Internal web browser view:
Window > Show View > General > Internal Web Browser
Or you can do this:
Create .html file
Right-click the file and choose open-with > Web Browser
The easiest thing to do would be to install the Webtools feature from the webtools update-site and then add the "Web Browser" action set to the perspective.
Right click toolbar and choose "customize perspective"
Go to command group availability
Enable "Web Browser"
This will add a "open web browser" action on the toolbar.

upload only current file with netbeans

I'm using netbeans 6.9.1 to work on a php project, how do I manually upload a file without having to 'run' the project?
Under the options->keymap, I mapped Ctrl-L to upload, which is easy enough.
The only other place to upload is to right-click the file in the project browser and 'upload', unlike aptana there's no button for it, which is what got me stumped.
If you have the project's "Run Configuration" properly configured as a "Remote Web Site (FTP, SFTP)", then simply right-click on the file in the "Projects" pane and click on "Upload" in the file's context menu.
If you want to upload automatically on save instead of on run,
Right-click on the project node in the "Projects" pane (it's the top-most node in the tree)
Click on "Properties" in the project's context menu.
Click on "Run Configuration" in "Categories"
Change "Upload Files" to "On Save"
Click "OK"
If you sometimes want to upload on run, sometimes on save, sometimes only manually, sometimes to one server, sometimes to another server, or any combination of the run configuration options, then you can click on the "New..." button to create and save one or more run configurations. You can then choose which one is active on the run configurations project properties page, or set it through "Set Configuration..." on the project's context menu.

Where is the set default launch configuration option for a project in Eclipse?

I'm running Eclipse 3.5 (Galileo) and I want to have the "Run" command always launch the same configuration, but instead I always get a dialog box that asks me to choose which way to run my project. How can I set a default?
Shouldn't matter, but this is for some Android development, so it's an Android project.
Do the following;
From the drop down menu select Window -> Preferences
Then from the Categories on the right side; Run/Debug -> Launching
Find a group box called "Launch Operation" at the bottom. If you change this to "Always launch the previously launched application" the F11/Ctrl+F11 shortcuts will debug/run whatever you debugged/ran before.
I don't understand why they changed the default behaviour for Eclipse 3.5, it is certainly one of the options I always change.