|
|
|
|
Re: Prepare Target Runtime for e4 e(fx)clipse Problem [message #1786112 is a reply to message #1785990] |
Wed, 25 April 2018 17:33 |
Marcelo Ruiz Messages: 80 Registered: April 2017 |
Member |
|
|
Thomas Schindl wrote on Mon, 23 April 2018 22:11So the nightly now works on Java9 even as a development platform! Just follow the tutorial
Hi Tom,
I am still having problems with the IDE not being able to find @PostConstruct and @PreDestroy. The dependency is set to javax.annotation as an Imported Package.
I removed the target platform based on runtime 3.2.0 and created a new one based on the nightly runtime, but Eclipse still cannot find the annotations.
The product shows the new target platform (3.3.0) with all modules activated, and I can see javax.annotation there.
I then updated the tooling to the nightly version, rebooted Eclipse to force a workspace rebuild, but still no joy.
What am I missing here?
Thanks!
[Edit]
Well, one step forward. I just restarted the computer, launched Eclipse and that problem seems solved (I can launch the application with no problem). The problem that remains is compiling with maven after updating the efxclipse runtime repository to:
<repositories>
<repository>
<id>efxclipse-runtime</id>
<layout>p2</layout>
<url>http://download.eclipse.org/efxclipse/runtime-nightly/site</url>
</repository>
// Other repositories here
</repositories>
The maven 'clean' goal updated the repository information, but the compile still fails:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:1.1.0:compile (default-compile) on project com.jfx.suppliers.ui.model: Compilation failure: Compilation failure:
[ERROR] /home/marcelo/jfx-workspace/com.jfx.suppliers.ui.model/src/com/jfx/suppliers/ui/model/list/SuppliersListController.java:[11]
[ERROR] import javax.annotation.PostConstruct;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import javax.annotation.PostConstruct cannot be resolved
[ERROR] /home/marcelo/jfx-workspace/com.jfx.suppliers.ui.model/src/com/jfx/suppliers/ui/model/list/SuppliersListController.java:[12]
[ERROR] import javax.annotation.PreDestroy;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import javax.annotation.PreDestroy cannot be resolved
[ERROR] /home/marcelo/jfx-workspace/com.jfx.suppliers.ui.model/src/com/jfx/suppliers/ui/model/list/SuppliersListController.java:[51]
[ERROR] @PostConstruct
[ERROR] ^^^^^^^^^^^^^
[ERROR] PostConstruct cannot be resolved to a type
[ERROR] /home/marcelo/jfx-workspace/com.jfx.suppliers.ui.model/src/com/jfx/suppliers/ui/model/list/SuppliersListController.java:[57]
[ERROR] @PreDestroy
[ERROR] ^^^^^^^^^^
[ERROR] PreDestroy cannot be resolved to a type
[ERROR] 4 problems (4 errors)
Is there any way to solve this?
Thanks!
[Updated on: Wed, 25 April 2018 17:48] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03876 seconds