{"id":148,"date":"2020-05-20T10:44:33","date_gmt":"2020-05-20T09:44:33","guid":{"rendered":"http:\/\/www.mikropunto.org\/?p=148"},"modified":"2024-12-03T23:11:43","modified_gmt":"2024-12-03T22:11:43","slug":"quick-fix-for-netbeans-update-fail","status":"publish","type":"post","link":"https:\/\/mikropunto.org\/?p=148","title":{"rendered":"Quick fix for netbeans update fail"},"content":{"rendered":"\n<p>If you are stuck with an old Java distribution (&lt; 8) , you might see Netbeans fail when it tries to connect to its repositories with this message:<\/p>\n\n\n\n<p><strong>Unable to connect to the Certified Plugins because of Received fatal alert: protocol_version<\/strong><\/p>\n\n\n\n<p>This is happening because before Java 8 the default version for TLS is 1.0 and the repo server is expecting TLS 1.2<\/p>\n\n\n\n<p>Fortunately, since Java 1.6 r1.1.1 you can use the TLS newer version; just look for the Netbeans launch script (mine is \/opt\/netbeans\/bin\/netbeans) and edit the last paragraph:<\/p>\n\n\n\n<pre class=\"wp-block-verse\">[...]<br>eval launchNbexec \\ <br>\u00a0\u00a0 --jdkhome '\"$netbeans_jdkhome\"' \\<br>\u00a0\u00a0         --branding nb \\         <br>\u00a0 --clusters '\"$netbeans_clusters\"' \\         <br>\u00a0 -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade \\         <br>\u00a0 -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense \\         <br>\u00a0 <strong>-J-Dhttps.protocols=TLSv1.2 \\         ${netbeans_default_options} \\         <\/strong><br>\u00a0 '\"$@\"'<br>;;<br>esac<br><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you are stuck with an old Java distribution (&lt; 8) , you might see Netbeans fail when it tries to connect to its repositories with this message: Unable to connect to the Certified Plugins because of Received fatal alert: &hellip; <a href=\"https:\/\/mikropunto.org\/?p=148\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,2],"tags":[],"class_list":["post-148","post","type-post","status-publish","format-standard","hentry","category-english","category-gnu-linux"],"_links":{"self":[{"href":"https:\/\/mikropunto.org\/index.php?rest_route=\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikropunto.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikropunto.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikropunto.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mikropunto.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":2,"href":"https:\/\/mikropunto.org\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":150,"href":"https:\/\/mikropunto.org\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/150"}],"wp:attachment":[{"href":"https:\/\/mikropunto.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikropunto.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikropunto.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}