|
|
Re: class file not getting exported while exporting bundle with external jars [message #1728864 is a reply to message #1728484] |
Fri, 08 April 2016 06:16 |
Said Ucar Messages: 56 Registered: June 2015 |
Member |
|
|
Hello Sindhu,
When you import an external .jar to the project, let's say "libs" folder in project class-path, you have to include these *.jar files to the both "build.properties" and "MANIFEST.MF" file. I follow these steps, when I want to import external *.jar files to my Kura project,
1- Create a folder, "libs" to project classpath.
2- Place *.jar files to "libs" folder
3- Open MANIFEST.MF file and switch the "runtime" tabs
4- In this tab, there is a section called "Classpath", you can click 'Add..' button and simply select the jar files under "libs" folder you just created step 1, and finally save MANIFEST.MF file.
After that, when you export your bundle, the external jar files also exported in bundle. If, still you have an error like
"The type javax.microedition.io.Connection cannot be resolved. It is indirectly referenced from required .class files"
I suggest you to complete Example projects [1], In Serial-Example [2], there is a solution for this problem,
Quote:Under Options, select the checkbox Use class files compiled in the workspace in addition to the checkboxes already enabled, and click Finish.
Thanks,
Said.
[1] = http://eclipse.github.io/kura/
[2] = http://eclipse.github.io/kura/doc/serial-example.html
|
|
|
|
Powered by
FUDForum. Page generated in 0.02121 seconds