Eclipse Helios 中的 Colorer 插件

发布于 2024-09-27 12:19:03 字数 307 浏览 0 评论 0原文

我一直无法获得精彩的 Eclipse Colorer 插件来与我当前的 Eclipse 副本(Helios 64 位)配合使用。它安装正常,但每当我尝试打开源文件时,我都会收到此错误:

Colorer 库的本机部分初始化时出错。这可能是由于 java 机器的路径中缺少 net_sf_colorer.dll (libnet_sf_colorer.so) 库造成的。或者,colorer 找不到catalog.xml 文件,该文件必须放置在“%PLUGIN_DIR%”/colorer/catalog.xml 中 无法初始化类 net.sf.colorer.ParserFactory

I've been unable to get the wonderful Eclipse Colorer plugin to work with my current copy of Eclipse (Helios 64 bit). It installs ok but whenever I attempt to open a source file I get this error:

Error in initialization of native part of the Colorer library. This can be caused by absent net_sf_colorer.dll (libnet_sf_colorer.so) library in paths of java machine. Or, colorer can't find catalog.xml file, which must be placed in '%PLUGIN_DIR%'/colorer/catalog.xml'
Could not initialize class net.sf.colorer.ParserFactory

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

葬﹪忆之殇 2024-10-04 12:19:03

与Eclipse版本无关。尝试 32 位版本,据我所知 Eclipse Colorer 不支持 64 位。

It has nothing to do with the version of Eclipse. Try a 32-bit Version, AFAIK Eclipse Colorer has no support for 64-bit.

仙女 2024-10-04 12:19:03

实际上,我通过编译我自己的 Colorer 版本成功地使其在 64 位 eclipse (indigo) 上运行。一旦你知道这很简单:首先你获得 svn 版本:

svn co https://colorer.svn.sourceforge.net/svnroot/colorer/trunk/ trunk
cd trunk/eclipsecolorer/libnative
mkdir objs # not sure why make cannot do that..
make -f makefile.macos_64

然后你必须在你的 eclipse 插件中创建一个新的 x86_64 目录,并将 lib 复制到那里。就我而言,是:

mkdir /Applications/eclipse/plugins/net.sf.colorer_0.9.8/os/macosx/x86_64
cp libnet_sf_colorer.jnilib /Applications/eclipse/plugins/net.sf.colorer_0.9.8/os/macosx/x86_64/

I actually managed to make it run on a 64bit eclipse (indigo) by compiling my own version of Colorer. Once you know it's pretty easy: first you get the svn version:

svn co https://colorer.svn.sourceforge.net/svnroot/colorer/trunk/ trunk
cd trunk/eclipsecolorer/libnative
mkdir objs # not sure why make cannot do that..
make -f makefile.macos_64

Then you must create a new x86_64 directory in your eclipse plugin, and copy the lib there. In my case it was:

mkdir /Applications/eclipse/plugins/net.sf.colorer_0.9.8/os/macosx/x86_64
cp libnet_sf_colorer.jnilib /Applications/eclipse/plugins/net.sf.colorer_0.9.8/os/macosx/x86_64/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文