• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

OSGI working example

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have started learning OSGI and I want working example for that(already tested )..

Anyone can help me ?

by the way I have tried several examples but I was unable to run them correctly.
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What, exactly, have you tried, and how, exactly, did that not work?

Also, which implementation are you using? Apache Felix, for example, has numerous examples readily available online: http://felix.apache.org/site/apache-felix-osgi-tutorial.html and http://felix.apache.org/site/apache-felix-application-demonstration.html
 
Suresh Khant
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Moores for your reply ,

I have tried this example http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html?page=2

and i have got this error

 
Tim Moores
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're a beginner with OSGI I wouldn't start by mucking around with as complex an application as Eclipse. Start with a simple example instead that doesn't have any other external dependencies. The Felix examples I pointed you to accomplish that nicely.
 
Suresh Khant
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Moores for your reply,


I have did the following steps
1. create Activator.java file
2. generate the jar file "BundleExample1.jar"
3. start it using the command
start file:/home/test/Desktop/BundleExample1.jar

but am getting the following error






manifest.mf



Activator.java
 
Tim Moores
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you're using an old JRE version. Recompile the sources with the JDK/JRE with which you intend to run them.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic