mazekkkk / openhab

Automatically exported from code.google.com/p/openhab
0 stars 0 forks source link

Code generation fails with classNotFoundException on Mwe2Launcher #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Dear All,
I am newbie and first time cloning any opensource. I am getting error when I am 
generating code first time. Following is the error message:

java.lang.NoClassDefFoundError: org/eclipse/emf/mwe2/launch/runtime/Mwe2Launcher
Caused by: java.lang.ClassNotFoundException: 
org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher
    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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)

I read the document IDE Setup under Community in Wiki page. and followed all 
step as mentioned on that. On step 8 I am getting above error when I try to 
generate code for "1 Generate Items Model.launch" file under 
org.openhab.model.codegen. 

Can anybody help me/guide me toward right path ?

What steps will reproduce the problem?
1. I have installer mercurial binaries
2. Created clone in D:/OpenHAB/ folder. 
3. Installed Yoxos and opened file OpenHAB.yoxos file. and followed steps.
I have Maven 3.0.4 is also installed and Jdk1.6.0_22 . 
Please let me know incase you guys need any other information.

I am sorry for asking such a basic problem problem.

Original issue reported on code.google.com by hnds...@gmail.com on 6 Feb 2013 at 2:50

GoogleCodeExporter commented 9 years ago
Hm, I do not really have a good idea what might be wrong there. In general, it 
should work and the documentation is up to date.

Could you please check whether you see the org.eclipse.emf.mwe2.launch plugin 
in the Plug-in Dependencies of the codegen project (see screenshot)?

Original comment by kai.openhab on 6 Feb 2013 at 9:14

Attachments:

GoogleCodeExporter commented 9 years ago
Yes this dependency is missing. screenshot is attached. When I start code 
generation , It get warning that error exist in almost all projects. Do you 
want to proceed. Screenshot shows error message in all project.

Original comment by hnds...@gmail.com on 7 Feb 2013 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago
Any reason/ suggestion why these dependencies are missing  and how to resolve 
it ?

Original comment by hnds...@gmail.com on 12 Feb 2013 at 8:07

GoogleCodeExporter commented 9 years ago
could you check if the target-platform is set correctly?

(Preferences->Plugin-in Development->Target Platform ... is openHAB set to 
active?)

Original comment by teichsta on 12 Feb 2013 at 8:27

GoogleCodeExporter commented 9 years ago
Hi Teichsta,
Yes target is set to OpenHAB . screenshot attached.

Original comment by hnds...@gmail.com on 12 Feb 2013 at 8:36

Attachments:

GoogleCodeExporter commented 9 years ago
could you please reload it? This seems to be an eclipse issue :-/

Regards,

Thomas E.-E.

Original comment by teichsta on 12 Feb 2013 at 8:37

GoogleCodeExporter commented 9 years ago
Hi Thomas,

reload you mean starting project from OpenHAB yoxos file ? I just started it by 
double clicking OpenHAB yoxos file. Or you mean something else?

Original comment by hnds...@gmail.com on 12 Feb 2013 at 8:45

GoogleCodeExporter commented 9 years ago
no, i meant reload the target platform (see reload button in your last 
screenshot)

Original comment by teichsta on 12 Feb 2013 at 8:46

GoogleCodeExporter commented 9 years ago
Also gave another try by File->restart but same problem . dependency is still 
missing in Plug-in dependencies.

Original comment by hnds...@gmail.com on 12 Feb 2013 at 8:50

GoogleCodeExporter commented 9 years ago
While reloading I am getting this error. should i go ahead with reloading ?

Original comment by hnds...@gmail.com on 12 Feb 2013 at 8:57

Attachments:

GoogleCodeExporter commented 9 years ago
same issue. Should I try cloning again ? I already have done it twice :( .

Original comment by hnds...@gmail.com on 12 Feb 2013 at 9:07

GoogleCodeExporter commented 9 years ago
Your error on the screenshot looks as if you have corrupted zip files in your 
target platform.
Could you completely delete the content of the .bundle_pool folder and reload 
the target platform again?

Original comment by kai.openhab on 12 Feb 2013 at 8:57

GoogleCodeExporter commented 9 years ago
Can this issue be closed?

Original comment by kai.openhab on 25 Mar 2013 at 6:42

GoogleCodeExporter commented 9 years ago
Hi Kai.. you may close it but frankly speaking it doesn't work for me , even 
after trying all the above ways.. and then I tried with new checkout with which 
I have some other issues.
sorry for all these interruptions.

Original comment by hnds...@gmail.com on 26 Mar 2013 at 11:49

GoogleCodeExporter commented 9 years ago
ok, I close it, but feel free to open new issues for your other issues (or try 
asking for help in the discussion forum first).

Original comment by kai.openhab on 27 Mar 2013 at 3:56