Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Using the tycho webstart

Hi,

I have spend some time trying to let tycho generate .jnlp for me.
I realize some of questions below are more towards .jnlp / eclipse related, apologies
for this. I hope someone can help.

My experience is mostly based on:
http://codeiseasy.wordpress.com/2012/10/19/tycho-and-java-web-start/

I have tried several things.

1) The example project on this blog, which references an existing RCP
in the kepler release. (https://github.com/drsgoodall/tycho-web-start)

The pom works and the .jnlp is generated.

I however get an error that the JAR resources in JNLP file are not signed by same certificate.

The way this is normally solved is by not including the 3rd party jars in an extension .jnlp
tycho-jnlp doesn't do this, is there an option for this?

2) I also tried it with my own product. I apply the tycho-jnlp-plugin in  a pom
which also materializes the .product. As I sign the jars myself I don't get the problem like in 1), but
I get a problem running .jnp on my Mac.

<message>***WARNING: Display must be created on main thread due to Cocoa restrictions.

This is a well known issue, which is tackled by adding a vm-argument:
<j2se version="1.5+" java-vm-args="-XstartOnFirstThread"/>

This is however not generated by tycho.

Additionally I am generally puzzled by which properties to define in the .jnlp and which one will be picked up from the eclipse.ini / config.ini. Do all properties need to be defined in .jnlp?

Thank You,
Christophe

The pom for my project:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.netxforge.releng.products.netxstudio.cdo.jnlp</groupId>
    <artifactId>com.netxforge.releng.products.netxstudio.cdo.jnlp</artifactId>
    <version>1.1.8-SNAPSHOT</version>
    <packaging>eclipse-repository</packaging>
    <parent>
        <groupId>com.netxforge.netxstudio</groupId>
        <artifactId>com.netxforge.releng</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../../releng.tycho/com.netxforge.releng</relativePath>
    </parent>
    <build>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho</groupId>
                <artifactId>tycho-p2-director-plugin</artifactId>
                <version>${tycho-version}</version>
                <executions>
                    <execution>
                        <id>materialize-products</id>
                        <goals>
                            <goal>materialize-products</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>archive-products</id>
                        <goals>
                            <goal>archive-products</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.sonatype.tycho</groupId>
                <artifactId>tycho-jnlp-plugin</artifactId>
                <version>1.0.1-SNAPSHOT</version>
                <configuration>
                    <jnlpFile>${project.build.directory}/repository/netxstudio.jnlp</jnlpFile>
                    <target>${project.build.directory}/repository/</target>
                    <skip>false</skip>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>jnlp-file</goal>
                            <goal>sign-jars</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>


 


Back to the top