Currently, there are two command-line tools that make use of keystore implementations (keytool and jarsigner), and also a GUI-based tool named Policy Tool.
The next tool we'll look at is the jarsigner tool; this tool creates signed JAR files. ... if you have your own keystore implementation, jarsigner will be able to use it.
Learn how to add JarSigner to your Windows secure development arsenal in just three steps. We’ll walk you through the process step by step on Windows 10.
The jarsigner command is a utility provided by Java to sign and verify Java archive (JAR) files. This command is commonly used in the process of digital signing...
It's in the bin folder of your java JDK install (Java SE). If you only have the JRE installed you probably don't have it.
10 Şubat 2013
106 kişi değerlendirdi
6 yorum
{"2_9dn5":{"state":{"logo":{"href":"//yandex.com.tr","isForeign":true},"form":{"action":"/search/","searchLabel":"Bul","hiddenInputs":[{"name":"lr","value":21074}]},"actions":{"advancedSearch":{"checked":false,"ariaLabel":"Gelişmiş arama"},"moreButtonProps":{"ariaLabel":"Daha fazla"},"cbir":{"name":"cbir","label":"Поиск по картинке","infoUrl":"//yandex.ru/promo/photosearch/index?source=landingdesk","isMacOS":false}},"userSection":{"loggedIn":false,"loginProps":{"loginUrl":"https://passport.yandex.com.tr/auth?retpath=%2F&origin=serp_desktop_auth_new","loginText":"Giriş yap","burgerAriaLabel":"Menü"}},"navigation":{"tabs":[{"id":"www","label":"Arama","url":"//yandex.com.tr","params":{"source":"tabbar"},"target":""},{"id":"images","label":"Görsel","url":"//yandex.com.tr/gorsel/search","params":{"text":"[$query]","noreask":"[$noreask]","nomisspell":"[$nomisspell]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"video","label":"Video","url":"//yandex.com.tr/video/search","params":{"text":"[$query]","noreask":"[$noreask]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"maps","label":"Haritalar","url":"//yandex.com.tr/harita","params":{"text":"[$query]","source":"serp_navig"}},{"id":"translate","label":"Çeviri","url":"//ceviri.yandex.com.tr","params":{"text":"[$query]","from":"tabbar"}}],"selectedTabId":"www"},"context":{"query":"jarsigner","reqid":"1720723537985074-14115970891810902478-balancer-l7leveler-kubr-yp-klg-283-BAL","noreask":"1","lr":"21074","counters":{"type":"b","data":{"$header":"0_3ejz000","logo":"0_3ejz001","login":"0_3ejz003","usermenu":"0_3ejz004","market-cart":"0_3ejz006","more-button":"0_3ejz007","cbir":"0_3ejz008","$navigation":"0_3ejz009","item":"0_3ejz00i","tab-www":"0_3ejz00b","tab-images":"0_3ejz00d","tab-video":"0_3ejz00f","tab-maps":"0_3ejz00h","tab-translate":"0_3ejz00j"}}},"loggedIn":false,"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"0_3ejw01-0-1"},"ui":"desktop","service":"web","reqid":"1720723537985074-14115970891810902478-balancer-l7leveler-kubr-yp-klg-283-BAL","fast":{"name":"header-desktop"}}}}},"type":"header-desktop"},"2_3ej0":{"state":{"answersUrl":"https://stackoverflow.com/questions/12135699/where-is-jarsigner#answers","type":"fact","tabsOptions":[{"id":"question","text":"Soru"},{"id":"bestAnswer","text":"En iyi yanıt"},{"id":"moreAnswers","text":"10 yanıt daha","shortText":"Daha fazla"}],"tabContents":{"question":{"construct":[{"type":"paragraph","content":[{"type":"text","content":"I have the Android SDK installed on both a Linux machine using open SuSE 12.1. I've used both machines to successfully build Android apps many times and sign them both with a debug key for testing and a release key from my own keystore, so it should be somewhere on each machine."}]},{"type":"paragraph","content":[{"type":"text","content":"Using the command"}]},{"type":"code","content":[{"type":"text","content":[{"type":"text","content":"jarsigner"}]}]},{"type":"paragraph","content":[{"type":"text","content":"Returns a command not found error on both machines, however. I've looked in the Android SDK folder, JDK folder on Windows, and /usr/lib64/jvm/ but it's not anywhere I've looked."}]},{"type":"paragraph","content":[{"type":"text","content":"I assume it must be under a different name. I've also run:"}]},{"type":"code","content":[{"type":"text","content":[{"type":"text","content":"find -name jarsigner"}]}]},{"type":"paragraph","content":[{"type":"text","content":"over the whole system on the Linux box with no success."}]}],"footerProps":{"date":1701896108,"numLiked":71,"numCommented":1}},"bestAnswer":{"construct":[{"type":"paragraph","content":[{"type":"text","content":"It's in the bin folder of your java JDK install (Java SE). If you only have the JRE installed you probably don't have it."}]}],"footerProps":{"date":1360500219,"numLiked":106,"numCommented":6}},"moreAnswers":[{"construct":[{"type":"paragraph","content":[{"type":"text","content":"%JAVA_HOME%\\bin\\jarsigner"}]},{"type":"paragraph","content":[{"type":"text","content":"You can find jarsigner there. Install jdk first."}]}],"footerProps":{"date":1448527237,"numLiked":21,"numCommented":3}},{"construct":[{"type":"paragraph","content":[{"type":"text","content":"For posterity's sake, if you are trying to actually use jarsigner to sign a jar file (such as that of an applet) with a keystore, you'll need to reference jarsigner while running the command from the folder that your keystore is in: "}]},{"type":"code","content":[{"type":"text","content":[{"type":"text","content":"cd "},{"type":"text","color":"string","content":"\"C:\\Program Files\\Java\\jre(version#)\\bin\""}]}]},{"type":"paragraph","content":[{"type":"text","content":"then"}]},{"type":"code","content":[{"type":"text","content":[{"type":"text","color":"string","content":"\"C:\\Program Files\\Java\\jdk(version#)\\bin\\jarsigner.exe\""},{"type":"text","content":" -keystore mykeystore (PATH TO YOUR .JAR)\\MyJarFile.jar alias"}]}]},{"type":"paragraph","content":[{"type":"text","content":"The above might be obvious, but it took me a few tries because I was trying to call jarsigner while inside the JDK folder, which had no knowledge of where my keystore was (in the jre directory!), so I hope this will help those who would like to see a usable syntax for that situation."}]}],"footerProps":{"date":1383617578,"numLiked":11,"numCommented":0}}]},"organic":{"faviconProps":{"src":"https://favicon.yandex.net/favicon/v2/https://stackoverflow.com","size":"m","pageNumber":0,"index":0},"title":"Where is \u0007[jarsigner\u0007]?","pathProps":{"items":[{"url":"https://stackoverflow.com/questions/12135699/where-is-jarsigner","text":"stackoverflow.com"},{"url":"https://stackoverflow.com/questions/12135699/where-is-jarsigner","text":"where-is-jarsigner"}]},"faviconPosition":0,"subtitlePosition":1,"linkProps":{"url":"https://stackoverflow.com/questions/12135699/where-is-jarsigner"},"hostTitle":"stackoverflow.com","description":""},"extralinksProps":{"hidden":true,"directions":["bottom-end"],"items":[{"variant":"reportFeedback","reportFeedback":{"feature":"Блок ответов для разработчиков","title":"Bu yanıtta yanlış olan nedir?","checkBoxLabels":[{"value":"Yanıt sorguya uygun değil"},{"value":"Yanıt hatalı"},{"value":"Yanıttaki bilgiler eksik"},{"value":"Diğer"}]}}]},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3ejw0c-0-1"},"ui":"desktop","service":"web","reqid":"1720723537985074-14115970891810902478-balancer-l7leveler-kubr-yp-klg-283-BAL","fast":{"name":"article"}}}}},"type":"article"},"2_3ej1":{"state":{"linksGroups":[{"type":"geo","links":[{"label":"Columbus","title":"Columbus","url":"//yandex.com.tr/tune/geo","logNode":{"name":"region"},"target":"_self","a11yLabel":"Bölgeniz Columbus","needRetpath":true}]},{"type":"feedback","links":[{"label":"Hata bildir","logNode":{"name":"feedback","attrs":{"behaviour":{"type":"dynamic"}}}}]},{"type":"settings","links":[{"label":"Ayarlar","url":"//yandex.com.tr/tune/search","logNode":{"name":"settings"},"target":"_self","needRetpath":true}]},{"type":"company","links":[{"label":"Hakkımızda","url":"https://company.yandex.com.tr","logNode":{"name":"about"},"target":"_blank"},{"label":"Ticari teklifler","url":"/search/direct?text=jarsigner&filters_docs=direct_cm","logNode":{"name":"commercial"},"target":"_blank"},{"label":"Kariyer","url":"//yandex.com.tr/jobs/?utm_source=serp_turkie&utm_medium=footerlink&utm_content=career","logNode":{"name":"vacancy"},"target":"_blank"},{"label":"Kullanım lisansı","url":"//yandex.com.tr/legal/termsofuse/","logNode":{"name":"license"},"target":"_blank"},{"label":"Gizlilik Politikası","url":"//yandex.com.tr/legal/confidential/","logNode":{"name":"confidential"},"target":"_blank"}],"a11yHidden":true}],"reportFeedbackProps":{"feature":"Подвал","title":"Hata bildir","checkBoxLabels":[]},"isSearchApp":false,"hasExtralinks":true,"limitingSelector":".AliceFabButton","baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3ejw0d-0-1"},"ui":"desktop","service":"web","reqid":"1720723537985074-14115970891810902478-balancer-l7leveler-kubr-yp-klg-283-BAL"}}}},"type":"serp-footer"},"2_3ej2":{"state":{"conditionLoadList":{"marketCart":false,"highchartsHighstock":false,"advProductGallery":false,"musicPlayer":false,"ecomRates":false,"photoViewer":false,"darkmodeChangeDrawer":true},"reportFeedbackBaseProps":{"initEmail":"","metaFields":{"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","userTestids":"186144,13962,287509,1055646,338390,1046003,777793,1053282,1063689,1061658,1053436,1055379,1047580,912284","yandexuid":"7148246261720723537","uid":"0","queryText":"jarsigner","reqid":"1720723537985074-14115970891810902478-balancer-l7leveler-kubr-yp-klg-283-BAL","searchSlices":[],"userRegionName":"Columbus","userRegionId":"20815"}},"extralinksPopupProps":{"abuseLink":"https://twitter.yandex.com.tr/search/abuse?sign=c5523400619cb589a42fcfa7850a0f44&keyno=0"},"isLoggedIn":false,"userMenuDialogProps":{"flag":"skin,feedback","host":"yandex.com.tr","lang":"tr","project":"serp","queryParams":{"utm_source":"search"},"retpath":"https%3A%2F%2Ftwitter.yandex.com.tr%2Fsearch%2F%3Flr%3D21074%26noreask%3D1%26rq%3D1%26serp-reload-from%3Drec_bottom%26text%3Djarsigner%26ncrnd%3D88290","tld":"com.tr"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3ejw0e-0-1"},"ui":"desktop","service":"web","reqid":"1720723537985074-14115970891810902478-balancer-l7leveler-kubr-yp-klg-283-BAL","fast":{"name":"lazy-load"}}}}},"type":"lazy-load"}}