I have created a minimal RCP project with the Hello World example. I have selected Eclipse as the target platform since I want to modify the eclipse workbench (with the Hello World, Command example).
I have added the extension org.eclipse.core.runtime.products where I have specified:
ID: testID
name: Bob
On this extension I have right-clicked and also created a new product with:
application*: test.product2
name*: name
I have run this plugin and verified that it prints "Hello, Eclipse world " when I press the button.
Next I have created a new Product configuration and added it to the PDE project folder.
On the overview pane I have kept the default settings:
ID: testID
Product: org.eclipse.platform.ide
Application: org.eclipse.ui.ide.workbench
On the Dependencies pane I have pressed "Add required plugin-ins". But when I run the product (pressing the green play button) I get the error:
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error.
Any ideas on how to create this minimal product?
Did you press synchronize before launching your product, as described in the RCP tutorial?
alt text http://www.vogella.de/articles/EclipseRCP/images/product55.gif
On the overview tab press synchronize and then press "Launch an Eclipse application".
Synchronize will align your product configuration with the launch configuration.
To resolve the exception:
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry.
You have to add org.eclipse.ui.ide.application to your dependencies.
Val
Related
I followed this link to write my first gwt hello world program in eclipse. I created GWT Project in eclipse,then I want to create module for that,then I right clicked on package,new-->module
in gwt,then it is not going to next step, that is the problem..
1- Start eclipse
2- From eclipse marketplace seearch for gwt
3- install Eclipse GWT plugin 3.0.0
4- From eclipse menu select window -> preferences
5- open entry GWT -> GWT settings
6- Click Download button, this will take you the gwt sdk download page.
7- Donwolad and extract the latest sdk.
8- From eclipse GWT setttings preference window click on add
9- Select the extracted SDK folder.
10- Check the check box next to the new added SDK to make it default.
11- click Apply and close
Create and run a project
1- Locate the gwt plugin action button in the toolbar.
2- Select the button and select New GWT application project ... from the dropdown.
3- Enter the project name and package then click Finish
4- Select the newly created project and from the GWT action button select GWT compile project.
5- Once the compilation is completed, Right click the project then select Run as -> 2 GWT Development mode with jetty.
6- Once ready double click the url of the HTML to open it in the browser.
#Devi George: As in your case the suggested above by #Ahmad Bawanesh answer didn't help resolving the caption issue. There is nothing in the answer that actually mentions "module", let alone how to add one. I've had everything set up as explained, and still had a compiler error. What helped to address it described in this thread. Next, you should make sure the Java JRE setting in Eclipse preferences points to the installed JRE 1.8 location and is selected as the default. This thread got it covered.
As to the actual question on adding a module to a GWT project, you can always add a file and name it as needed with an xml file extension. Search the page for "Modules: Units of configuration" on how to configure the newly created xml file. Obviously, it must have a module tag inside, among other things.
I started with a RCP-Plug-in and wrote an own Editor. Running the project I've got this error
"Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.e4.tools.emf.ui/org.eclipse.e4.tools.emf.ui.internal.handlers.ResetToDefaultHandler".
I have the last error message with a lot of other handlers, too, e.g. "AutosizeColumnsHandler", "UnmarkItemsHandler", "RepairDuplicateItemsHandler"...
I've checked with OSGi-console that OSGi can't see my bundle. I don't use e4 modeling in my project.
I'm running my RCP as a product " org.eclipse.sdk.ide".
Does anybody know what to do?
Thanks in advance.
The solution was to run the RCP as an application org.eclipse.ui.ide.workbench. Furthermore "add Required Plug-ins" in the "plug-in" tab in the run configuration did not add the plugin org.eclipse.equinox.ds, which was necessary. I added it manually.
It's didn't work for me right the way... But i still managed to get it work just fine. Those are the steps i took to make it work:
Remove the product(if you already have one) from your "run configurations"
Add a new product for your project. To add a product select the project: "right click" on the project -> "New" -> "others..." ->
in wizard write product and select "Product Configurations" and click
"next". Select the project if it's not already done. Name your product
(usually <>.product), check "Create a configurations
file with the basic settings" and dial "Finish". Now you've got a
product file. Go to "Overview"(make sure to fill a product ID and the
Name. In "Product Definition" under "Product" and "Application" select
the product and the application.
Now move to "Dependencies" and your project under "Add..." and its dependencies under "Add Required Plug-ins".
You're almost finish yet... Now let get to the trickiest part. For reasons unknown some plug-ins don't get to be picked up by
the eclipse auto-analysis, so you need to add them by yourself. Add
"org.eclipse.equinox.ds" and "org.eclipse.equinox.event"to your
plug-ins dependencies and "Add Required Plug-ins".
Move back to Overview hit "synchronize" under "Testing" and Launch with "Launch an Eclipse application".
Those steps work pretty fine for me... Now i hope, i helped with my contribution.
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.
I have created a New --> Dynamic Web Project from Eclipse IDE ,
Modified the Java Build Path for default Output folder as
Ramesh/WebContent/WEB-INF/classes
But now , Why cant we see classes folder of a Dynamic Web Application from Eclipse IDE ??
Please see the screen shot of it .
http://tinypic.com/view.php?pic=2yjvx3d&s=7
Because that's how the project explorer's filters are configured by default.
Click on the little triangle at the top right of the project explorer view, then select "Customize View...", and uncheck "Java output folders", and you'll see it.
I have a run configuration defined for my Eclipse RCP application which is saved to a .launch file. Is there a way to use this launch configuration outside the Eclipse IDE? i.e, it would be nice to be able to launch the application from the command line for continuous integration purposes.
You can get the command line Eclipse uses:
Run your program in Eclipse
Go to the "Debug" view
Right-click on the process (probably the second item in the tree) and select "Properties"
Copy shell command and delete the agentlib flag to run in bash. Unfortunately, you need to do this whenever you change the configuration.
Yes, you could create and export a product configuration based on your launch-configuration:
Create new Product Configuration (File -> New -> Other)
Name the file (e.g. myrcp.product)
Select "Use a launch configuration" on the first page of the wizard
The product editor should open automatically. In the Exporting section you should be able to export your product using the "Eclipse Product export wizard".
Resource: Eclipse FAQ - How can I deploy my RCP app
Have a look at this PDE Build tutorial. It explains how to build and test (or run) your product using Ant.
It is possible to do that with a little workaround. You can find your configuration at workspace\.metadata\.plugins\org.eclipse.debug.core\.launches. So, open it in text editor and find an attribute containing goals, e.g. clean install -DskipTests=true.Then, go to the root of your project and execute that by the CMD:
mvn clean install -DskipTests=true
This should be similar for other goals.