{"id":83,"date":"2014-05-16T06:16:02","date_gmt":"2014-05-16T06:16:02","guid":{"rendered":"http:\/\/vkrastev1blog.com\/?p=83"},"modified":"2014-05-16T14:57:00","modified_gmt":"2014-05-16T14:57:00","slug":"how-to-set-up-the-classpath-in-jar-manifest","status":"publish","type":"post","link":"https:\/\/vkrastev1blog.com\/2014\/05\/16\/how-to-set-up-the-classpath-in-jar-manifest\/","title":{"rendered":"Como configurar o classpath no jar manifest"},"content":{"rendered":"<p><span class=\"postbody\">Deve interromper exatamente ap\u00c3\u00b3s 70 caracteres. Caso contr\u00c3\u00a1rio, a linha seguinte n\u00c3\u00a3o ser\u00c3\u00a1 tratada como uma continua\u00c3\u00a7\u00c3\u00a3o da anterior. Deveria haver um <span class=\"postbody\">espa\u00c3\u00a7o inicial em todas as linhas quebradas<\/span>, <span class=\"postbody\">com um espa\u00c3\u00a7o inicial para cada linha diferente do que tem &#8220;Caminho de classe:&#8221;. E n\u00c3\u00a3o se esque\u00c3\u00a7a de uma nova linha no final de tudo! <\/span>Eis um exemplo do manifesto.<\/span><\/p>\n<pre>Manifest-Version: 1.0\r\nMain-Class: xyz.HelloWorldMain\r\nClass-Path: .\/lib\/log4j-1.2.15.jar .\/lib\/commons-logging-1.1.1.jar .\/l\r\n ib\/jstl-1.2.jar .\/lib\/jstl.jar .\/lib\/log4j-1.2.15.jar .\/lib\/org.sprin\r\n gframework.aop-3.0.2.RELEASE.jar .\/lib\/org.springframework.asm-3.0.2.\r\n RELEASE.jar .\/lib\/org.springframework.aspects-3.0.2.RELEASE.jar .\/lib\r\n \/org.springframework.beans-3.0.2.RELEASE.jar .\/lib\/org.springframewor\r\n k.context-3.0.2.RELEASE.jar .\/lib\/org.springframework.context.support\r\n -3.0.2.RELEASE.jar .\/lib\/org.springframework.core-3.0.2.RELEASE.jar .\r\n \/lib\/org.springframework.expression-3.0.2.RELEASE.jar .\/lib\/org.sprin\r\n gframework.instrument-3.0.2.RELEASE.jar .\/lib\/org.springframework.ins\r\n trument.tomcat-3.0.2.RELEASE.jar .\/lib\/org.springframework.jdbc-3.0.2\r\n .RELEASE.jar .\/lib\/org.springframework.jms-3.0.2.RELEASE.jar .\/lib\/or\r\n g.springframework.orm-3.0.2.RELEASE.jar .\/lib\/org.springframework.oxm\r\n -3.0.2.RELEASE.jar .\/lib\/org.springframework.test-3.0.2.RELEASE.jar .\r\n \/lib\/org.springframework.transaction-3.0.2.RELEASE.jar .\/lib\/org.spri\r\n ngframework.web-3.0.2.RELEASE.jar .\/lib\/org.springframework.web.portl\r\n et-3.0.2.RELEASE.jar .\/lib\/org.springframework.web.servlet-3.0.2.RELE\r\n ASE.jar .\/lib\/org.springframework.web.struts-3.0.2.RELEASE.jar .\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Deve interromper exatamente ap\u00c3\u00b3s 70 caracteres. Caso contr\u00c3\u00a1rio, a linha seguinte n\u00c3\u00a3o ser\u00c3\u00a1 tratada como uma continua\u00c3\u00a7\u00c3\u00a3o da anterior. Deveria haver um espa\u00c3\u00a7o inicial em todas as linhas quebradas, com um espa\u00c3\u00a7o inicial para cada linha diferente do que tem &#8220;Caminho de classe:&#8221;. E n\u00c3\u00a3o se esque\u00c3\u00a7a de uma nova linha no final de tudo! [&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 set the classpath in jar manifest","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":[473612,234010259,234010260,234010264,234010262,234010266],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-java","tag-caminho-de-classe","tag-jar-do-caminho-de-classe","tag-manifesto-do-caminho-de-classe","tag-como-definir-o-caspath","tag-manifesto-jar","tag-definir-caminho-de-classe-no-jar"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4CoHV-1l","jetpack-related-posts":[{"id":47,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/how-to-sign-jars-signing-jars-for-use-in-applets\/","url_meta":{"origin":83,"position":0},"title":"Como assinar potes. Assinatura de Jars para utiliza\u00c3\u00a7\u00c3\u00a3o em Applets.","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"As the Browsers now want the Jars to be signed it happens oft that man have to sign a Jar himself. Here is a Manual how to sign a Jar. First you have to install Java SDK. http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/index.html?ssSourceSiteId=otnjp Install the JDK from the list for the envitonment you use. This\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":55,"url":"https:\/\/vkrastev1blog.com\/2014\/05\/11\/important-shell-script-commands-which-are-oft-used\/","url_meta":{"origin":83,"position":1},"title":"Comandos de script Shell importantes que s\u00c3\u00a3o frequentemente usados","author":"vkrastev2014","date":"11.05.2014","format":false,"excerpt":"Here is a list of some important shell commands: ---- Using Screen command screen -ls -- for a list of avaliable active screens screen -x .... - the Name from -ls output to join to this active screen Go out of the Screen with 'ctrl a+d' without stopping it ----\u2026","rel":"","context":"In &quot;Artigos sobre todos os outros t\u00c3\u00b3picos que n\u00c3\u00a3o est\u00c3\u00a3o nos t\u00c3\u00b3picos principais&quot;","block_context":{"text":"Artigos sobre todos os outros t\u00c3\u00b3picos que n\u00c3\u00a3o est\u00c3\u00a3o nos t\u00c3\u00b3picos principais","link":"https:\/\/vkrastev1blog.com\/category\/outros\/"},"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":83,"position":2},"title":"Gen\u00c3\u00a9ricos Java explicados resumidamente com exemplos","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":247,"url":"https:\/\/vkrastev1blog.com\/2024\/04\/11\/how-to-create-pdf-from-html-or-image-using-java-pdfbox-framework\/","url_meta":{"origin":83,"position":3},"title":"Como criar PDF a partir de HTML ou imagem utilizando a framework java pdfbox","author":"vkrastev2014","date":"11.04.2024","format":false,"excerpt":"How to create PDF from HTML or image using java pdfbox framework 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>\u2026","rel":"","context":"In &quot;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2024\/04\/Java-PDFBox_-HTML-and-Image-to-PDF.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":208,"url":"https:\/\/vkrastev1blog.com\/2022\/04\/03\/maven-excluding-jars-from-war-file\/","url_meta":{"origin":83,"position":4},"title":"Maven excluindo Jars do ficheiro WAR","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;Java&quot;","block_context":{"text":"Java","link":"https:\/\/vkrastev1blog.com\/category\/java\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2728,"url":"https:\/\/vkrastev1blog.com\/2026\/10\/14\/dark-energy-and-matter-in-the-universe-or-a-manifestation-of-the-power-of-the-lord-god\/","url_meta":{"origin":83,"position":5},"title":"Energia Escura e Mat\u00c3\u00a9ria no Universo ou uma Manifesta\u00c3\u00a7\u00c3\u00a3o do Poder do Senhor Deus","author":"vkrastev2014","date":"14.10.2026","format":false,"excerpt":"Dark Energy and Matter in the Universe or a Manifestation of the Power of the Lord God? A Scientific and Philosophical Article from a Christian Perspective * Abstract Modern cosmology confronts humanity with one of the most profound questions about the nature of the Universe: What is dark energy and\u2026","rel":"","context":"In &quot;Artigos dedicados \u00c3\u00a0 B\u00c3\u00adblia e sobre o esp\u00c3\u00adrito e o corpo&quot;","block_context":{"text":"Artigos dedicados \u00c3\u00a0 B\u00c3\u00adblia e sobre o esp\u00c3\u00adrito e o corpo","link":"https:\/\/vkrastev1blog.com\/category\/%d1%81%d1%82%d0%b0%d1%82%d0%b8%d0%b8-%d0%bf%d0%be%d1%81%d0%b2%d0%b5%d1%82%d0%b5%d0%bd%d0%b8-%d0%bd%d0%b0-%d0%b1%d0%b8%d0%b1%d0%bb%d0%b8%d1%8f%d1%82%d0%b0-%d0%b8-%d0%b7%d0%b0-%d0%b4%d1%83%d1%85%d0%b0\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/vkrastev1blog.com\/wp-content\/uploads\/2026\/10\/xo6_pg-ni94xfas9mcsevoc5rsm-3ndbueqaerit8-kbwop9hmt9_pisdq8hdlb-iscvxzhcntdxkxck5rmvvbyo7dwh8pvxfpr-fbpaswu9q0dxfby1vdzsvp2jtvimtdk_izkfkdlzonebgctf0smxzzmu_nflb8z46tncnns81pr6hbzp7txac_.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/83","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=83"}],"version-history":[{"count":5,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/posts\/83\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vkrastev1blog.com\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}