facebook

How to install EMF?

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #256644 Reply

    BillZwicky
    Member

    I’ve found something else unusual .. the EMF plugin jars themselves contains more jars. For example, “myeclipse50m2\eclipse\plugins\org.eclipse.emf.common_2.2.0.v200606271057.jar” contains another “org.eclipse.emf.common_2.2.0.v200606271057.jar”, along with other files. If I attach the outer jar to my project, org.eclipse continues to fail. But if I extract the inner jar and attach that, then package org.eclipse becomes visible.

    I don’t know if Eclipse can read jars inside of other jars, but I know that neither EMF 2.1.0 nor the official 2.2.0.v200606271057 from the EMF project do it.

    #256647 Reply

    Scott Anderson
    Participant

    Bill,

    This was a build problem due to a PDE bug in the 5.0.0 GA release and was fixed as part of 5.0.1 which is now available.
    The issue is that Eclipse can read jars inside of jars just fine, but VE creates an external classpath for the VM it launches to test the UI and that VM cannot understand jars in jars on the classpath. That’s why everything works within the environment, but VE testing would not work. Again, this was fixed in 5.0.1, but due to the nature of the change a simple update may not cause Eclipse to recognize the difference.

    What I’d suggest is a fresh install of Eclipse 3.2, MyEclipse 5.0.1, and the other projects you need. That should resolve the issue more definately and allow you to then open your existing workspace and continue working. Sorry for the inconvenience this path causes you, it’s just that I want to recommend the approach that will resolve the issue with certainty.

    #256650 Reply

    Riyad Kalla
    Member

    You don’t seem to be using clean installs, as I don’t know why your clean install dir would be lalbelled MyEclipse50m2, unless you unzipp the GA release ontop of your old M2 release, which might explain this whole time why it’s acting strange.

    #256709 Reply

    BillZwicky
    Member

    You know your installer lets you pick the dir name, don’t you? =^p

    I’m not using GA, as I didn’t know it was out. I’m downloading 5.0.1 now, only 100 minutes remaining. (Using BitTorrent around here will get your machine wiped, cuz as you know only dirty pirates ever upload to the internet.)

    #256719 Reply

    Riyad Kalla
    Member

    You know your installer lets you pick the dir name, don’t you? =^p

    Did you name it that, or did you select your old M2 dir and just overwrite what was there (that could explain it).

    I’m not using GA, as I didn’t know it was out. I’m downloading 5.0.1 now, only 100 minutes remaining. (Using BitTorrent around here will get your machine wiped, cuz as you know only dirty pirates ever upload to the internet.)

    lol, sorry for the slow downloads. We quadrupled our download capacity (again) and it is getting sucker-punched right now.

    #256758 Reply

    BillZwicky
    Member

    Success! 5.0.1GA has fixed the problem! I had to uninstall 5M2 before installing 5.0.1 to get everything to work. (I didn’t see that mentioned anywhere, except for your “unzip ontop” hint.)

    FWIW, my 5.0M2 was installed fresh from your installer to a non-existent directory named at install time. The dir name might look funny, but it was a fresh install. Really! Believe me!

    #256761 Reply

    Riyad Kalla
    Member

    I believe you, and I’m happy it’s working now. THat’s the most important part.

    #261008 Reply

    Stefan
    Member

    I think the MyEclipse EMF distibution is incorrect.
    Take a closer look in any of the *2.2.0.v200606271057.jar files. The contain .jar files with the same name. I think they were intended to be directories, not jars.
    I wrote the following script to convert the jars to directories.
    This works for me. No problems in EMF projects anymore.
    My MyEclipse is:
    *** Date: Fri Oct 27 09:41:14 CEST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_04

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 5.0 Milestone 2
    Build id: 20060703-5.0-M2

    *** Eclipse details:
    Eclipse SDK

    Version: 3.2.1
    Build id: M20060921-0945

    Eclipse Graphical Editing Framework

    Version: 3.2.0.v20060626
    Build id: 20060627-0816

    Eclipse Platform

    Version: 3.2.1.r321_v20060921-b_XVA-INSQSyMtx
    Build id: M20060629-1905

    Eclipse Java Development Tools

    Version: 3.2.1.r321_v20060905-R4CM1Znkvre9wC-
    Build id: M20060921-0945

    Eclipse Project SDK

    Version: 3.2.1.r321_v20060801-tQ1w49KnTArT0FZ
    Build id: M20060921-0945

    Eclipse RCP

    Version: 3.2.1.r321_v20060801-2ekW2BxmcpPUOoq
    Build id: M20060629-1905

    Eclipse Plug-in Development Environment

    Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
    Build id: M20060921-0945

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    d28_74
    -vm
    C:\WINDOWS\system32\javaw.exe

    The script. Use at you own risk. It works for me, but …
    This should be executed from the MyEclipse extension directorys eclipse/plugins directory.
    You need to replace the call to your favorite “unzip” tool at the end.
    If you just copy & past the script, it will just echo what it would do.
    All the rems with “rem <– remove me –” have to be removed manually in order to actually “activate” the thing.
    Hope there will be a supported fix for this some time. (Is there one already?)
    Last note: I just saw that I have the M2 milestone. Will check for a newer one.

    fix_emf.cmd:

    @echo
    off
    setlocal
    for %%i in (*2.2.0.v200606271057.jar) do call :process %%i
    rem (*2.2.0.v200606271057.jar) for real
    rem (test*.jar) for test
    endlocal
    goto :EOF

    :: Sub process (filename)
    :process
    set file=%1
    echo processing %file%
    rem make backup copy
    echo cp %file% %file%.org
    rem pause
    rem <– remove me — cp %file% %file%.org
    rem renmame so that we can extract w/o overwriting
    echo ren %file% %file%.zip
    rem pause
    rem <– remove me — ren %file% %file%.zip
    rem create directory name from file name by stripping the .jar extension (%~n1)
    set extdir=%~n1
    rem create this directory
    echo mkdir %extdir%
    rem pause
    rem <– remove me — mkdir %extdir%
    rem extract into directory %extdir%
    rem CHANGEME: put your unzip tool here
    echo C:\tools\unzip -x %file%.zip -d %extdir%
    rem pause
    rem CHANGEME: put your unzip tool here
    rem <– remove me — C:\tools\unzip -x %file%.zip -d %extdir%

    :EOF
    endlocal

    #261009 Reply

    Stefan
    Member

    OK. Didn’t read the second page of this post. Will install the GA on should not need the fix. Was a good MS Shell excersise though.

Viewing 9 posts - 16 through 24 (of 24 total)
Reply To: How to install EMF?

You must be logged in to post in the forum log in