Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] OpenJFX for an e4 RCP app with GEF

Hi,

There is a bundled OpenJFX 11 available provided by BestSolutions. Hopefully sometime available via Eclipse Update Sites.

I explained how to integrate that here:
http://blog.vogella.com/2019/11/15/add-javafx-controls-to-a-swt-eclipse-4-application-eclipse-rcp-cookbook-update/

Only the javafx-swt.jar is not available this way. But it can also be included with a relative path if you add the jar in your repo. We did this for example in APP4MC:

https://git.eclipse.org/c/app4mc/org.eclipse.app4mc.git/tree/pom.xml?h=develop

Hope that helps, 
Dirk 

Kenneth Keefe <kjkeefe@xxxxxxxxxxxx> schrieb am Do., 19. Nov. 2020, 04:26:
I have an e4 RCP app that uses GEF. GEF needs OpenJFX for the JavaFX packages. Getting it set up in the Eclipse IDE requires installing the e(fx)clipse feature to handle the JavaFX packages. To make it work on Tycho, I've been really struggling. I feel like there should be a simple p2 repo or maven dependency can provide these dependencies. 

Right now, this is the only solution, but it seems like a total hack and is also not portable since I have to use absolute local paths to the jars. 

Suggestions?

<plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-compiler-plugin</artifactId>
    <version>${tycho.version}</version>
    <configuration>
         <encoding>UTF-8</encoding>
         <extraClasspathElements>
             <extraClasspathElement>
                 <groupId>com.oracle</groupId>
                 <artifactId>javafx-swt</artifactId>
                 <version>11.0.2-SNAPSHOT</version>
                 <systemPath>/Users/ken/openjfx/javafx-sdk-11.0.2/lib/javafx-swt.jar</systemPath>
                 <scope>system</scope>
             </extraClasspathElement>
             <extraClasspathElement>
                 <groupId>com.oracle</groupId>
                 <artifactId>javafx-base</artifactId>
                 <version>11.0.2-SNAPSHOT</version>
                 <systemPath>/Users/ken/openjfx/javafx-sdk-11.0.2/lib/javafx.graphics.jar</systemPath>
                 <scope>system</scope>
             </extraClasspathElement>
             <extraClasspathElement>
                 <groupId>com.oracle</groupId>
                 <artifactId>javafx-base</artifactId>
                 <version>11.0.2-SNAPSHOT</version>
                 <systemPath>/Users/ken/openjfx/javafx-sdk-11.0.2/lib/javafx.base.jar</systemPath>
                 <scope>system</scope>
             </extraClasspathElement>
         </extraClasspathElements>
     </configuration>
</plugin>


Thanks,
Ken



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user

Back to the top