Hi Dilhan,
Please see my comments below.
On 30/05/2014 04:46, Buddhika Dilhan
wrote:
Hi all,
First of all I'm thanking to you for giving me a helping
hand to make this project success. thanks to david there are
no errors in examples. I'm posting my current progress below.
There
were about 30 warnings saying that “Build path specifies
execution environment JavaSE-1.6. There are no JREs
installed in the workspace that are strictly compatible with
this environment. ” so, I corrected it by modifing the java
build path to my current jre 1.7.0_25.
then
there were about 30 plugin problems saying that “The JRE
container on the classpath is not a perfect match to the
'JavaSE-1.6' execution environment ”. so I had to modify the
manifest file of every project to
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
then another 30 problems were
emerged saying that I have to modify the build
properties. After modifing the build properties by
adding the line
jre.compilation.profile = JavaSE-1.6
I
could remove those.
You should not do that.
The way we understand it is that the minimal environment is
JavaSE-1.6.
Please do not change it and live with the Eclipse warning for now.
Alternatively, it looks like that multiple values can be specified
for Bundle-RequiredExecutionEnvironment, e.g.:
Bundle-RequiredExecutionEnvironment: JavaSE-1.6, JavaSE-1.7
We will discuss this internally.
Also, in Eclipse go to Preferences | Compiler and select the
Compiler compliance level to 1.6
There
are were errors in org.eclipse.kura.linux.usb. Importing
following packages to javaxUsb.java class fixed that.
import javax.usb.*;
import com.ibm.jusb.*;
I pulled the latest changes today and these appear to already
contain these imports:
import javax.usb.*;
import javax.usb.util.*;
import com.ibm.jusb.*;
import com.ibm.jusb.os.*;
import com.ibm.jusb.util.*;
still there are 109 errors and
273 warnings to go. :D
There
are errors in org.eclipse.kura.core project. The import
org.eclipse.paho cannnot be resolved.
org.eclipse.paho.* packages are exported by the
mqtt-client_0.4.0.jar bundle in
target-definition/equinox_3.8.1/repository/plugins.
In Eclipse expand Plug-in Dependencies in the Kura core project. It
should be present.
Please attach a screenshot of your Project Explorer in Eclipse
expanding the problematic items.
There
are errors in org.eclipse.kura.protocol.can project. The
import de.entropia.can cannot be resolved.
all
the remaining errors are in that two projects.
The entropia issue can be fixed by building the 'can' profile:
https://github.com/eclipse/kura/issues/3#issuecomment-43920427
and reimporting org.eclipse.kura.protocol.can in the workspace
These
are the replies for previous messages.
>I assume that building Kura with Maven succeeded and
you have problems/errors after importing the projects in
Eclipse.
Is
this correct?
Yes,
the build was a success. But when importing it to workspace
it gave bunch of errors.
>Can
you describe your environment in detail
(OS/Java/Maven/Eclipse versions)?
I'm
using ubuntu 14.04
oracle
jdk 1.7.0_25
maven
3.0.5
eclipse
juno EE (not SE) – does that the problem
I use Juno too on Ubuntu 12.04. This is my configuration:
mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /opt/apache-maven-3.0.4
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /opt/jdk1.7.0_45/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-54-generic", arch: "amd64",
family: "unix"
java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
>
Other errors are saying that it cannot resolve the import.
I'm working on that. If you have any idea
>
please tell me.
>Please
try pulling the latest changes from github and see if they
fix the issue.
I
tried it for several time, but the errors remained same.
I
tried very hard to get this project running. but still there
are some errors. I'm very glad if you can give me some help.
I've cloned a fresh kura repository today and used a new Eclipse
workspace and, other than for the can project, I don't have any
errors in Eclipse.
Did you import the kura projects with Import | Maven | Existing
Maven Projects?
Did you set the target platform in Eclipse? Try setting it again and
clean and rebuild the projects from Eclipse.
Try cloning the kura repository again and use a new Eclipse
workspace
_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/kura-dev
--
Cristiano De Alti
Principal
Software Engineer
direct:
+39 0433 485468
EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via Fratelli
Solari, 3/a | 33020 Amaro UD | Italy | Tel. +39.
0433 485411 | Fax +39. 0433 485499 |
Cap. Soc.
8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 |
REA
Udine 196115
www.eurotech.com
____________________________________
Il presente messaggio ed ogni suo allegato
sono da intendersi inviati esclusivamente agli
effettivi destinatari e potrebbero essere soggetti a
restrizioni
legali. Se avete ricevuto questo messaggio per errore
vi invitiamo a darne immediata notifica al mittente e
cancellarlo dal vostro sistema. Qualsiasi altro uso di
questo messaggio da parte vostra e' strettamente
proibito.
This e-mail, and any file
attached to it, is meant only for the intended
recipient
of the transmission and may be a communication
privileged by law. If you have received it in error,
please notify the sender immediately and delete the
original from your system. Any other use of this
e-mail by you is strictly forbidden.
____________________________________
Per favore,
pensate all’ambiente prima di stampare questa
e-mail.
Please
consider the environment before printing this
e-mail.
|