IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Eclipse Platform Discussion :

Product could not be found


Sujet :

Eclipse Platform

  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut Product could not be found
    Bonjour à tous,

    J'ai un petit souci. J'ai récupéré une application Eclipse et j'aimerais la tester / debugger.
    J'ai donc compilé les sources puis j'ai essayé de lancer cette application.

    J'ai suivi la documentation fournie : http://www.eclipse.org/epf/composer_.../run_debug.php

    Il y a une chose que je ne comprend pas :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    specify the workspace information and the product identifier
    le worspace ça va mais le product identifier, je ne comprend pas à quoi cela correspond et ou le renseigner ?
    De plus, dans la liste des produits, je n'ai pas org.eclipse.epf.rcp.beacon ... J'ai choisi org.eclipse.epf.rcp.ui.composer qui me semblait le plus approprié

    Lorsque je lance l'application j'ai un message d'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    The application could not start
    plus un fichier log que je réduit volontairement
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    !ENTRY org.eclipse.equinox.app 2009-08-04 12:21:20.268
    !MESSAGE Product org.eclipse.epf.rcp.ui.composer could not be found.
    java.lang.RuntimeException: No application id has been found.

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut
    Après pas mal de recherche, il semblerait que ce genre d'erreur peut s'expliquer par un mauvais config.ini
    Je donne donc le mien :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    # Eclipse runtime configuration file
    # This file contains a number of key/value pairs that are merged into the 
    # System properties on system startup.  The values control the way the 
    # runtime is structured and runs.
     
    # Note:  Only platform:/base/ and file: URLs are supported.  In general the 
    # URLs given may include a version number (e.g., .../location_1.2.3).  
    # If a version is not specified, the system binds
    # to the location which matches exactly or to the versioned location with the
    # latest version number.  If a version number is given then only exact matches
    # are considered.
     
    # The URL for the runtime entry point.  The default value is
    # platform:/base/plugins/org.eclipse.osgi 
    #osgi.framework=platform:/base/plugins/org.eclipse.osgi
     
    # The classpath for the framework found at the osgi.framework location.  This 
    # comma-separated list contains either URLs or simple element names.  Simple
    # names are assumed to be relative to the framework's install directory.  
    # Typically this value need not be set as it is initialized by the framework itself.
    # Version match searching is not done for URLs listed here.
    #osgi.frameworkClassPath =
     
    # The comma-separated list of locations to search for the splash screen file (splash.bmp).
    # For each list element a subdirectory structure based on the pattern nl/<locale> is searched.
    # The system binds to the first matching file.  There is no default value.
    #osgi.splashPath=
     
    # The location of the splash screen file.  If this value is set at system startup it is used 
    # in favour of the osgi.splashPath searching outlined above.  If the value is not set 
    # the searching is done and this key is bound to the result of the search.
    #osgi.splashLocation =
     
    # The comma-separated list of bundles which are automatically installed and optionally started
    # once the system is up and running.  Each entry if of the form
    #     <URL | simple bundle location>[@ [<startlevel>] [":start"]]
    # If the startlevel is omitted then the framework will use the default start level for the bundle.
    # If the "start" tag is added then the bundle will be marked as started after being installed.
    # Simple bundle locations are interepreted as relative to the framework's parent directory.
    # The startlevel indicates the OSGi start level at which the bundle should run.
    # If this value is not set, the system computes an appropriate default.
    #osgi.bundles=org.eclipse.core.runtime@2:start,com.ibm.rmc.library,org.eclipse.ui.ide,org.eclipse.help.appserver,org.eclipse.help.base,org.eclipse.update.ui,com.ibm.uma,com.ibm.uma.core,com.ibm.umaf.ecore,com.ibm.tngui.edit,org.eclipse.core.resources,org.eclipse.emf,org.eclipse.emf.ecore.xmi,org.eclipse.emf.edit,org.eclipse.emf.edit.ui,org.eclipse.ui,org.eclipse.ui.ide
     
    # The product to run.  A given Eclipse configuration may contain many products.
    # The product identified will supply the branding (window icons, title bar text) etc 
    # as well as define the default application to run.  
    eclipse.product=org.eclipse.platform
     
    # The application to run.  The value specified here is the id of the application extension
    # the runtime will find, instantiate and execute once the system is up.  Note that typically 
    # the identified eclipse.product defines the default application to run.
    eclipse.application=org.eclipse.epf.rcp.ui.MainApplication
     
    # The build identifier
    eclipse.buildId=M200409161125
     
    # End of file marker - must be here
    eof=eof
    Je pense qu'il y faut peut être décommenter la ligne osgi.bundles= mais j'en sais pas beaucoup plus donc si quelqu'un à une information
    Si je fais fausse route, merci de me réorienter ...

  3. #3
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    Bonjour,

    Regarde dans le plugin.xml si tu n'as pas une partie qui correspond au product.

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut
    D'abord merci d'essayer de m'aider

    apparemment il y a bien une partie product
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
     <extension
             id="composer"
             point="org.eclipse.core.runtime.products">
          <product
                application="org.eclipse.epf.rcp.ui.MainApplication"
                name="Eclipse Process Framework Composer">
             <property
                   name="preferenceCustomization"
                   value="plugin_customization.ini"/>
             <property
                   name="startupForegroundColor"
                   value="C8D5EA"/>
             <property
                   name="startupMessageRect"
                   value="7,220,441,20"/>
             <property
                   name="startupProgressRect"
                   value="0,280,455,15"/>
             <property
                   name="aboutImage"
                   value="icons/about.gif"/>
             <property
                   name="aboutText"
                   value="%aboutText"/>
             <property
                   name="windowImages"
                   value="icons/full/obj16/product.gif,icons/full/obj32/product32.gif"/>
             <property
                   name="appName"
                   value="Eclipse Process Framework Composer">
             </property>
          </product>
       </extension>
    C'est un peu (beaucoup) obscure pour moi
    Ça change quelque chose ?

  5. #5
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    En tant que product identifier, met "composer".

    Pour moi aussi c'est obscur encore ^^

  6. #6
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut
    le product identifier correspond bien au champ Name que l'on a dans fenêtre de configuration ?
    Si oui, ça change rien
    Images attachées Images attachées  

  7. #7
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    As-tu un fichier *.product ?

    Le name dans le Run configuration te permet juste d'identifier ton projet (c'est pour toi).

  8. #8
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut
    oui j'ai un composer.product dans le package org.eclipse.rcp.ui

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    <?xml version="1.0" encoding="UTF-8"?>
    <?pde version="3.1"?>
     
    <product name="Eclipse Process Framework Composer" id="org.eclipse.epf.rcp.ui.composer" application="org.eclipse.epf.rcp.ui.MainApplication" useFeatures="true">
     
       <aboutInfo>
          <image path="icons/about.gif"/>
          <text>
             %aboutText
          </text>
       </aboutInfo>
     
       <configIni use="default"/>
     
       <launcherArgs>
          <programArgs>-data @user.home/EPF/workspace.120M3 -defaultlibrary OpenUP</programArgs>
          <vmArgs>-Xms64m -Xmx512m</vmArgs>
       </launcherArgs>
     
       <windowImages i16="/org.eclipse.epf.rcp.ui/icons/full/obj16/product.gif" i32="/org.eclipse.epf.rcp.ui/icons/full/obj32/product32.gif"/>
     
       <splash
          startupProgressRect="0,280,455,15"
          startupMessageRect="7,220,441,20"
          startupForegroundColor="C8D5EA" />
       <launcher name="epf">
          <solaris/>
          <win useIco="false">
             <bmp/>
          </win>
       </launcher>
     
       <plugins>
       </plugins>
     
       <features>
          <feature id="org.eclipse.epf.product.feature" version="1.2.0.qualifier"/>
       </features>
     
    </product>
    J'ai supposé qu'il fallait modifié la ligne
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <product name="Eclipse Process Framework Composer" id="org.eclipse.epf.rcp.ui.composer" application="org.eclipse.epf.rcp.ui.MainApplication" useFeatures="true">
    et mettre id="composer" mais ça change toujours rien

  9. #9
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    Non, laisse le tel quel. Normalement, quand tu ouvres ce fichier sous Eclipse, il s'ouvre dans un éditeur graphique. Si ce n'est pas le cas : clic droit > Open With... > Product Configuration Editor.

    En haut à droite de l'éditeur, tu auras le symbole de lecture identique au Run. En fait, ce fichier te permet de configurer ton Run sans rien avoir à paramétrer (Nom du projet, librairies en dépendances, arguments éventuels pour ton appli et pour la JVM, etc.).

    Lors du clic sur ce symbole, ton Run Configuration est créé et ton application est lancée.

  10. #10
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut
    merci pour l'astuce mais hélas j'obtiens un log d'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    !SESSION Thu Aug 06 16:40:46 CEST 2009 -----------------------------------------
    !ENTRY org.eclipse.equinox.launcher 4 0 2009-08-06 16:40:46.814
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
    	at java.net.URLClassLoader$1.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:505)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

  11. #11
    BiM
    BiM est déconnecté
    Expert confirmé
    Avatar de BiM
    Femme Profil pro
    Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT
    Inscrit en
    Janvier 2005
    Messages
    7 796
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 39
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultante/Formatrice BIRT & Ingénieur Java/J2EE/GWT

    Informations forums :
    Inscription : Janvier 2005
    Messages : 7 796
    Par défaut
    On avance !

    Tu vas maintenant dans ta configuration de démarrage (Run > Run configurations > Eclipse Process Framework Composer).
    Tu vas dans l'onglet Plugins et tu fais Add Required Plug-ins. Puis tu fais Apply et Run.

  12. #12
    Membre éclairé
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    795
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 795
    Par défaut
    J'ai la version 3.3.2 d'eclipse dans laquelle il n'y a pas Run>Run configurations

    je peux faire Run > Open Run Dialog qui m'ouvre la fenêtre que j'avais mis en pièce jointe (je suppose qu'il s'agit bien de la même chose mais je préfère être sur)
    Le name est alors composer.product et non pas Eclipse Process Framework Composer, je vais dans Plugins, Add Required Plug-ins
    Apply + Run et boum !
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    !ENTRY org.eclipse.equinox.app 2009-08-06 16:51:38.411
    !MESSAGE Product org.eclipse.epf.rcp.ui.composer could not be found.
     
    !ENTRY org.eclipse.osgi 4 0 2009-08-06 16:51:38.441
    !MESSAGE Application error
    !STACK 1
    java.lang.RuntimeException: No application id has been found.
    Et oui encore

Discussions similaires

  1. [Struts Menu] The menu repository could not be found !
    Par khaoula_14_05 dans le forum Struts 1
    Réponses: 9
    Dernier message: 16/09/2008, 09h28
  2. vb6fr.dll could not be found
    Par alfi3000 dans le forum Excel
    Réponses: 2
    Dernier message: 18/12/2007, 15h56
  3. Réponses: 3
    Dernier message: 16/05/2007, 10h35
  4. The JRE could not be found
    Par hynposat7 dans le forum Servlets/JSP
    Réponses: 4
    Dernier message: 21/07/2006, 06h33
  5. [3.0.1 to 3.0.2] org.eclipse.platform.ide could not be found
    Par Sfeabg dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 27/05/2005, 13h26

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo