Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Some questions about java web start
icon5.gif  Some questions about java web start [message #794916] Thu, 09 February 2012 21:31
Josh Hester is currently offline Josh HesterFriend
Messages: 30
Registered: July 2009
Member
I've followed the tutorial here for exporting our product to start via java web start:

http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2Fjava_web_start.htm

We already have a feature that includes our plugins and various features, and we also already have a .product file that specifies which feature to start along with a few start levels and autostart properties.

I'm pretty certain that we are including all necessary plugins and features in order to start the application from outside of eclipse because we already generate runnable products with a buckminster build.

When I try to execute my jnlp file, I get a message that my .product file can not be found. From my understanding, either it actually can not find the .product file, or some bundles may be failing to load.

So here are my questions,

1) Do I need to specify which feature contains my .product file?
2) Do I also need to specify which plugins to start up within my root level jnlp file? I wouldn't think so since they're specified in my .product file and that is referenced within the jnlp file.

Any ideas on this?

Here is my jnlp file for reference:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp 
    spec="1.0+" 
    codebase="http://localhost/product" 
    href="product.jnlp"> <!-- URL to the site containing the jnlp application. It should match the value used on  export. Href, the name of this file -->
  <information>
    <!-- user readable name of the application -->
    <title>Product</title>  
    <!-- vendor name -->
    <vendor>Company</vendor>
    <!-- vendor homepage --> 
    <homepage href="My company website" /> 
    <!-- product description -->
    <description>description</description> 
    <icon kind="splash" href="splash.gif"/>
  </information>
 
  <!--request all permissions from the application. This does not change-->
  <security>
    <all-permissions/>
  </security>
 
  <!-- The name of the main class to execute. This does not change-->
  <application-desc main-class="org.eclipse.equinox.launcher.WebStartMain">
    <argument>-nosplash</argument>
    <argument>-console</argument>
    <argument>-consoleLog</argument>
    <argument>1234</argument>
	<argument>-noExit</argument>
  </application-desc>
 
  <resources>
    <!-- Reference to the launcher jar. The version segment must be updated to the version being used-->
    <jar href="plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"/>
 
    <!-- Reference to all the plugins and features constituting the application -->
    <!-- Here we are referring to the wrapper feature since it transitively refers to all the other plug-ins  necessary -->
    <extension 
        name="Wrapper feature"
        href="features/com.app.feature_1.0.0.201202091606.jnlp"/>
 
    <!-- Information usually specified in the config.ini -->
            
    <!-- The id of the product to run, like found in the overview page of the product editor -->
    <property 
        name="eclipse.product" 
        value="app.product"/>
        
  </resources>

  <!-- Indicate on a platform basis which JRE to use --> 
  <resources os="Mac">
    <j2se version="1.6+" java-vm-args="-XstartOnFirstThread"/>
  </resources>
  <resources os="Windows">
    <j2se version="1.6+"/>
  </resources>
  <resources os="Linux">
    <j2se version="1.6+"/>
  </resources>
</jnlp>
Previous Topic:Problems start own Bundle in Eclipse
Next Topic:SWT and Equinox product export problems
Goto Forum:
  


Current Time: Mon Dec 06 00:38:02 GMT 2021

Powered by FUDForum. Page generated in 0.01958 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top