using javax.script in OSGi

Posted on 2011-10-17
Last Modified: 2012-05-12
I am trying to use javax.script under OSGi. Inside the OSGi bundle I have my
script implementation (python, Ruby, ...) with the jar file in the bundle'sclasspath. But
when I install the bundle, the
new ScriptEngineManager().getEngineByExtension("py")
returns null. For python, I tried using
            PythonInterpreter interp = new PythonInterpreter();
inside the bundle activator
How do I get the script recognized?

Question by:lfrohman
    1 Comment

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Title # Comments Views Activity
    withoutTen challenge 14 68
    Is there any core JDK API for PDF Creation? 5 31
    copyEndy  challenge 15 37
    Modeling a class in java 5 22
    For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now