noushadali / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

openHAB Runtime.launch JRE 1.6 or 1.7 ? #440

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  following wiki IDESetup instructions using an eclipse with more than one 
JREs 
2.
3.

What is the expected output? What do you see instead?

1) Could not build, had to correct some bundles to all use the same JRE (v1.7), 
cause some were picked up by the JRE1.6 one eventhough I have 1.7 set as 
default in the workspace.
I guess there is nothing you can do about that, do not know if it is a good 
idea to set everything to 1.7 for no reason. However you could put a small note 
in wiki, for developers like me, that might not realise what's happening 
immediately.

2)
openHAB Runtime.launch JRE  container is JavaSE-1.6 (line 17) had to change it 
to 1.7 for server to start since I am building with 1.7.
I guess that most people have only one JRE in eclipse (1.7) so this has no 
effect to them.

What version of the product are you using? On what operating system?
OSX 10.8.4 on a retina macbook.
JRE 1.7 had visual problems in eclipse with retina, thats why I am also using 
1.6

Please provide any additional information below.
(great work guys! congratulations)

Original issue reported on code.google.com by mnikifor...@gmail.com on 11 Sep 2013 at 9:29

GoogleCodeExporter commented 9 years ago
I tried everything again from scratch to confirm/tide up my findings.
So, using eclipse with two JREs (1.6 & 1.7) upon import, many projects are set 
to use JRE 1.6. This happens with "codegen" project as well, so step 3 
(generate script model) fails with exceptions.

So one needs to set org.openhab.model.codegen JRE to 1.7 in order to build 
everything correctly.

And for runing the server, one needs to change openHAB Runtime.launch  
JRE_CONTAINER to 1.7

Original comment by mnikifor...@gmail.com on 12 Sep 2013 at 9:25

GoogleCodeExporter commented 9 years ago

Original comment by kai.openhab on 5 Dec 2013 at 10:27

GoogleCodeExporter commented 9 years ago
has been migrated to https://github.com/openhab/openhab/issues/645

Original comment by teichsta on 10 Dec 2013 at 10:40