Running 2 apps simultaneously on Spring Tool Suite 4 - java

I have two projects in the same workspace that need to run at the same time. I just switched to using Spring Tool Suite 4. I used to do this by having two instances of Eclipse open. I want to run one using Boot (the embedded server) and the other on Tomcat 9. I did try it and both appeared to be running but the console output seems to track only one of the apps. Am I setting up the apps the wrong way? Thanks for any helpful tips.

Follow this -
located near your console tab should be a button "Open Console".
If you click this button one of your options should be "New Console
View".
Eclipse Screenshot
You'll now have 2 console views.
One of your other buttons near your console tab is "Display Selected Console". When you choose this option you can select from any of your running applications.
Just select the tab, select which application you want it to watch, and repeat for the other tab.
You can then move your 2 console views to wherever you want independently of each other.

Related

Eclipse is running as applet not application. How do i go back?

I'm not exactly sure what i changed, but my project is running as an applet and not an application anymore so therefore its trash. How do i go back to application? You'd think there would be something on the internet for this..
when you right click to do "Run as ..." you should also see "Run Configurations" - click on this. On the left side you will see Applets, delete what is below this.

Intellij IDEA multiply windows project explorer

Could somebody tell me if it is possibile to open two instances of the same project in Intellj IDEA or can I for example have two windows with opened different project files with attached project explorer.
I asking for that because I have two monitors and it will be more efficient to navigate on each windows separately.
For now I must drag tab from root window and drop to another window which it is annoying and unhandy.
This is not possible. IntelliJ IDEA has a one project one window paradigm.
Some suggestions, in order of best to worst, that may help:
The navigation bar (Alt+Home or ⌥⇱ {Option Home}) can be used in place of the project tool window. You can use it either in pop-up mode or anchored mode (View > Navigation Bar). When a file is opened via the navigation bar, it opens in the window that has focus. The nav bar is ultimately a horizontal project window. Check the help documents for how to easily navigate through the nav bar. Once you get use to it, you may find you never use the project tool window again.
Have you tried floating the project window and placing it on the edge of one of the monitors so it sites between the two editor windows? While you would still need to drag file to the second editor window, it might prove easier.
You could create a second project with the all the same modules as the first project (just being sure to save the second project's .idea configuration directory in a different location). But this would require keeping two project configurations in sync, and you would need to make sure the "synchronize files on frame activation" setting is on. In the end, I think that is far more hassle then it is worth.
Hope that helps.
(FYI, I may be new to StackOverflow, but I'm a ten year passionate and evangelical IntelliJ IDEA user.)

Android App Development on Eclipse with ADT. Quickest way to stop process (app)?

I'm new to Android development. When I run my app in the Java perspective I click the default Run button on the menu bar. To stop it I need to click on the DDMS perspective, click on the App in the list of names on the Devices tab, and then click on the Stop Process button.
So 3 clicks!
Is there not an easier way to do this, ideally involving one click/action?
I'm using Eclipse 3.8.1 with Android 4.1.
Does this help?
Those who find it tedious switching between perspectives to stop the program (like I did), you can view the devices windows in your current perspective by selecting
Windows > Show View > Other... > Android > Devices
from this post - How to stop a program running under Eclipse?
Is there not an easier way to do this, ideally involving one click/action?
At minimum, you need to indicate the process you wish to terminate, then indicate that you wish to terminate it. You are welcome to have the Devices view in other perspectives (e.g., Java) to save your moving over to the DDMS perspective.
The only "one click/action" solution is the power button on your development machine.
Sure there is.
Install one of those Task Killers (should never be used IRL) in your emulator. Add their widget on your Homescreen and configure it to kill your process when you click it.

Restarting GAE in eclipse

So I am learning Google App Engine with Java. When modifying files i realized I dont always see my changes. I try clicking the red button to stop the web application in eclipse and then restarting the application however I dont see the changes. This even happens if i run chrome in incognito mode. I also have the same problem with IE and Firefox (By default i use firefox when developing due to my preference of firebug).
Also at times I will get annoyed with one project and start a new google app engine project. However the GAE will still be running the first one not the second one even though i close the project. Even worse was when i deleted the root project folder I still saw the index.html page though the links were broken for the project i deleted.
I am thinking there are two issues one is that my browser is storing these files in a cache. And the other is that I am not actually restarting the google app engine. Is the right procedure just to click the red square in the console in eclipse or is there something to run on the command line (in windows)?
To be brief , if i want to stop the GAE from in eclipse and restart it to see any changes i made whats the easiest way to do this on windows?
Thanks
edit:
Rumor has it that adding Google Web Toolkit to the project made my App Engine launch show up in the Development Mode pane, where it could be easily be killed or restarted. Is handling this issue this way a wise idea?
Trying out this touch command idea, i was hoping there was a command line way to restart the server similar to ruby on rails
the answer by dragon in this question would be helpful if it had more detail
The red button will stop it. You shouldn't need to run anything from the command line.
What you should do though is look at "Developement Mode" view and confirm nothing is running. It's under Window-->show view -->Other--> Google. Clicking on the gray arrows will show you what is open (running or not). Also, you can press the grey Xs to clear all stopped instances. This should confirm if something is running.
Also, look under run --> run configurations -->server. You have an option to set the port, or have it automatically set. If you are trying to run more than one project, your second one may not start if the first one has already taken the port. Keep that in mind.
As far as your browser storing Dev Mode page in cache, I don't think it can. In fact, if you close the running dev mode in instance your browser page should immediately update reflecting the fact that it has lost a connection. If it doesn't, surely you didn't manage to shut it down.
Ok, so I said the red button will stop it and it will, but you have to get the right red button. If you have more than one instance running, again look at the "Developement Mode" view, there is only one red button and you have to use the grey arrows I mention to get focus on the dev mode instance you want.
It's not really that complicated and you'll have it down by tommorrow!
Here is the Dev. Mode view. You can see I have three instances. The first is actually running, but shows red as there was an error. Clicking the grey grey Xs will get rid of the second two non-running instances and clicking the document icon with one grey x (it's not greyed out), will clear the log from the current running instance and remove the red x as there would then be no errors in the log.
Got it?

How to open multiple consoles in multiple tabs in Eclipse?

I am using Eclipse Version: Helios Release for a Java application. I need to run multiple instances of same application and want easy visibility of multiple consoles.
Can it be done? If yes, how?
Run the application twice (say instance A and B). Console will display message from B. Then create two consoles as rsilva pointed (say 1 and 2). Both consoles will show message from B. After that change console 1 to display message from A by selecting the arrow near icon with monitor and select the instance A. The message from instance A will be displayed on console 1.
You can of course drag (or detached) one console to other place for better visibility.
Just look for your console view and in the right top click on the 'Open Console' button and select 'New console view'
If you write out your console information to multiple logs, then you can use a utility called Baretail which is highly configurable and easy to use. It allows you to view a growing file, i.e. logs for example, in realtime. Its easy to use and highly configurable - might be of some help to you.
Located near your console tab should be a button "Open Console".
If you click this button one of your options should be "New Console View".
You'll now have 2 console views.
One of your other buttons near your console tab is "Display Selected Console". When you choose this option you can select from any of your running applications.
Just select the tab, select which application you want it to watch, and repeat for the other tab.
You can then move your 2 console views to wherever you want independently of each other.

Categories