Home » Newcomers » Newcomers » Unable to create Eclipse RCP Application(IDE generated projects always fail to build)
| |
Re: Unable to create Eclipse RCP Application [message #1851296 is a reply to message #1851290] |
Fri, 01 April 2022 16:42 |
Rob M Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Thanks. I've by now tried, I think, about 20 or 30 different combinations of JDK, Eclipse versions, and tutorials. I haven't yet found a combination that runs any RCP application. There are bugs in every configuration, but the nature of the bugs varies depending on the configuration.
The built in tutorial in the Welcome screen of Eclipse has an RCP application tutorial that asks you to use a 3.x RCP application. If I'm not mistaken, 3.x was superseded 10 years ago by the e4 platform.
All of the configurations I've tried so far have used Eclipse "R" versions from 2021 and 2022. Do these releases still support RCP? Should I go back further? Would it be advisable to obtain a copy of Eclipse from, say, 2012 or so, when RCP was still more of a current technology?
At this point, I'm wondering the following
1. Is RCP is still supported?
2. Is MacOS fully supported?
3. What would be the most conservative combination of Eclipse version, JDK, and OS possible, to maximize the chances that applications build?
|
|
| | | | | |
Re: Unable to create Eclipse RCP Application [message #1851358 is a reply to message #1851351] |
Mon, 04 April 2022 05:10 |
Rob M Messages: 11 Registered: July 2009 |
Junior Member |
|
|
UPDATE:
I've decided to try to find a combination of Eclipse version, OS, JDK, and documentation, that work together to reliably compile RCP applications.
I'm focusing on Eclipse version 4.4 (Luna) because there's a book by Lars Vogel on Eclipse RCP that uses that version. Since the book was never
updated, I suspect Eclipse 4.4 might be the high water mark for Eclipse RCP stability.
Unfortunately, Luna crashes on startup under MacOS Monterey with an error message "An error has occurred. See the log file null." As the message suggests, no log appears to have been written.
I've also so far tried the 7 releases nearest Luna. Six of them crash on startup. One has missing files.
I have yet to try versions of Eclipse before 2011 and between 2018 and 2019.
Eclipse 4.7 (Oxygen) crashes at startup like the others, but at least gets as far as writing a log file. It contains:
java.lang.NullPointerException: Cannot invoke "org.eclipse.swt.internal.cocoa.NSGraphicsContext.graphicsPort()" because "graphicsContext" is null
at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:2176)
at org.eclipse.swt.graphics.GC.<init>(GC.java:174)
at org.eclipse.swt.graphics.GC.<init>(GC.java:135)
at org.eclipse.jface.dialogs.Dialog.initializeDialogUnits(Dialog.java:934)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:142)
...
I can't easily test Eclipse on older versions of MacOS. But if I knew it worked, I'd figure something out. I'm also willing to run Windows or Linux.
So, I'm still in the boat that I haven't yet found any configuration of Eclipse that works.
I will continue to try combinations of operating system, Eclipse version, and JDK, until I either find something that works, or
I get a good suggestion for a better technology. Like everyone else, I'm going to move to the web eventually, but I was hoping
to start with desktop Java initially. However, if I have to fight every step of the way, I'll skip the desktop.
It would really help me if someone knows an OS
|
|
| |
Re: Unable to create Eclipse RCP Application [message #1851367 is a reply to message #1851359] |
Mon, 04 April 2022 08:20 |
Rob M Messages: 11 Registered: July 2009 |
Junior Member |
|
|
UPDATE:
I've tried on a second MacOS system running Catalina. I've tried every version of Eclipse going back to 2012, with JDK 8 and JDK 17.
Some of the error messages are different, but in no case can Eclipse compile even a Hello World RCP application.
I was considering trying an older Mac, a Windows 10 machine, and an Ubuntu Linux machine tomorrow. However, in view the remarkable
consistency of failures on Mac so far, I have lost confidence that RCP is a viable platform.
If there is a combination of Eclipse version, OS version, and JDK version, that you know for certain to be capable of compiling a Hello World
application, I will continue trying.
Otherwise, thank you for the help you gave me. In the meantime, I will be exploring other options.
|
|
| |
Re: Unable to create Eclipse RCP Application [message #1851389 is a reply to message #1851369] |
Mon, 04 April 2022 16:04 |
Rob M Messages: 11 Registered: July 2009 |
Junior Member |
|
|
I'm not sure what you mean by "work well". Using a current Mac with the current release of Eclipse with JDK 17 (or any other JDK I've tried) using the default settings
for a Hello World RCP application, results in the errors I've already described. I've so far been unable to resolve some of the errors, but not to get the Hello World
application to launch. This is not what I mean by "working".
Since old versions of the Eclipse IDE won't even start on relatively recent Mac computers, for seemingly trivial reasons, like being unable to find the graphicsContext,
I suppose it might be pointless to develop using old versions of the RCP platform. But it's thrown everything into confusion and doubt.
There is of course a difference between "supported" and "working". Ideally, I'd like both. Currently, I have a "supported" system, but not working. If I have to choose,
I'll take "working" but "not supported".
I suppose if I keep working at it, I might learn enough to work around the IDE's ... misbehavior. If there's anyone else still trying to do RCP application
development (for e4), I assume that must be what they are doing. That is an option to consider, but combined with what I personally find to be a
baroque and awkward UX of the Eclipse IDE, it's a depressing prospect.
Since the app won't launch and the Problems pane shows no problem, I don't think a screen shot would be helpful.
(By the way, the posts in this forum don't seem to have a responsive web design, and I don't have horizontal scrolling or it's
awkward to read what's past about 150 characters per line.)
|
|
| | | | |
Goto Forum:
Current Time: Mon Nov 04 14:51:05 GMT 2024
Powered by FUDForum. Page generated in 0.10753 seconds
|