( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10184087520require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10244116512include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10244116512get_header( $name = ???, $args = ??? ).../single.php:10
60.10244116728locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10244116824load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10244117368require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10254124776wp_head( ).../header.php:18
100.10254124776do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10254124992WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10254124992WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10274128408wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10274128408do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10274128624WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10274128624WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10284130512twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.10294132032wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.10294132032WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.10294132032WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.10304132032_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.10304132352wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.10304138736trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0000484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.10184087520require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.10244116512include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.10244116512get_header( $name = ???, $args = ??? ).../single.php:10
60.10244116728locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.10244116824load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.10244117368require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.10254124776wp_head( ).../header.php:18
100.10254124776do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.10254124992WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.10254124992WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.10274128408wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.10274128408do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.10274128624WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.10274128624WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.10284130512twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.12834139840wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.12834139840WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.12834139840WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.12834139840_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.12834140160wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.12834140384trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

Running JAR-Packaged Software

Running JAR-Packaged Software

Now that you’ve learned how to create JAR files, how do you actually run the code that you’ve packaged? Consider these three scenarios:

  • Your JAR file contains an applet that is to be run inside a browser.

  • Your JAR file contains an application that is to be invoked from the command line.

  • Your JAR file contains code that you want to use as an extension.

This section will cover the first two situations. A separate trail in the tutorial on the extension mechanism covers the use of JAR files as extensions.


Applets Packaged in JAR Files


To invoke any applet from an HTML file for running inside a browser, you need to use the APPLET tag. For more information, see the Applets lesson. If the applet is bundled as a JAR file, the only thing you need to do differently is to use the ARCHIVE parameter to specify the relative path to the JAR file.

As an example, let’s use (again!) the TicTacToe demo applet that ships with the JavaTM Development Kit. The APPLET tag in the HTML file that calls the demo looks like this:


<applet code=TicTacToe.class
width=120 height=120>
</applet>
If the TicTacToe demo were packaged in a JAR file named TicTacToe.jar, you could modify the APPLET tag with the simple addition of an ARCHIVE parameter:
<applet code=TicTacToe.class
archive=”TicTacToe.jar”
width=120 height=120>
</applet>
The ARCHIVE parameter specifies the relative path to the JAR file that contains TicTacToe.class. This example assumes that the JAR file and the HTML file are in the same directory. If they’re not, you would need to include the JAR file’s relative path in the ARCHIVE parameter’s value. For example, if the JAR file was one directory below the HTML file in a directory called applets, the APPLET tag would look like this:
<applet code=TicTacToe.class
archive=”applets/TicTacToe.jar”
width=120 height=120>
</applet>

JAR Files as Applications


You can run JAR-packaged applications with the Java interpreter. The basic command is:
java -jar jar-file
The -jar flag tells the interpreter that the application is packaged in the JAR file format. You can only specify one JAR file, which must contain all the application-specific code.

Before you execute this command make sure the runtime environment has an information of which class within the JAR file is the application’s entry point.


To indicate which class is the application’s entry point, you must add a Main-Class header to the JAR file’s manifest. The header takes the form:


Main-Class: classname
The header’s value, classname, is the name of the class that’s the application’s entry point.

For more information, see the Setting an Application’s Entry Point section.


When the Main-Class is set in the manifest file, you can run the application from the command line:


java -jar app.jar

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.