{"id":47,"date":"2014-05-11T10:14:05","date_gmt":"2014-05-11T10:14:05","guid":{"rendered":"http:\/\/vkrastev1blog.com\/?p=47"},"modified":"2014-05-12T02:37:00","modified_gmt":"2014-05-12T02:37:00","slug":"how-to-sign-jars-signing-jars-for-use-in-applets","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/how-to-sign-jars-signing-jars-for-use-in-applets\/","title":{"rendered":"Jar \u306b\u7f72\u540d\u3059\u308b\u65b9\u6cd5\u3002\u30a2\u30d7\u30ec\u30c3\u30c8\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e Jar \u3078\u306e\u7f72\u540d\u3002"},"content":{"rendered":"<p>\u30d6\u30e9\u30a6\u30b6\u30fc\u306f Jar \u306b\u7f72\u540d\u3059\u308b\u3053\u3068\u3092\u8981\u6c42\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4eba\u9593\u304c\u81ea\u5206\u3067 Jar \u306b\u7f72\u540d\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001Jar \u306b\u7f72\u540d\u3059\u308b\u65b9\u6cd5\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001Java SDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp\" rel=\"nofollow\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp<\/a><\/p>\n<p>\u4f7f\u7528\u3059\u308b\u74b0\u5883\u306b\u5fdc\u3058\u3066\u30ea\u30b9\u30c8\u304b\u3089 JDK \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u306f Windows \u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306b\u4f5c\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002 Java \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001JAVA_HOME \u5909\u6570\u3092\u8a2d\u5b9a\u3057\u3001\u30d1\u30b9\u306b JAVA\/bin \u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u7f6e\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30ad\u30fc\u30b9\u30c8\u30a2\u3068\u30ad\u30fc\u306e\u30da\u30a2\u3092\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 C:\\Users\\username \u3068\u3057\u3066\u30db\u30fc\u30e0 \u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u79fb\u52d5\u3057\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>Java \u30ad\u30fc\u30b9\u30c8\u30a2\u3068\u30ad\u30fc \u30da\u30a2\u3092\u751f\u6210\u3059\u308b<\/strong>\n<pre>keytool -genkey -alias mydomain -keyalg RSA -keystore .keystore<\/pre>\n<p>\u3044\u304f\u3064\u304b\u306e\u8cea\u554f\u306b\u7b54\u3048\u308b\u3068\u3001\u6700\u7d42\u7684\u306b .keystore \u3068\u3044\u3046\u540d\u524d\u306e\u30ad\u30fc\u30b9\u30c8\u30a2\u3068\u30ad\u30fc \u30da\u30a2\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u30ad\u30fc\u30b9\u30c8\u30a2\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u91cd\u8981\u3067\u3042\u308a\u3001\u5f8c\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u66f8\u304d\u7559\u3081\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001Jar \u306e\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u30fc\u306b\u79fb\u52d5\u3057\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>jarsigner -sigfile SIG -signedjar SignedApp.jar jar-to-sign.jar alias\r\njarsigner -verify SignedApp.jar<\/pre>\n<p>\u30a8\u30a4\u30ea\u30a2\u30b9\u306e\u5834\u6240\u3068\u540c\u69d8\u306b\u3001\u30ad\u30fc\u30b9\u30c8\u30a2\u306e\u751f\u6210\u3067\u5165\u529b\u3057\u305f\u30a8\u30a4\u30ea\u30a2\u30b9\u3092\u5165\u529b\u3057\u307e\u3059\u3002 Jar-to-sign \u306f\u3001\u7f72\u540d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b jar \u540d\u3067\u3059\u3002<br \/>\n\u691c\u8a3c\u306f\u3001jar \u304c\u5b9f\u969b\u306b\u6b63\u5e38\u306b\u7f72\u540d\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u304a\u3057\u307e\u3044\u3002<\/p>\n<p>\u30b5\u30a4\u30f3\u304a\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u30d6\u30e9\u30a6\u30b6\u306f Jar \u306b\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3001 [&hellip;]<\/p>\n","protected":false},"author":65283547,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"How to sign Jars. Signing Jars.","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1017],"tags":[232319076,232319074,2829783,232319073,232319071],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-1017","tag-jar","tag-java","tag-2829783","tag-232319073","tag-232319071"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-L","jetpack-related-posts":[{"id":208,"url":"https:\/\/vkrastev1blog.com\/2022\/04\/03\/maven-excluding-jars-from-war-file\/","url_meta":{"origin":47,"position":0},"title":"Maven \u304c WAR \u30d5\u30a1\u30a4\u30eb\u304b\u3089 Jar \u3092\u9664\u5916\u3059\u308b","author":"vkrastev2014","date":"03.04.2022","format":false,"excerpt":"I have had a problem to exclude some Jars from War File with maven. You can do it using maven-war-plugin <project> ... <build> <plugins> <plugin> <artifactId>maven-war-plugin<\/artifactId> <version>3.3.2<\/version> <configuration> <packagingExcludes>WEB-INF\/lib\/xxxx*.jar<\/packagingExcludes> <\/configuration> <\/plugin> <\/plugins> <\/build> ... <\/project>","rel":"","context":"In &quot;\u30b8\u30e3\u30ef&quot;","block_context":{"text":"\u30b8\u30e3\u30ef","link":"https:\/\/vkrastev1blog.com\/category\/%e3%82%b8%e3%83%a3%e3%83%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":83,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/16\/how-to-set-up-the-classpath-in-jar-manifest\/","url_meta":{"origin":47,"position":1},"title":"JAR\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u3067\u30af\u30e9\u30b9\u30d1\u30b9\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5","author":"vkrastev2014","date":"16.05.2014","format":false,"excerpt":"You must break after exactly 70 characters. Otherwise the next line is not going to be treated as a continuation from the previous. There should be a leading space in all the wrapped lines, with a leading space for every line different from that with \"Class-path:\". And don't forget a\u2026","rel":"","context":"In &quot;\u30b8\u30e3\u30ef&quot;","block_context":{"text":"\u30b8\u30e3\u30ef","link":"https:\/\/vkrastev1blog.com\/category\/%e3%82%b8%e3%83%a3%e3%83%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":247,"url":"https:\/\/vkrastev1blog.com\/2024\/04\/11\/how-to-create-pdf-from-html-or-image-using-java-pdfbox-framework\/","url_meta":{"origin":47,"position":2},"title":"Java pdfbox \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3057\u3066 HTML \u307e\u305f\u306f\u753b\u50cf\u304b\u3089 PDF \u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","author":"vkrastev2014","date":"11.04.2024","format":false,"excerpt":"Following example code here: In pom.xml insert or get the jar files and add them to the java project if you don't use maven <repositories> <repository> <id>jitpack.io<\/id> <url>https:\/\/jitpack.io<\/url> <\/repository> <\/repositories> <!-- https:\/\/mvnrepository.com\/artifact\/org.apache.pdfbox\/pdfbox --> <dependency> <groupId>org.apache.pdfbox<\/groupId> <artifactId>pdfbox<\/artifactId> <version>3.0.2<\/version> <\/dependency> <!-- https:\/\/mvnrepository.com\/artifact\/com.github.hkirk\/java-html2image --> <dependency> <groupId>com.github.hkirk<\/groupId> <artifactId>java-html2image<\/artifactId> <version>0.9<\/version> <\/dependency> and Java code here\u2026","rel":"","context":"In &quot;\u30b8\u30e3\u30ef&quot;","block_context":{"text":"\u30b8\u30e3\u30ef","link":"https:\/\/vkrastev1blog.com\/category\/%e3%82%b8%e3%83%a3%e3%83%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":217,"url":"https:\/\/vkrastev1blog.com\/2022\/05\/20\/eclipse-how-to-use-the-jpa-static-metamodel-classes-while-writing-criteria-queries-in-hibernate\/","url_meta":{"origin":47,"position":3},"title":"Eclipse Hibernate \u3067\u6761\u4ef6\u30af\u30a8\u30ea\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b JPA \u9759\u7684\u30e1\u30bf\u30e2\u30c7\u30eb \u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","author":"vkrastev2014","date":"20.05.2022","format":false,"excerpt":"When you use Maven you have to add in your POM following dependency: <dependency> <groupId>org.hibernate<\/groupId> <artifactId>hibernate-jpamodelgen<\/artifactId> <version>5.3.7.Final<\/version> <\/dependency> Now you have to add folder target\\generated-sources\\annotations to your classpath as by default, the classes will be generated in this folder only. You go in Project Build Path -> Configure Build Path\u2026","rel":"","context":"In &quot;\u30b8\u30e3\u30ef&quot;","block_context":{"text":"\u30b8\u30e3\u30ef","link":"https:\/\/vkrastev1blog.com\/category\/%e3%82%b8%e3%83%a3%e3%83%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":129,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/26\/new-gpu-bitcoin-miner-is-there-named-diamantminer-how-to-install-on-windows\/","url_meta":{"origin":47,"position":4},"title":"\u65b0\u3057\u3044 GPU Bitcoin Miner \u306f DiamantMiner \u3068\u3044\u3046\u540d\u524d\u3067\u5b58\u5728\u3057\u307e\u3059\u3002 Windows \u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5","author":"vkrastev2014","date":"26.05.2014","format":false,"excerpt":"New GPU Bitcoin Miner is there named DiamantMiner. How to install on Windows I have tried the new bitcoin miner and I find it very good. What you should do to install it on Windows is described here. How to build and install DiamantMiner requires the SDK for Java Version\u2026","rel":"","context":"In &quot;\u305d\u306e\u4ed6&quot;","block_context":{"text":"\u305d\u306e\u4ed6","link":"https:\/\/vkrastev1blog.com\/category\/%e3%81%9d%e3%81%ae%e4%bb%96\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":80,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/13\/eclipse-java-code-complition-not-working\/","url_meta":{"origin":47,"position":5},"title":"Eclipse \/ Java \u30b3\u30fc\u30c9\u88dc\u5b8c\u304c\u6a5f\u80fd\u3057\u306a\u3044","author":"vkrastev2014","date":"13.05.2014","format":false,"excerpt":"Try restoring the default options in 'Windows > Preferences > Java > Editor > Content Assist > Advanced' An example of the kind of data you see in this preference screen, however not necessarily what you currently have. That was the only way that worked for me. I restored my\u2026","rel":"","context":"In &quot;\u30b8\u30e3\u30ef&quot;","block_context":{"text":"\u30b8\u30e3\u30ef","link":"https:\/\/vkrastev1blog.com\/category\/%e3%82%b8%e3%83%a3%e3%83%af\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/users\/65283547"}],"replies":[{"embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":3,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/47\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}