Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » JDT simple change(JDT simple change in source codes)
JDT simple change [message #1854040] Fri, 29 July 2022 05:06 Go to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
index.php/fa/42352/0/
Hi dear gurus. I want to make changes in JDT code. I downloaded everything from the https://github.com/orgs/eclipse-jdt/repositories, compiled it, but when I put a breakpoint, it stops not in my code, but in the jar file that is a host and not a target.

How can I make simple change to see my changes in target platform?

[Updated on: Fri, 29 July 2022 10:09]

Report message to a moderator

Re: JDT simple change [message #1854042 is a reply to message #1854040] Fri, 29 July 2022 07:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
From within the IDE where you have the JDT code you need to launch a new Eclipse Application, a so-called self-hosted launch, and that will use the plugin in the workspace such that you can debug them.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JDT simple change [message #1854046 is a reply to message #1854042] Fri, 29 July 2022 10:15 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Ed Merks wrote on Fri, 29 July 2022 07:13
From within the IDE where you have the JDT code you need to launch a new Eclipse Application, a so-called self-hosted launch, and that will use the plugin in the workspace such that you can debug them.

Thank you Ed
I added the screenshot where is visible that I add launcher as "Eclipse Application". I also try to play with "Run a product", try different applications from the combo box. But no difference. In top of screen visible that instead of stop on my breakpoint it stops in appropriate *.jar file.

Below I also attached the other tabs of my launcher.

index.php/fa/42354/0/
index.php/fa/42355/0/

[Updated on: Fri, 29 July 2022 10:36]

Report message to a moderator

Re: JDT simple change [message #1854052 is a reply to message #1854046] Fri, 29 July 2022 13:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Sorry, I didn't see your picture the first time. It doesn't look like you really imported the projects as projects but rather imported the entire Maven folder as a single project. You won't be able to launch from that form.

Better you use the automated setup to create the development environment such that the projects are properly imported individually:

https://www.eclipse.org/setups/installer/?url=https://raw.githubusercontent.com/eclipse-jdt/eclipse.jdt/master/org.eclipse.jdt.releng/JDTConfiguration.setup&show=true


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JDT simple change [message #1854138 is a reply to message #1854052] Wed, 03 August 2022 07:01 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Thank you Ed with your help everything works now.

[Updated on: Wed, 03 August 2022 07:01]

Report message to a moderator

Re: JDT simple change [message #1854139 is a reply to message #1854052] Wed, 03 August 2022 07:32 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Dear Ed. Do you know the same place for CDT, where I can get sources and make my changes on the CDT itself, as I can do with JDT? Because I cant find the same place for CDT. And when I select CDT in installer manually/JDT checkboxes was checked automatically/ it gives error during installation.

index.php/fa/42369/0/
index.php/fa/42370/0/
Re: JDT simple change [message #1854141 is a reply to message #1854139] Wed, 03 August 2022 08:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Probably you had this error:

ERROR: org.eclipse.equinox.p2.director code=0 Missing requirement: artificial_root 1.0.0.v1659515430790 requires 'org.eclipse.equinox.p2.iu; org.eclipse.pde.api.tools.ee.feature.feature.group 0.0.0' but it could not be found

That feature has been removed in the 4.25 (2022-09) stream. CDT needs to remove it from their setup to fix this problem; I'll try to help fix it for them...

To avoid the problem for now, I suggest choosing the Committers product (not the Eclipse SDK product) and picking the 2022-06 version on the first page of the installer. That worked for me just now; mostly, I did have timeouts resolving the target platform and and to do Help -> Perform Setup Tasks... a second time to get it to work. Then I still have timeouts cloning https://git.eclipse.org/r/cdt/org.eclipse.cdt but I tried ssh://emerks@git.eclipse.org:29418/cdt/org.eclipse.cdt which finally worked, but you need to set up Gerrit for that:

https://wiki.eclipse.org/Gerrit


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JDT simple change [message #1854151 is a reply to message #1854141] Wed, 03 August 2022 14:54 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Dear Ed, I installed Commiters 2022-06 (before that was 2022-03) version as you suggested. I also have timeouts on cloning by https and I have some difficulties with Gerrit set up. As I have no bug to fix for CDT. I just want to investigate some rename dialog on CDT. By the way I always clone directly from command line git master branch (if I should take an other version please correct me).
But it gives me 2000+ errors
index.php/fa/42373/0/

If I skip them all and try to run anyway. The target eclipse(CDT) does not allow to create some project.
index.php/fa/42374/0/

Thank you
Re: JDT simple change [message #1854154 is a reply to message #1854151] Wed, 03 August 2022 18:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
The setups are there to eliminate the "sea of red" that you typically get from just cloning and just importing projects and hoping for the best. BTW, I opened this bug to contribute fixes to the CDT.setup, but they are in the processing migrating the project to github:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=580505


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: JDT simple change [message #1854430 is a reply to message #1854154] Thu, 18 August 2022 12:03 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Thank you Ed. Your advices help me a lot.
Re: JDT simple change [message #1854435 is a reply to message #1854430] Thu, 18 August 2022 13:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
BTW, the migration to Github is complete now and they have a contributing section:

https://github.com/eclipse-cdt/cdt/blob/main/CONTRIBUTING.md

With a simple-to-use setup that does work now:

https://www.eclipse.org/setups/installer/?url=https://raw.githubusercontent.com/eclipse-cdt/cdt/main/releng/CDTConfiguration.setup&show=true


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:javax support missing
Next Topic:Kotlin Plugin from Marketplace in Eclipse
Goto Forum:
  


Current Time: Thu Apr 18 04:00:29 GMT 2024

Powered by FUDForum. Page generated in 0.03187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top