{"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":"L\u00c3\u00a0m th\u00e1\u00ba\u00bf n\u00c3\u00a0o \u00c4\u2018\u00e1\u00bb\u0192 k\u00c3\u00bd v\u00c3\u00a0o l\u00e1\u00bb\u008d. K\u00c3\u00bd c\u00c3\u00a1c l\u00e1\u00bb\u008d \u00c4\u2018\u00e1\u00bb\u0192 s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng trong Applet."},"content":{"rendered":"<p>V\u00c3\u00ac b\u00c3\u00a2y gi\u00e1\u00bb\u009d Tr\u00c3\u00acnh duy\u00e1\u00bb\u2021t mu\u00e1\u00bb\u2018n c\u00c3\u00a1c L\u00e1\u00bb\u008d \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c k\u00c3\u00bd n\u00c3\u00aan \u00c4\u2018i\u00e1\u00bb\u0081u th\u00c6\u00b0\u00e1\u00bb\u009dng x\u00e1\u00ba\u00a3y ra l\u00c3\u00a0 ng\u00c6\u00b0\u00e1\u00bb\u009di \u00c4\u2018\u00c3\u00a0n \u00c3\u00b4ng ph\u00e1\u00ba\u00a3i t\u00e1\u00bb\u00b1 m\u00c3\u00acnh k\u00c3\u00bd v\u00c3\u00a0o L\u00e1\u00bb\u008d.<\/p>\n<p>\u00c4\u0090\u00c3\u00a2y l\u00c3\u00a0 H\u00c6\u00b0\u00e1\u00bb\u203ang d\u00e1\u00ba\u00abn c\u00c3\u00a1ch k\u00c3\u00bd m\u00e1\u00bb\u2122t c\u00c3\u00a1i l\u00e1\u00bb\u008d.<\/p>\n<p>\u00c4\u0090\u00e1\u00ba\u00a7u ti\u00c3\u00aan b\u00e1\u00ba\u00a1n ph\u00e1\u00ba\u00a3i c\u00c3\u00a0i \u00c4\u2018\u00e1\u00ba\u00b7t Java SDK.<\/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>C\u00c3\u00a0i \u00c4\u2018\u00e1\u00ba\u00b7t JDK t\u00e1\u00bb\u00ab danh s\u00c3\u00a1ch cho m\u00c3\u00b4i tr\u00c6\u00b0\u00e1\u00bb\u009dng b\u00e1\u00ba\u00a1n s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng.<\/p>\n<p>H\u00c6\u00b0\u00e1\u00bb\u203ang d\u00e1\u00ba\u00abn n\u00c3\u00a0y \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c th\u00e1\u00bb\u00b1c hi\u00e1\u00bb\u2021n cho ng\u00c6\u00b0\u00e1\u00bb\u009di d\u00c3\u00b9ng Windows. \u00c4\u0090\u00e1\u00ba\u00b7t bi\u00e1\u00ba\u00bfn JAVA_HOME v\u00c3\u00a0 \u00c4\u2018\u00e1\u00ba\u00b7t th\u00c6\u00b0 m\u00e1\u00bb\u00a5c JAVA\/bin v\u00c3\u00a0o \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u009dng d\u00e1\u00ba\u00abn \u00c4\u2018\u00e1\u00bb\u0192 s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng c\u00c3\u00a1c l\u00e1\u00bb\u2021nh Java.<\/p>\n<p>B\u00c3\u00a2y gi\u00e1\u00bb\u009d b\u00e1\u00ba\u00a1n c\u00c3\u00b3 th\u00e1\u00bb\u0192 t\u00e1\u00ba\u00a1o kho kh\u00c3\u00b3a v\u00c3\u00a0 c\u00e1\u00ba\u00b7p kh\u00c3\u00b3a c\u00e1\u00bb\u00a7a m\u00c3\u00acnh. \u00c4\u0090i\u00e1\u00bb\u0081u h\u00c6\u00b0\u00e1\u00bb\u203ang \u00c4\u2018\u00e1\u00ba\u00bfn th\u00c6\u00b0 m\u00e1\u00bb\u00a5c ch\u00c3\u00adnh c\u00e1\u00bb\u00a7a b\u00e1\u00ba\u00a1n d\u00c6\u00b0\u00e1\u00bb\u203ai d\u00e1\u00ba\u00a1ng C:\\Users\\username v\u00c3\u00a0 th\u00e1\u00bb\u00b1c hi\u00e1\u00bb\u2021n l\u00e1\u00bb\u2021nh sau trong b\u00e1\u00ba\u00a3ng \u00c4\u2018i\u00e1\u00bb\u0081u khi\u00e1\u00bb\u0192n.<\/p>\n<ul>\n<li><strong>T\u00e1\u00ba\u00a1o kho kh\u00c3\u00b3a Java v\u00c3\u00a0 c\u00e1\u00ba\u00b7p kh\u00c3\u00b3a<\/strong>\n<pre>keytool -genkey -alias mydomain -keyalg RSA -keystore .keystore<\/pre>\n<p>B\u00e1\u00ba\u00a1n n\u00c3\u00aan tr\u00e1\u00ba\u00a3 l\u00e1\u00bb\u009di m\u00e1\u00bb\u2122t s\u00e1\u00bb\u2018 c\u00c3\u00a2u h\u00e1\u00bb\u008fi v\u00c3\u00a0 cu\u00e1\u00bb\u2018i c\u00c3\u00b9ng b\u00e1\u00ba\u00a1n s\u00e1\u00ba\u00bd c\u00c3\u00b3 \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c kho kh\u00c3\u00b3a \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c t\u00e1\u00ba\u00a1o c\u00c3\u00b3 t\u00c3\u00aan l\u00c3\u00a0 .keystore v\u00c3\u00a0 c\u00e1\u00ba\u00b7p kh\u00c3\u00b3a. B\u00e1\u00ba\u00a1n n\u00c3\u00aan ghi l\u00e1\u00ba\u00a1i m\u00e1\u00ba\u00adt kh\u00e1\u00ba\u00a9u c\u00e1\u00bb\u00a7a kho kh\u00c3\u00b3a v\u00c3\u00ac n\u00c3\u00b3 quan tr\u00e1\u00bb\u008dng v\u00c3\u00a0 s\u00e1\u00ba\u00bd \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng sau \u00c4\u2018\u00c3\u00b3.<\/p>\n<p>B\u00c3\u00a2y gi\u00e1\u00bb\u009d h\u00c3\u00a3y \u00c4\u2018i\u00e1\u00bb\u0081u h\u00c6\u00b0\u00e1\u00bb\u203ang \u00c4\u2018\u00e1\u00ba\u00bfn th\u00c6\u00b0 m\u00e1\u00bb\u00a5c ch\u00e1\u00bb\u00a9a Jars c\u00e1\u00bb\u00a7a b\u00e1\u00ba\u00a1n v\u00c3\u00a0 th\u00e1\u00bb\u00b1c hi\u00e1\u00bb\u2021n c\u00c3\u00a1c l\u00e1\u00bb\u2021nh sau trong b\u00e1\u00ba\u00a3ng \u00c4\u2018i\u00e1\u00bb\u0081u khi\u00e1\u00bb\u0192n:<\/p>\n<pre>jarsigner -sigfile SIG -signedjar SignedApp.jar jar-to-sign.jar alias\r\njarsigner -verify SignedApp.jar<\/pre>\n<p>Nh\u00c6\u00b0 \u00e1\u00bb\u0178 v\u00e1\u00bb\u2039 tr\u00c3\u00ad b\u00c3\u00ad danh, h\u00c3\u00a3y \u00c4\u2018\u00e1\u00ba\u00b7t b\u00c3\u00ad danh m\u00c3\u00a0 b\u00e1\u00ba\u00a1n \u00c4\u2018\u00c3\u00a3 nh\u00e1\u00ba\u00adp b\u00e1\u00bb\u0178i Th\u00e1\u00ba\u00bf h\u00e1\u00bb\u2021 kho kh\u00c3\u00b3a. Jar-to-sign l\u00c3\u00a0 t\u00c3\u00aan jar b\u00e1\u00ba\u00a1n c\u00e1\u00ba\u00a7n k\u00c3\u00bd.<br \/>\nVi\u00e1\u00bb\u2021c x\u00c3\u00a1c minh \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c th\u00e1\u00bb\u00b1c hi\u00e1\u00bb\u2021n \u00c4\u2018\u00e1\u00bb\u0192 x\u00c3\u00a1c minh jar \u00c4\u2018\u00c3\u00a3 th\u00e1\u00bb\u00b1c s\u00e1\u00bb\u00b1 \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c k\u00c3\u00bd th\u00c3\u00a0nh c\u00c3\u00b4ng.<\/p>\n<p>Th\u00e1\u00ba\u00bf th\u00c3\u00b4i.<\/p>\n<p>Ch\u00c3\u00bac m\u00e1\u00bb\u00abng k\u00c3\u00bd k\u00e1\u00ba\u00bft.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>V\u00e0 thanh gi\u00e1 \u00c4\u00b8\u00c3\u00a2y l\u00e0 l\u00c3\u00a0 H\u00c6\u00b0\u00e1\u00bb\u00efng d\u00e1\u00ebn cach k\u00c3\u00bd m\u00e1\u00bb\u2122t c\u00e1i l\u00e1\u00bb. SDK Java. <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> C\u00e1i \u00c4\u2018\u00e1\u00ba\u00b7t JDK t\u00e1\u00bb \u00ab danh s\u00e1ch cho c\u00e1i tr\u00c6\u00b0\u00e1\u00bbng b\u00e1 s\u00e1\u00bb d\u00e1\u00bb\u00a5ng. [&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_seo_llms_txt_always_include":false,"_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-java","tag-cach-ky-vao-lo","tag-lo-chu-ky-java","tag-kho-khoa","tag-ky-lo","tag-lo-ky-ket"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-L","jetpack-related-posts":[{"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":0},"title":"Eclipse c\u00c3\u00a1ch s\u00e1\u00bb\u00ad d\u00e1\u00bb\u00a5ng c\u00c3\u00a1c l\u00e1\u00bb\u203ap si\u00c3\u00aau m\u00c3\u00b4 h\u00c3\u00acnh t\u00c4\u00a9nh JPA trong khi vi\u00e1\u00ba\u00bft c\u00c3\u00a1c truy v\u00e1\u00ba\u00a5n ti\u00c3\u00aau ch\u00c3\u00ad trong Hibernate","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;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"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":"C\u00c3\u00a1ch thi\u00e1\u00ba\u00bft l\u00e1\u00ba\u00adp \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u009dng d\u00e1\u00ba\u00abn l\u00e1\u00bb\u203ap trong t\u00e1\u00bb\u2021p k\u00c3\u00aa khai jar","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;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"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":2},"title":"C\u00c3\u00b4ng c\u00e1\u00bb\u00a5 khai th\u00c3\u00a1c Bitcoin GPU m\u00e1\u00bb\u203ai c\u00c3\u00b3 t\u00c3\u00aan DiamantMiner. C\u00c3\u00a1ch c\u00c3\u00a0i \u00c4\u2018\u00e1\u00ba\u00b7t tr\u00c3\u00aan Windows","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;C\u00c3\u00a1c b\u00c3\u00a0i vi\u00e1\u00ba\u00bft v\u00e1\u00bb\u0081 t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 kh\u00c3\u00a1c kh\u00c3\u00b4ng thu\u00e1\u00bb\u2122c c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 ch\u00c3\u00adnh&quot;","block_context":{"text":"C\u00c3\u00a1c b\u00c3\u00a0i vi\u00e1\u00ba\u00bft v\u00e1\u00bb\u0081 t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 kh\u00c3\u00a1c kh\u00c3\u00b4ng thu\u00e1\u00bb\u2122c c\u00c3\u00a1c ch\u00e1\u00bb\u00a7 \u00c4\u2018\u00e1\u00bb\u0081 ch\u00c3\u00adnh","link":"https:\/\/vkrastev1blog.com\/category\/cac-bai-viet-ve-tat-ca-cac-chu-de-khac-khong-thuoc-cac-chu-de-chinh\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":189,"url":"https:\/\/vkrastev1blog.com\/2022\/03\/24\/exclude-pom-dependency-from-all-dependencies-in-java-project-eclipse\/","url_meta":{"origin":47,"position":3},"title":"Lo\u00e1\u00ba\u00a1i tr\u00e1\u00bb\u00ab s\u00e1\u00bb\u00b1 ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c pom kh\u00e1\u00bb\u008fi t\u00e1\u00ba\u00a5t c\u00e1\u00ba\u00a3 c\u00c3\u00a1c ph\u00e1\u00bb\u00a5 thu\u00e1\u00bb\u2122c trong Java Project Eclipse","author":"vkrastev2014","date":"24.03.2022","format":false,"excerpt":"I have had a problem to exclude a dependency from all dependencies in POM file. If you dont use Eclipse you have to put exlusioin clauses on all dependencies in POM file for this dependency. I use Eclipse and you can do following. Open the Project in Eclipse in Package\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/26\/java-generics-explained-in-short-form-with-examples\/","url_meta":{"origin":47,"position":4},"title":"C\u00c3\u00a1c kh\u00c3\u00a1i ni\u00e1\u00bb\u2021m chung v\u00e1\u00bb\u0081 Java \u00c4\u2018\u00c6\u00b0\u00e1\u00bb\u00a3c gi\u00e1\u00ba\u00a3i th\u00c3\u00adch d\u00c6\u00b0\u00e1\u00bb\u203ai d\u00e1\u00ba\u00a1ng ng\u00e1\u00ba\u00afn g\u00e1\u00bb\u008dn k\u00c3\u00a8m theo c\u00c3\u00a1c v\u00c3\u00ad d\u00e1\u00bb\u00a5","author":"vkrastev2014","date":"26.05.2014","format":false,"excerpt":"Please see this FAQ for more Information: http:\/\/www.angelikalanger.com\/GenericsFAQ\/JavaGenericsFAQ.html#SECTION1 Here in short form some importent points\u00a0from this FAQ. Example (of a generic type): class Pair<X,Y>\u00a0 {\u00a0 \u00a0 private X first; \u00a0 private Y second; \u00a0 public Pair(X a1, Y a2) { \u00a0\u00a0\u00a0 first\u00a0 = a1; \u00a0\u00a0\u00a0 second = a2; \u00a0 }\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":224,"url":"https:\/\/vkrastev1blog.com\/2022\/06\/01\/eclipse-problem-by-changing-git-password\/","url_meta":{"origin":47,"position":5},"title":"S\u00e1\u00bb\u00b1 c\u00e1\u00bb\u2018 Eclipse b\u00e1\u00ba\u00b1ng c\u00c3\u00a1ch thay \u00c4\u2018\u00e1\u00bb\u2022i m\u00e1\u00ba\u00adt kh\u00e1\u00ba\u00a9u GIT","author":"vkrastev2014","date":"01.06.2022","format":false,"excerpt":"I have had a problem by changing the GIT password in Eclipse. Eclipse could not change the password in the secure storage and I couldn't use GIT anymore. You schould do following: Eclipse go to Preferences -> General -> Security -> Secure storage and in Contents tab delete \"Default Secure\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"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}]}}