Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: share code among multiple projects

I have different projects in Eclipse (java me midlets) which all need to share code. Currently I duplicate things, but this is not ideal. What is the best way to do this? Thanks!

EDIT: I tried to add another project in the Build Path, but then, when running the Midlet in a Emulator, I get the following ERROR:

Uncaught exception java/lang/NoClassDefFoundError: clientlibrary/ov9292/Ov9292Client.

like image 955
hsmit Avatar asked Jan 04 '11 15:01

hsmit


1 Answers

You can create a Java Project which will contain the shared code and have other projects reference it. When deploying you can pack this project as a separate jar file.

like image 114
jny Avatar answered Sep 22 '22 22:09

jny