Jprofiler + Vaadin + Intellij Idea : program arguments - java

I have small problem. I would like to run Intellij Idea with Vaadin and JProfiler on Tomcat.
Everything is fine and works good until I wanted to add profiler to this.
In Eclipse I had
(source: kermeta.org)
And in Idea it is also, but in java SE, Java Eclipse.
I have build project with this tutorial
https://vaadin.com/book/-/page/getting-started.idea.html
and I can not find any place for this program arguments :)
When I run my project in idea it runs only Tomcat and deploys my software on it. And that's it.
Does anybody know where I can put this JProfiler settings to attach to my session in tomcat?

JProfiler has an IDE integration for IntelliJ IDEA. Invoke "Session->IDE Integrations" in JProfiler an choose IntelliJ IDEA.
Then you will get a "Run->Profile" menu entry in IDEA and a toolbar button for profiling the selected run configuration.

Problem solved :)
Install plugin in Intelij Idea 13 and it will integrate with IProfler :)

Related

Eclipse Application to standalone?

I have been using Eclipse for my Java needs for quite some time now, but I have never really delved deep into it.
I was recently given this project by a friend which makes use of the XText plugin library to act as an IDE for a custom file type.
However, to launch it, I need to open the source of the editor itself in Eclipse and run it as an Eclipse Application which in turns open a separate Eclipse IDE.
I have been looking around for an easy way around this, but to no avail. Is there a way to run said Eclipse Application without having to first open the source of the custom editor and launching it?
Thank you!
I solved it by creating a shortcut for Eclipse and adding -data "PATH_TO_APP" on the 'target' field.
Thank you for your help everyone. :)

Tomcat reference missing from menu and preferences in eclipse

After spending a few hours searching the internet (including this site), I am unable to find a resolution to my issue and hopefully someone here can help out.
I did a clean install of eclipse kepler (ee version) this morning and my issue is getting Tomcat to be made available on the menu as well as on the preferences tab.
I have set up a Tomcat server in eclipse and have been able to start and stop it without any issue and that has me believing that Tomcat is set-up correctly in eclipse.
A few things tried were to create a dynamic web project hoping this would trigger the addition of the Tomcat options to the menu and preferences screen - nothing here, exited eclipse and re-entered thnking it may need a restart - again nothing. This instance is current as far as updates are concerned and with it being the ee version, the WTP tools are also installed.
I am thinking something very obvious is being overlooked but I cannot figure that out at the moment. Any direction you can point me me is greatly appreciated.
Thank you.
Tom
I think the only thing you can do with Tomcat is start it and stop it. What options were you looking for? I think everything you want is under the Tomcat run-configuration that you have already been using. Just edit that run-configuration to set whatever options you want (e.g. heap size, permgen, stack size, debugging options, etc.).
Ok, got this figured out with the help of a co-worker.
I needed to use the Tomcat plug-in (we use the one from Sysdeo) to get this going. I mistakenly thought that by using the EE edition of Eclipse along with having the webtools plugins (WTP) all that was needed was in place. Not so.
The downloaded plug-in was extracted into the eclipse/plugins folder. Once that was done, Eclipse was restarted and the Tomcat references were in place on the menu, the preferences dialog box, and the projects' properties dialog box.
Hope this information will be of value to anyone experiencing the same problem.

How can I disable "Initialize Java Tooling" on Eclipse startup?

In our application which is a Eclipse plugin, when Eclipse starts it takes long time and the users are seeing "Initialize Java tooling" message on the left down corner of application. Because our users don't have anything to do with java, I wonder if it is possible to disable Initialize Java tooling.
Another question: What is Initialize Java tooling?
Try to terminate eclipse then backup and delete the folder
.metadata/.plugins/org.eclipse.core.resources/.history
Restarting eclipse will not hang the Java Tooling process.
from Command prompt just type
eclipse.exe -clean
The java-tooling implement a Java IDE supporting the development of any Java application, including Eclipse plug-ins. It adds a Java project nature and Java perspective to the Eclipse Workbench as well as a number of views, editors, wizards, builders, and code merging and refactoring tools. The Java-tooling provides a development environment to developer.
how to disable plugin at startup
you can try disabling the java-tooling while launching the application.I am giving you a snapshot.
go find perspective as Window->Preferences->Run&Launching->java Application-> and make debug an run combobox to none value.
Hope this can solve your problem.
In case of Eclipse Oxygen, this settings can be found at:
Eclipse > Preferences > Run/Debug > Launching > Perspectives > Java Application > Eclipse JDT Launcher
There will be a folder .metadata in your project workspace directory. Just delete the .log files in it and restart eclipse.
Just uncheck "Build Automatically" and force quit Eclipse. Then start it again.
Project>Build Automatically - uncheck
-force quit
-start Eclipse
I know kind of late advice but because I have this issue 3 days now and I am very very frustrated....just have a copy of your eclipse IDE "virgin" as much possible to rerun it. And any plugin you want to have just do it on a direct copied version of this "virgin" eclipse. This is the only way to get away with clumsy plugins and staff under the hood that you cannot control.
It's devastating to import the projects all the time from the start or deleting the metadata folders....
Is to remove or rename the .projects folder in .metadata/.plugins/org.eclipse.core.resources in the workspace folder. This doesn’t seem to affect any project and the .project folder will be recreated when Eclipse restarts

Can't debug Java program in Intellij IDEA

For the first time I encounter problem when I can't debug Java program in Intellij IDEA. Output to command line works, but breakpoint is ignored..
May be it's because I created Maven configuration to start the program.
It might be that I'm disconnected from JVM, but I have no idea how to connect to.
What can be the cause of such behaviour?
If you're talking about debugging something running in Maven with IntelliJ, you can
Run the maven build through IntelliJ and debug it like anything else, or
Run your build using mvnDebug instead of just mvn. It will wait for a debugger to connect on port 8000. You can have IntelliJ do this by creating a Run/Debug Configuration of type "Remote" that connects to localhost:8000.
If you are facing with non-triggered breakpoints, see following:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003676199-Can-t-debug-any-Java-or-Kotlin-application
In my case disabling android plugins solved the problem.
My solution was the following in IntelliJ. Go to:
Settings -> Build, Execution, Deployment-> Build Tools -> Maven -> Runner
Make sure to uncheck the box 'Delegate IDE build/run actions to Maven'
After that, I could debug and the breakpoints worked properly.
Remember that Maven and IDEA use separate build processes. Ironically I only managed today to get my own app built,deployed and run in browser today using:
Maven 3.0
Tomcat 7.0.5 with tomcat-maven-plugin
IDEA IU version 10
So ask if you need a hand.
Yucca
Sounds like the same bug in the Java VM, I just ran into:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295
The stated workaround was to use the -XX:+UseParallelGC on the Java VM.
It's not an IDE problem.
That solution was worked for me;
File-->Invalidate Caches-->Tick The Clear CheckBoxes --> Restart
Have a nice day.

GWT context.xml in shell mode

I'm trying to get the GWTShell mode to load my context.xml file in which my database is described.
The only usable info can be found here, but this doesn't seem to work for the context.xml part.
I'm using Eclipse with Cypal Studio (previously called Googlipse).
If there is any other better plugin for Eclipse please recommend it.
As the Shell mode uses a Tomcat instance, which is the same target server we are using in the final deployment, it should be possible to achieve (or fake) a similar behaviour.
As of version 1.4, I have been running all my server side code, in my container of choice (Glassfish) and hooking up the GWTShell to that. Are you using Netbeans, Eclipse or something else? The Netbeans plugin gwt4nb does this for you out of the box, you just have to start your web project in debug mode. I'm sure the GWT plugin for Eclipse does the same thing.
I realise this doesn't directly answer your question -> but my question is, is there a reason you're trying to get GWT to pick up your database settings and not just running your project as normal instead. I find this much better and robust way of running the GWTShell.
Edit: Sorry I don't really use Eclipse, so I can't help you with plugins for it. I find Netbeans far superior for J2EE/web type projects. It's a bit slower, but far more functional. The plugin for that is called 'GWT4NB', it's free and it will set up your ant script in such a way that you just have to right-click on your web project and choose debug. I can understand if you don't want to switch IDEs though.

Categories