Re: Packaging Netbeans on Gentoo
Stanislav Baiduzhyi <[email protected]> Fri, 24 Nov 2017 21:46:27 +0000
| Newsgroups | gmane.comp.java.netbeans.devel |
|---|---|
| Message-ID | <CAFHiie6WPmJKv=BpUWW4pGcSOdRJqiEnXmJSLxf_Y1ENKAg0HQ@mail.gmail.com> |
--94eb2c195950b8a4cb055ec17c8a Content-Type: text/plain; charset="UTF-8" William, It seems like you are trying to do it the hard way. I tried something similar too, but it seemed to be too complicated with very little actual benefit, so I did it the easy way: https://build.opensuse.org/package/view_file/home:tuxjdk/netbeans/netbeans.spec?expand=1 Breaking the cluster is mostly replicated from actual NetBeans packages. On Fri, Nov 24, 2017 at 9:41 PM William L. Thomson Jr. <[email protected]> wrote: > Greetings fellow Netbeaners! > I have been a long time Netbeaner, going back so many years I cannot > recall when I first used Netbeans. I recall talking to a Netbeans > developer at Linux World Expo I think in 2002 or 2003, so at least back > to then. It is my primary IDE for everything, but maybe Android stuff. > Mostly Java and C, with other stuff. I do like the syntax support for > cmake. Maybe need to see about that for Gentoo ebuids, and also meson. > > Netbeans 8.2 is packaged on Gentoo using Netbeans ant build system. > That is fine, and has no issues under 1.8. Of course under 9 things > change. Also Gentoo being from source, it was difficult to get every > bit of Netbeans from source. Many aspects used pre-built shipped binary > jars. Which some of them may already be installed on the system in > newer versions. Some shipped were able to be swapped out with system, > but the entire thing is cumbersome. Not to mention its split up, but > not exactly modular. It is difficult to work with for my needs. > https://github.com/gentoo/gentoo/tree/master/dev-java > > Having been building a bunch of stuff from source not using ant. Using > Gentoo eclasses, java-pkg-simple. Which basically uses the find command > to find all source files. Then passes those to javac, and we tar it up > with jar. Basically a shell script to the extreme with python wrapper, > portage/emerge. > > Having packaged other things, jetty, large portions of eclipse and > numerous other things. I figured I would try out Netbeans. It makes > sense given my dependence. So that is underway. I have some 50+ > packaged and many more to go. I do not think I will do all modules. Not > sure about that when it exists on the system. > https://github.com/Obsidian-StudiosInc/os-xtoo/tree/master/dev-java > > Tons of work to do, lots to package, etc. But I think the outcome > should be nice. Possibly a slimmed down, optional Netbeans like exists > on no other platform. Making some progress and I think close to an > initial IDE starting. Though I know a lot of stuff will be missing > till packaged etc. Still have to figure out the clusters aspect. > > Initial work on a Netbeans eclass ,to do some of the stuff that ant was > doing during build. Processing bundles, adding resources, etc. > > https://github.com/Obsidian-StudiosInc/os-xtoo/blob/master/eclass/java-netbeans.eclass > > Getting close to starting something, but ran into my first startup > error. Pretty sure missing a jar, or something inside a jar. I have a > working 8.2 I may swap out some jars so I can see what I missed. If > anyone has any pointers much appreciated. > > I know I will be encoutering lots of odd issues. I know what I am doing > is highly abnormal. Please bear with me. I will look to address any > issues I create. Just may need some pointers on some issues like the > following exception. I was trying to get an idea via the following link. > > > http://bits.netbeans.org/8.2/javadoc/org-openide-modules/org/openide/modules/doc-files/api.html > > Any links or information will be greatly appreciated! Thanks for the > great IDE! > > > Startup exception, seems I am missing a bundle resource, or something I > haven't packaged yet. Seems like this should be in core.startup, which > I have packaged. Maybe failed on something there. > > > $ netbeans-9 > java.util.MissingResourceException: Can't find resource for bundle > org.openide.util.NbBundle$PBundle, key currentVersion at > java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:544) > at > java.base/java.util.ResourceBundle.getString(ResourceBundle.java:501) > at org.openide.util.NbBundle.getMessage(NbBundle.java:617) at > org.openide.util.NbBundle.getMessage(NbBundle.java:711) at > org.openide.util.NbBundle.getMessage(NbBundle.java:633) at > org.netbeans.core.startup.TopLogging.printSystemInfo(TopLogging.java:221) > at org.netbeans.core.startup.TopLogging.initialize(TopLogging.java:178) > at org.netbeans.core.startup.TopLogging.initialize(TopLogging.java:140) > at org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:227) > at org.netbeans.core.startup.Main.start(Main.java:216) at > org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at > java.base/java.lang.Thread.run(Thread.java:844) > > > > -- > William L. Thomson Jr. > --94eb2c195950b8a4cb055ec17c8a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">William,<div><br></div><div>It seems like you are trying t= o do it the hard way. I tried something similar too, but it seemed to be to= o complicated with very little actual benefit, so I did it the easy way:</d= iv><div><a href=3D"https://build.opensuse.org/package/view_file/home:tuxjdk= /netbeans/netbeans.spec?expand=3D1">https://build.opensuse.org/package/view= _file/home:tuxjdk/netbeans/netbeans.spec?expand=3D1</a><br></div><div><br><= /div><div>Breaking the cluster is mostly replicated from actual NetBeans pa= ckages.</div><div><br></div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr">On Fri, Nov 24, 2017 at 9:41 PM William L. Thomson Jr. <<a href= =3D"mailto:[email protected]">[email protected]</a>> wrote:<br></div><bl= ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #= ccc solid;padding-left:1ex">Greetings fellow Netbeaners!<br> I have been a long time Netbeaner, going back so many years I cannot<br> recall when I first used Netbeans. I recall talking to a Netbeans<br> developer at Linux World Expo I think in 2002 or 2003, so at least back<br> to then. It is my primary IDE for everything, but maybe Android stuff.<br> Mostly Java and C, with other stuff. I do like the syntax support for<br> cmake. Maybe need to see about that for Gentoo ebuids, and also meson.<br> <br> Netbeans 8.2 is packaged on Gentoo using Netbeans ant build system.<br> That is fine, and has no issues under 1.8. Of course under 9 things<br> change. Also Gentoo being from source, it was difficult to get every<br> bit of Netbeans from source. Many aspects used pre-built shipped binary<br> jars. Which some of them may already be installed on the system in<br> newer versions. Some shipped were able to be swapped out with system,<br> but the entire thing is cumbersome. Not to mention its split up, but<br> not exactly modular. It is difficult to work with for my needs.<br> <a href=3D"https://github.com/gentoo/gentoo/tree/master/dev-java" rel=3D"no= referrer" target=3D"_blank">https://github.com/gentoo/gentoo/tree/master/de= v-java</a><br> <br> Having been building a bunch of stuff from source not using ant. Using<br> Gentoo eclasses, java-pkg-simple. Which basically uses the find command<br> to find all source files. Then passes those to javac, and we tar it up<br> with jar. Basically a shell script to the extreme with python wrapper,<br> portage/emerge.<br> <br> Having packaged other things, jetty, large portions of eclipse and<br> numerous other things. I figured I would try out Netbeans. It makes<br> sense given my dependence. So that is underway. I have some 50+<br> packaged and many more to go. I do not think I will do all modules. Not<br> sure about that when it exists on the system.<br> <a href=3D"https://github.com/Obsidian-StudiosInc/os-xtoo/tree/master/dev-j= ava" rel=3D"noreferrer" target=3D"_blank">https://github.com/Obsidian-Studi= osInc/os-xtoo/tree/master/dev-java</a><br> <br> Tons of work to do, lots to package, etc. But I think the outcome<br> should be nice. Possibly a slimmed down, optional Netbeans like exists<br> on no other platform. Making some progress and I think close to an<br> initial IDE starting. Though I know a lot of stuff will be missing<br> till packaged etc. Still have to figure out the clusters aspect.<br> <br> Initial work on a Netbeans eclass ,to do some of the stuff that ant was<br> doing during build. Processing bundles, adding resources, etc.<br> <a href=3D"https://github.com/Obsidian-StudiosInc/os-xtoo/blob/master/eclas= s/java-netbeans.eclass" rel=3D"noreferrer" target=3D"_blank">https://github= .com/Obsidian-StudiosInc/os-xtoo/blob/master/eclass/java-netbeans.eclass</a= ><br> <br> Getting close to starting something, but ran into my first startup<br> error. Pretty sure missing a jar, or something inside a jar. I have a<br> working 8.2 I may swap out some jars so I can see what I missed. If<br> anyone has any pointers much appreciated.<br> <br> I know I will be encoutering lots of odd issues. I know what I am doing<br> is highly abnormal. Please bear with me. I will look to address any<br> issues I create. Just may need some pointers on some issues like the<br> following exception. I was trying to get an idea via the following link.<br= > <br> <a href=3D"http://bits.netbeans.org/8.2/javadoc/org-openide-modules/org/ope= nide/modules/doc-files/api.html" rel=3D"noreferrer" target=3D"_blank">http:= //bits.netbeans.org/8.2/javadoc/org-openide-modules/org/openide/modules/doc= -files/api.html</a><br> <br> Any links or information will be greatly appreciated! Thanks for the<br> great IDE!<br> <br> <br> Startup exception, seems I am missing a bundle resource, or something I<br> haven't packaged yet. Seems like this should be in core.startup, which<= br> I have packaged. Maybe failed on something there.<br> <br> <br> $ netbeans-9<br> java.util.MissingResourceException: Can't find resource for bundle<br> org.openide.util.NbBundle$PBundle, key currentVersion at<br> java.base/java.util.ResourceBundle.getObject(ResourceBundle.java:544)<br> at<br> java.base/java.util.ResourceBundle.getString(ResourceBundle.java:501)<br> at org.openide.util.NbBundle.getMessage(NbBundle.java:617) at<br> org.openide.util.NbBundle.getMessage(NbBundle.java:711) at<br> org.openide.util.NbBundle.getMessage(NbBundle.java:633) at<br> org.netbeans.core.startup.TopLogging.printSystemInfo(TopLogging.java:221)<b= r> at org.netbeans.core.startup.TopLogging.initialize(TopLogging.java:178)<br> at org.netbeans.core.startup.TopLogging.initialize(TopLogging.java:140)<br> at org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:227)<br> at org.netbeans.core.startup.Main.start(Main.java:216) at<br> org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98) at<br> java.base/java.lang.Thread.run(Thread.java:844)<br> <br> <br> <br> --<br> William L. Thomson Jr.<br> </blockquote></div> --94eb2c195950b8a4cb055ec17c8a--