How do I change the host of the "Run Project" button in Netbeans? - netbeans

I am using Apache NetBeans IDE 15 with Java 17.
When clicking the "Run Project" (F6) button the browser successfully opens to :
https://localhost:8443/myProject
however I would like to have it go to :
https://localhost.xyz.edu:8443/myProject
How can this be done?
I was hoping this could have been changed via the Web Browsers Manager tool inside of Netbeans. However I am not sure what arguments are available besides URL.
screen shot of the Web Browsers Manager tool

Related

GWT SuperDev - Can't find GWT Modules

I have followed the steps given on this page - getting-started-with-the-superdevmode
but I am still getting message - Can't find any GWT Modules on this page. I did some more googling but could not find any solution until now.
I am using GWT 2.6.1 and eclipse kepler 64 bit on ubuntu.
Here are the steps I did.
Created a new Web app project for GAE, using GWT 2.6.1 and GAE sdk 1.9.6.
Go to Run configurations. Create a new configuration for a "Java Application". Change the main class, Argument and add jar file as shown in the screenshot.
Check the apps .gwt.xml file. It already has <add-linker name="xsiframe"/>. I have tried adding devModeRedirectEnabled property also. It did not help.
GWT compile the project.
Run the application as Web application. Default jetty config serves the application at
http://localhost:8888/SuperDev.html.
I opened up this page in firefox. I can see the page content.
Launch the Java application configuration. It does compile again and gives a success message and tells me to launch
http://localhost:9876/
I opened it in firefox and it shows -
Dragged Dev Mode On to firefox's bookmark. And clicked.
I get the message - Can't find any GWT Modules on this page.
Following are the configurations for my superdev mode java app. Did I miss anything?
You need to click the bookmarklet when viewing your compiled web app.
The last steps should therefore be:
Dragged Dev Mode On to firefox's bookmark.
Switched back to my application at http://localhost:8888/SuperDev.html and clicked the bookmark
Once you have the bookmarklets, you actually don't really need to open http://localhost:9876 anymore (you'll find compile logs there, and can browser your code, including the code generated by GWT generators; so it can still be useful).
I tried to do it with Eclipse Oxygen, Java7 (for run application, for oxygen you have to have java 8), and GWT Eclipse Plugin 3.0.0.
In such an environment all you need to do is:
On project right click > Debug As > GWT Legacy Development Mode with Jetty.
PS:
you have to have address like this
http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997
NOT like :http://127.0.0.1:8888/StockWatcher.html
After openning addres you must additionally install the plugin in the browser - you will be asked for it
It work on IE11

Eclipse / Aptana 3 : Launching wrong browser

I just installed the Aptana Studio 3 plugin on my installation of Eclipse Juno, and attempted to use a portable install of Firefox to debug with, so that my general browsing install wouldn't get mucked up with a billion debugging features I don't need.
I set Eclipse's Window->Preferences->General->Web Browser to use this new portable install, but... it's still trying to launch my other install of Firefox. ("Please close down to complete installation" or whatever. I know the portable one isn't running.)
I just cannot get it to launch to the right browser. Firefox Portable is set up to allow multiple instances to be open, so I can get both my permanent install and my portable install to work at the same time, but Eclipse is trying to open the wrong installation.
I've tried restarting eclipse, closing Firefox , both internal/external web browser options on the web browser page, and even rebooting the whole computer. There are no other references to Firefox in the Eclipse settings that I can find.
... Help?
Apparently that particular setting only affects browsing in the integrated browser, not running and debugging web applications.
The setting that needs to be modified for running/debugging is in the run/debug configurations. Why that doesn't by default automatically use the default browser set in the preferences page is beyond me.
In order to get Eclipse/Aptana to open the correct browser when debugging and running web applications, do this:
In the Project Manager, r-click on the project and go to Run As -> Run Configurations... and under 'Web Browser' in the left pane, either edit the default one or add a new run configuration. I just replaced the standard 'Firefox - Internal Server' entry.
In the Web Browser field, either type in the full path to the browser executable (in my case FirefoxPortable.exe), or click 'Browse' and browse to the executable.
That should do it. and now it's doing what I would expect it to.

Eclipse open a new web browser tab on every build

I'm using Eclipse Juno (Java EE) + Tomcat and everything works fine but one thing is annoying. Every time when I press the run button, Eclipse opens a new web browser tab (I use chrome as external web browser). Is it possible to tell Eclipse that it should refresh the tab instead of open a new one?
Thanks and best regards
konze

Launch Web Browser After Tomcat Startups in Eclipse

In my old Eclipse setup, I used to have a web browser launch whenever Eclipse builds my project and Tomcat finishes starting up. Now, on my new computer, I've lost that setting.
I was able to change which browser would be the default browser for Eclipse (Windows > Preference > General > Web Browser ). However, now after it says "INFO: Server startup in xxxxxxx ms", I have to manually open my browser and go to "http://localhost:8080/webapp_name".
Does anyone know how to make Eclipse automatically launch the browser after Tomcat finishes starting up? It's very useful particular for builds that takes minutes.
Do the reverse of this one:
how to stop Eclipse browser from displaying web page upon restarting tomcat?
I just turned off my auto browser open by having internet explorer in that setting, try with default for ti to open auto again.

playn-showcase-html is not a GWT project

As per the getting started wiki page, I had Indigo with the Android plugin installed; I installed the Maven Integration for WTP and Google plugins (in that order). I can run the Java version of the showcase fine; when I try to Google > GWT Compile the showcase-html, Eclipse tells me that this is "not a GWT project."
What am I doing wrong? Or is this broken?
Source can be found here for the next seven days: http://www.sendspace.com/file/zc2af3
With all of those plugins installed Eclipse should auto-detect the GWT "nature" of the yourgame-html subproject. It works fine for me and at least a few other people.
In any case, you can simply right click on that project, select "Google -> Web Toolkit Settings..." and click "Use Google Web Toolkit" on the dialog that pops up.
Right click on the project "Run As -> Run Configurations". We should at-least create one configuration for web application. Click on New Configuration and eclipse will automatically fill the information(ie.playn-showcase-html & the class information ). Go ahead and click on Run and you should be able to get you server to run. Hope this helps.