Summary: | dev-util/netbeans UI design view broken | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Brendan Jurd <direvus> |
Component: | [OLD] Java | Assignee: | Miroslav Šulc <fordfrog> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | java, richard.kenney |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info output |
Description
Brendan Jurd
2012-12-28 08:52:09 UTC
do you have the issue with upstream netbeans too? i just downloaded http://download.netbeans.org/netbeans/7.2.1/final/zip/netbeans-7.2.1-201210100934-ml.zip and ran following command on the jar files but it did not find the class: for file in `find -name "*.jar"`; do echo $file; unzip -l $file | grep ElementTraversal; done following command shows nothing too: unzip -l /usr/share/xerces-2/lib/xercesImpl.jar | grep ElementTraversal so it seems to me that class should not be needed by netbeans at all. or it's hidden somewhere. (In reply to comment #1) > do you have the issue with upstream netbeans too? i just downloaded > http://download.netbeans.org/netbeans/7.2.1/final/zip/netbeans-7.2.1- > 201210100934-ml.zip and ran following command on the jar files but it did > not find the class: > for file in `find -name "*.jar"`; do echo $file; unzip -l $file | grep > ElementTraversal; done No issue with 7.2.1 downloaded directly from netbeans.org. The design view loaded up normally. No exceptions in the IDE log. Guess I'll just go ahead and use the upstream for now, though it's not ideal. The installer I downloaded was http://dlc.sun.com.edgesuite.net/netbeans/7.2.1/final/bundles/netbeans-7.2.1-ml-javase-linux.sh could you please try to replace our xerces jar in netbeans-ide with the one from netbeans? just drop the /usr/share/netbeans-ide-7.2/modules/ext/xerces-2.8.0.jar link and copy netbeans xerces jar from the installer to /usr/share/netbeans-ide-7.2/modules/ext/xerces-2.8.0.jar. if that would solve your issue, i will use bundled xerces in the ebuilds instead of gentoo one as in such case they would be incompatible. you can also try netbeans-7.3 from my overlay if you want: http://git.overlays.gentoo.org/gitweb/?p=dev/fordfrog.git;a=summary (In reply to comment #3) > could you please try to replace our xerces jar in netbeans-ide with the one > from netbeans? just drop the > /usr/share/netbeans-ide-7.2/modules/ext/xerces-2.8.0.jar link and copy > netbeans xerces jar from the installer to > /usr/share/netbeans-ide-7.2/modules/ext/xerces-2.8.0.jar. if that would > solve your issue, i will use bundled xerces in the ebuilds instead of gentoo > one as in such case they would be incompatible. Thank you Miroslav, using xerces 2.8 from the netbeans.org package did indeed solve my issue with the gentoo netbeans 7.2. So it seems that netbeans has run afoul of some API breakage between xerces 2.8 and 2.11 ... I had the same issue, the most satisfactory solution at the moment seems to be to follow the steps in this thread: http://forums.gentoo.org/viewtopic-p-7247450.html Earlier versions of xerces did bundle xml-apis.jar "netbeans-7.3 -cp:a /usr/share/xml-commons-external-1.4/lib/xml-apis.jar" does work for me. No further update since 2013. I don't believe this is still an issue with netbeans 8.2. Feel free to reopen if it is. Thanks. |