Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Errors while packaging JavaFX 8 Native App with Maven

2759393Oct 14 2014

I am getting the following error in maven build for JavaFX 8 packaging. I am basically packaging using Maven and previously i was using jdk 1.7.0_67 now we update to JDK 8 and the following errors came. I search Google and did not find sufficient help. 

    main:

    Using base JDK at: C:\Program Files\Java\jdk1.8.0_20\jre

    Bundler Windows Application Image skipped because of a configuration problem: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 8

    lib\ext\jfxrt.jar

            ^

    Bundler EXE Installer skipped because of a configuration problem: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 8

    lib\ext\jfxrt.jar

            ^

    Bundler MSI Installer skipped because of a configuration problem: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 8

    lib\ext\jfxrt.jar

            ^

Any body  suggest me how to make proper configuration?

Here is my pom file

<!-- language: lang-xml -->

    <?xml version="1.0" encoding="UTF-8"?>

    <project

        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"

        xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <modelVersion>4.0.0</modelVersion>

   

        <groupId>com.nuaxis.rpas.client</groupId>

        <artifactId>java-client</artifactId>

        <version>5.2.0-SNAPSHOT</version>

        <name>RPAS Java Client</name>

        <packaging>jar</packaging>

   

        <properties>

            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

            <exec.mainClass>com.nuaxis.rpas.client.main.Main</exec.mainClass>

            <javafx.version>8.0.20</javafx.version>

            <maven.compiler.source>1.8</maven.compiler.source>

            <maven.compiler.target>1.8</maven.compiler.target>

            <!-- <fx.home>${java.home}/lib/jfxrt.jar</fx.home> -->

            <javafx.tools.ant.jar>${java.home}/../lib/ant-javafx.jar</javafx.tools.ant.jar>

            <dist.dir>${project.build.directory}/dist</dist.dir>

            <application.vendor>Nuaxis</application.vendor>

            <application.title>ReachPlus Alerts Synergy Desktop Client</application.title>

            <application.description>RPAS Desktop Client is for windows Mac and

                linux O.S</application.description>

            <application.copyright>ReachPlus 2014</application.copyright>

        </properties>

   

        <repositories>

            <repository>

                <id>library.local</id>

                <url>file:///${project.basedir}/repo</url>

                <releases>

                    <enabled>true</enabled>

                    <checksumPolicy>ignore</checksumPolicy>

                </releases>

                <snapshots>

                    <enabled>false</enabled>

                </snapshots>

            </repository>

        </repositories>

   

        <dependencies>

            <!-- Client Library -->

            <dependency>

                <groupId>com.nuaxis.rpas</groupId>

                <artifactId>clientlibrary</artifactId>

                <version>5.2.0</version>

            </dependency>

   

            <!-- Utitlities -->

   

            <dependency>

                <groupId>com.google.inject</groupId>

                <artifactId>guice</artifactId>

                <version>3.0</version>

            </dependency>

   

            <dependency>

                <groupId>commons-codec</groupId>

                <artifactId>commons-codec</artifactId>

                <version>1.9</version>

            </dependency>

   

            <dependency>

                <groupId>com.h2database</groupId>

                <artifactId>h2</artifactId>

                <version>1.3.176</version>

            </dependency>

   

            <!-- JCIP Concurrency Annotations -->

            <dependency>

                <groupId>net.jcip</groupId>

                <artifactId>jcip-annotations</artifactId>

                <version>1.0</version>

            </dependency>

   

            <!-- Test -->

            <dependency>

                <groupId>junit</groupId>

                <artifactId>junit</artifactId>

                <version>4.11</version>

                <scope>test</scope>

            </dependency>

   

            <dependency>

                <groupId>org.hamcrest</groupId>

                <artifactId>hamcrest-all</artifactId>

                <version>1.3</version>

                <scope>test</scope>

            </dependency>

   

            <!-- JAVA FX -->

        <!--     <dependency>

                <groupId>com.oracle</groupId>

                <artifactId>javafx</artifactId>

                <version>${javafx.version}</version>

                <systemPath>${fx.home}</systemPath>

                <scope>system</scope>

            </dependency> -->

   

            <dependency>

                <groupId>org.rapidpm.modul</groupId>

                <artifactId>javafx-dialogs</artifactId>

                <version>0.0.4</version>

                <systemPath>${basedir}/repo/javafx-dialogs-0.0.4.jar</systemPath>

                <scope>system</scope>

            </dependency>

   

   

            <dependency>

                <groupId>org.schudt</groupId>

                <artifactId>javafx-datepicker</artifactId>

                <version>0.0.2</version>

                <systemPath>${basedir}/repo/javafx-datepicker-0.0.2.jar</systemPath>

                <scope>system</scope>

            </dependency>

            <dependency>

                <groupId>com.aquafx-project</groupId>

                <artifactId>aquafx</artifactId>

                <version>0.1</version>

            </dependency>

   

        </dependencies>

   

        <build>

   

            <plugins>

                <plugin>

                    <groupId>org.apache.maven.plugins</groupId>

                    <artifactId>maven-compiler-plugin</artifactId>

                    <version>3.1</version>

                    <configuration>

                        <source>${maven.compiler.source}</source>

                        <target>${maven.compiler.target}</target>

                    </configuration>

                </plugin>

               

                <plugin>

                    <artifactId>maven-jar-plugin</artifactId>

                    <version>2.3.1</version>

                    <executions>

                        <execution>

                            <id>default-jar</id>

                            <phase>none</phase>

                        </execution>

                    </executions>

                </plugin>

                <plugin>

                    <artifactId>maven-antrun-plugin</artifactId>

                    <version>1.7</version>

                    <executions>

                        <execution>

                            <id>create-temp-jar</id>

                            <phase>prepare-package</phase>

                            <goals>

                                <goal>run</goal>

                            </goals>

                            <configuration>

                                <target xmlns:fx="javafx:com.sun.javafx.tools.ant">

                                    <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml"

                                        classpath="${project.basedir}:${javafx.tools.ant.jar}" />

   

                                    <fx:jar

                                        destfile="${project.build.directory}/${project.build.finalName}-temp">

                                        <fx:application id="fxApp" name="${project.name}"

                                            mainClass="${exec.mainClass}" />

                                        <fx:fileset dir="${project.build.directory}/classes" />

                                        <manifest>

                                            <attribute name="Implementation-Vendor" value="${application.vendor}" />

                                            <attribute name="Implementation-Title" value="${application.title}" />

                                            <attribute name="Implementation-Version" value="${project.version}" />

                                        </manifest>

                                    </fx:jar>

                                    <attachartifact

                                        file="${project.build.directory}/${project.build.finalName}-temp.jar"

                                        classifier="temp" />

                                </target>

                            </configuration>

                        </execution>

                        <execution>

                            <id>create-deployment-bundle</id>

                            <phase>install</phase>

                            <goals>

                                <goal>run</goal>

                            </goals>

                            <configuration>

                                <target xmlns:fx="javafx:com.sun.javafx.tools.ant">

   

                                    <taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml"

                                        classpath="${project.basedir}:${javafx.tools.ant.jar}" />

   

                                    <fx:deploy nativeBundles="all" width="100" height="100"

                                        outdir="${dist.dir}" embedJNLP="true" outfile="${project.build.finalName}"

                                        verbose="true">

   

                                        <fx:application name="${project.build.finalName}"

                                            mainClass="${exec.mainClass}" />

                                        <fx:resources>

                                            <fx:fileset dir="${project.build.directory}"

                                                includes="${project.build.finalName}.jar" />

                                        </fx:resources>

                                        <fx:preferences shortcut="true" menu="true"

                                            install="true" />

   

                                        <fx:info title="${application.title}" vendor="${application.vendor}"

                                            copyright="${application.copyright}" description="${application.description}">

                                        </fx:info>

                                        <fx:platform javafx="${javafx.version}" basedir="${java.home}">

                                            <fx:jvmarg value="-Xms512m" />

                                            <fx:jvmarg value="-Xmx1024m" />

                                        </fx:platform>

                                        <fx:permissions elevated="true" />

                                    </fx:deploy>

                                </target>

                            </configuration>

                        </execution>

                    </executions>

                </plugin>

                <plugin>

                    <artifactId>maven-assembly-plugin</artifactId>

                    <version>2.2.1</version>

                    <executions>

                        <execution>

                            <id>make-assembly</id>

                            <phase>package</phase>

                            <goals>

                                <goal>single</goal>

                            </goals>

                        </execution>

                    </executions>

                    <configuration>

                        <descriptors>

                            <descriptor>src/main/assembly/jar-with-dependencies.xml</descriptor>

                        </descriptors>

                        <finalName>${project.build.finalName}</finalName>

                        <appendAssemblyId>false</appendAssemblyId>

                        <archive>

                            <manifestEntries>

                                <JavaFX-Version>${javafx.version}</JavaFX-Version>

                                <JavaFX-Application-Class>${exec.mainClass}</JavaFX-Application-Class>

                                <Main-Class>com/javafx/main/Main</Main-Class>

                            </manifestEntries>

                        </archive>

                    </configuration>

                </plugin>

            </plugins>

        </build>

   

    </project>

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2014
Added on Oct 14 2014
0 comments
1,246 views