問題タブ [jsa]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - Speed up application start by adding own application classes to classes.jsa
To speed up the startup time of the JVM, the Sun developers decided it is a good idea to precompile the standard runtime classes for a platform during installation of the JVM. These precompiled classes can be found e.g. at:
$JAVA_HOME\jre\bin\client\classes.jsa
My company currently develops a Java standalone application which brings its own JRE, so it would be a fantastic option to speed up our application start time by adding our own application classes to this jsa file, too.
I don't believe the JSA file was created by magic, so: How is it created? And how can I trick the JVM into incorporating my own classes?
EDIT: I already found out the following:
The classes.jsa is created by the command
The list of classes to incorporate in the dump can be found in $JAVA_HOME/jre/lib/classlist
.
I even managed to add my own classes here (and to add them into the rt.jar for java to find them), and to generate my own checksum below the classlist file.
The final problem is: Only classes in the packages java, com.sun, and org.w3c seem to be recognized, if I leave the same classes in their original packages, they won't be loaded. I searched the whole OpenJDK source for pointer about this, but it seems to have something to do with protection domains. If someone is interested enough in this topic and knowledgeable enough, please add some pointers for me to investigaete further.
java - クラスデータ共有アーカイブ(classes.jsa)に保存されているJavaコードはネイティブにコンパイルされていますか、それともバイトコードですか?
クラスデータ共有アーカイブを(実行してjava -Xshare:dump
)作成すると、バイトコードがネイティブコードにコンパイルされるかどうかを知りたいと思っています。
クラスデータ共有の内部に関するドキュメントは多くありません。私がリンクしたページには、java -Xshare:dump
クラスのセットをシステムjarファイルからプライベート内部表現にロードし、その表現をファイルにダンプします。
しかし、このコードがコンパイルされているかどうかについては何も述べていません。
(関連する可能性があります:classes.jsaに独自のアプリケーションクラスを追加することにより、アプリケーションの開始を高速化します)
php - populate 関数の使用時にクエリから結果を除外する
質問があります
これは正常に機能し、次または前のボタンをクリックしてレコードに移動することに基づいて設定された $cnt に基づいてファイルを設定します。$filter は機能しません。どのフィルターが設定されていても、すべてのレコードが返されます。これを修正する方法。
だから私がやりたいことは、最初からレコードを削除することです(したがって、合計を16で表示する代わりに、下にフィルターを付けた4つのレコードがある場合、12を表示してスクロールできます-テーブルからデータを移動できないためフロントエンドユーザーが編集できます。