• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • Introduction
      • How to install bnd
      • Guided Tour Workspace & Projects
      • bnd / bndlib Features and JAR Wrapping Techniques
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Concepts
      • Background
      • Best practices
    • Build and Development
      • Build
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • bnd CLI Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • Bundle-RequiredExecutionEnvironment ::= ee-name ( ',' ee-name )*

    Prev Next
    Header
    The Bundle-RequiredExecutionEnvironment contains a comma-separated list of execution environ- ments that must be present on the OSGi framework. See Execution Environment on page 44. This header is deprecated.

    • Example: Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0

    • Values: OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6,JavaSE-1.7,JavaSE/compact1-1.8,JavaSE/compact2-1.8,JavaSE/compact3-1.8,JavaSE-1.8,JavaSE-9,JavaSE-10,JavaSE-11,JavaSE-12,JavaSE-13,JavaSE-14,JavaSE-15,JavaSE-16,JavaSE-17,JavaSE-18,JavaSE-19,JavaSE-20,JavaSE-21,JavaSE-22,JavaSE-23,JavaSE-24,JavaSE-25,JavaSE-26,JavaSE-27,JavaSE-28,JavaSE-29,JavaSE-30,CDC-1.0/Foundation-1.0,CDC-1.1/Foundation-1.1,PersonalJava-1.1,PersonalJava-1.2,CDC-1.0/PersonalBasis-1.0,CDC-1.0/PersonalJava-1.0,CDC-1.1/PersonalBasis-1.1,CDC-1.1/PersonalJava-1.1

    • Pattern: .*



    Bundle-RequiredExecutionEnvironment

    The Bundle-RequiredExecutionEnvironment header lists the execution environments required by the bundle, separated by commas. These environments must be present on the OSGi framework for the bundle to resolve. This header is deprecated in recent OSGi specifications.

    Example:

    Bundle-RequiredExecutionEnvironment: JavaSE-1.8, OSGi/Minimum-1.2
    

    This header is optional and mainly used for legacy compatibility.

    	verifyListHeader(Constants.BUNDLE_REQUIREDEXECUTIONENVIRONMENT, EENAME, false);
    
    	final static Pattern	EENAME	= Pattern.compile("CDC-1\\.0/Foundation-1\\.0" + "|CDC-1\\.1/Foundation-1\\.1"
    										+ "|OSGi/Minimum-1\\.[1-9]" + "|JRE-1\\.1" + "|J2SE-1\\.2" + "|J2SE-1\\.3"
    										+ "|J2SE-1\\.4" + "|J2SE-1\\.5" + "|JavaSE-1\\.6" + "|JavaSE-1\\.7"
    										+ "|JavaSE-1\\.8" + "|PersonalJava-1\\.1" + "|PersonalJava-1\\.2"
    										+ "|CDC-1\\.0/PersonalBasis-1\\.0" + "|CDC-1\\.0/PersonalJava-1\\.0");
    	final static EE[]			ees								= {
    		new EE("CDC-1.0/Foundation-1.0", V1_3, V1_1),
    		new EE("CDC-1.1/Foundation-1.1", V1_3, V1_2),
    		new EE("OSGi/Minimum-1.0", V1_3, V1_1),
    		new EE("OSGi/Minimum-1.1", V1_3, V1_2),
    		new EE("JRE-1.1", V1_1, V1_1), //
    		new EE("J2SE-1.2", V1_2, V1_1), //
    		new EE("J2SE-1.3", V1_3, V1_1), //
    		new EE("J2SE-1.4", V1_3, V1_2), //
    		new EE("J2SE-1.5", V1_5, V1_5), //
    		new EE("JavaSE-1.6", V1_6, V1_6), //
    		new EE("PersonalJava-1.1", V1_1, V1_1), //
    		new EE("JavaSE-1.7", V1_7, V1_7), //
    		new EE("JavaSE-1.8", V1_8, V1_8), //
    		new EE("PersonalJava-1.1", V1_1, V1_1), //
    		new EE("PersonalJava-1.2", V1_1, V1_1), new EE("CDC-1.0/PersonalBasis-1.0", V1_3, V1_1),
    		new EE("CDC-1.0/PersonalJava-1.0", V1_3, V1_1), new EE("CDC-1.1/PersonalBasis-1.1", V1_3, V1_2),
    		new EE("CDC-1.1/PersonalJava-1.1", V1_3, V1_2)
    															};
    

    TODO Needs review - AI Generated content

Prev Next
Search
    • Home