{"id":65818,"date":"2021-07-15T04:10:07","date_gmt":"2021-07-15T08:10:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/scjp-classpath-and-jar-java-short-notes-scjp-blog\/"},"modified":"2022-05-10T20:04:09","modified_gmt":"2022-05-11T00:04:09","slug":"scjp-classpath-and-jar-java-short-notes-scjp-blog","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=65818","title":{"rendered":"SCJP: Classpath and Jar #Java Short Notes #SCJP #Blog"},"content":{"rendered":"<p>Java certification exams like SCJP test your knowledge about java classpath. <a href='http:\/\/mindprod.com\/jgloss\/classpath.html' target='new' rel=\"noopener\">Check here for an excellent resource on the topic .<\/a> <\/p>\n<p>System classpath<\/p>\n<p>We can specify classpath in the command line or make use of a `system&#8217; class path. The IDEs have their own way of maintaining class paths. System class paths will be used by both the Java compiler and the JVM in the absence of specific instructions.<\/p>\n<p> Set Linux System Classpath:<br \/>CLASSPATH=\/myclasses\/myclasses.jar;export CLASSPATH <\/p>\n<p>Windows: <br \/>set CLASSPATH=c:myclassesmyclasses.jar<\/p>\n<p>For permanent result, in Linux, put the commands in the file .bashrc in your home directory. On Windows 2000\/NT,  set it from `Control Panel&#8217;, System, Environment Variables. <\/p>\n<p>You can also specify .jar files full of your required classes in your classpath.<\/p>\n<p>CLASSPATH=\/usr\/j2ee\/j2ee.jar:.;export CLASSPATH <\/p>\n<p>where the `.&#8217; indicates `current directory&#8217;. <\/p>\n<p>From command line, if you want to add more paths to the classpath use:<\/p>\n<p>Linux:javac -classpath $CLASSPATH:dir1:dir2 &#8230;<\/p>\n<p>Windows:javac -classpath %CLASSPATH%;dir1:dir2 &#8230;<\/p>\n<p>if you have spaces in your path use double quote to concatenate words.<\/p>\n<p><a href='http:\/\/www.kevinboone.com\/classpath.html' target='new' rel=\"noopener\">Also check this resource<\/a><\/p>\n<p> From: http:\/\/sitestree.com\/?p=4849<br \/> Categories:Java Short Notes, SCJP, Blog<br \/>Tags:<br \/> Post Data:2013-06-05 14:27:56<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java certification exams like SCJP test your knowledge about java classpath. Check here for an excellent resource on the topic . System classpath We can specify classpath in the command line or make use of a `system&#8217; class path. The IDEs have their own way of maintaining class paths. System class paths will be used &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=65818\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917,1954],"tags":[],"class_list":["post-65818","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","category-scjp-ocjp","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":65854,"url":"http:\/\/bangla.sitestree.com\/?p=65854","url_meta":{"origin":65818,"position":0},"title":"SCJP: More Rules #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"java -classpath gFolder\/Game.jar civilization.java: In such command, -classpath will override (replace) CLASSPATH environment variable. java -classpath gFolder\/Game.jar civilization.java: if both gFolder and current directory contain Game.jar then the jar file under gFolder will be used. If you want java compiler to recognize your jar file, either you have to mention\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22132,"url":"http:\/\/bangla.sitestree.com\/?p=22132","url_meta":{"origin":65818,"position":1},"title":"SCJP: Sun Certified Java Programmer: All that you need to know #SCJP","author":"Sayed","date":"March 10, 2021","format":false,"excerpt":"Introduction to Sun Certified Java Programmer Certification CourseJava : SCJP: Important ResourcesJAVA: Some links: useful for exams like scjp\/scjaSCJP Essential KnowledgeSCJP Practice ExamsSCJP Training: Lesson 1: Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65858,"url":"http:\/\/bangla.sitestree.com\/?p=65858","url_meta":{"origin":65818,"position":2},"title":"SCJP Essential Knowledge #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"int x=5; String y=\"3\"; System.out.print(x + 1 + y); Output: 63 When there is no live reference to an object, the object becomes eligible for garbage collection. The concrete interface method implementation must be public. When a class implements Comparator, it must implement a compare method. When a class implements\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":74773,"url":"http:\/\/bangla.sitestree.com\/?p=74773","url_meta":{"origin":65818,"position":3},"title":"Are you interested in becoming a Java Developer and OCJP","author":"Sayed","date":"May 31, 2022","format":false,"excerpt":"Are you interested in becoming a Java Developer and OCJP? OCJP: Oracle Certified Java Programmer? Are you interested in a Java based career track? Short Notes on: OCJP: Oracle Certified Java Programmer Certification. Written long back in the SCJP time. These are for quick review purposes, not really to learn\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67418,"url":"http:\/\/bangla.sitestree.com\/?p=67418","url_meta":{"origin":65818,"position":4},"title":"Apache Axis: Installation: Application Deployment: SOAP Message Monitoring #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Apache Axis: Installation: Application Deployment: SOAP Message Monitoring ..... .... .... .... .... ... ... ... ... Video Tutorial Explaining the Concepts in this Short-Note JAX-RPC is about SOA, SOAP, XML, Remote communications Apache Axis implements JAX-RPC API. Hence, when you code to this API, your application will run with\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67404,"url":"http:\/\/bangla.sitestree.com\/?p=67404","url_meta":{"origin":65818,"position":5},"title":"How to create apache axis based SOA application #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Tools required\/Used: J2SE6, Tomcat 6.0.16, Apache Axis 1.4, mailapi.jar and activation.jar. Tools can be downloaded from Apache Axis Based SOA Application Development DID NOT MENTION in the Video: You have to keep tools.jar from J2SE6 in the classpath or make it accessible from the application anyhow Set your CATALINA_HOME and\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65818"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65818\/revisions"}],"predecessor-version":[{"id":74747,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65818\/revisions\/74747"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65818"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}