Could not load native libraries

刚开始使用java进行AE开发,照着示例写个小程序,一运行便出现了问题:

运行到第一句时EngineInitializer.initializeEngine();

错误提示如下:

Could not load native libraries

然后就开始google一下,结果就找到了http://bbs.esrichina-bj.cn/ESRI/viewthread.php?tid=116277这个,看了下,根据上面的操作就成功!

下面补充下里面的操作:

先是加环境变量,在Path中添加%ArcGISHOME%\bin这个值,然后运行程序出现Can't load IA 32-bit .dll on a AMD 64-bit platform的错误,本人的机器是win7 64位的,Eclipse是eclipse-java-luna-SR2-win32-x86_64这个版本的;

照着里面的操作安装JRE,打开Window--->Preference出现如下界面


点击1,2进行安装ArcGIS的是JRE,


点击下一步


然后点击完成就可以了,也可以在JRE name里面填写个名称;

重启Eclipse再次运行,发现还是报错误:Can't load IA 32-bit .dll on a AMD 64-bit platform,

这里我们要再次设置一下:

工程右键属性弹出如下框:


点击Edit后弹出如下的设置框:


选择合适的版本即刚才安装的jre,我的是JavaSE-1.6(javaArcGISJRE是安装时自定义的名称),如果不清楚哪个版本,可以点击这个框右上角的Environments这个按钮进行查看各个版本的信息:


我的这里选择JavaSE-1.7或者是1.8时右边是没有刚才安装的ArcGIS的JRE的信息的;

选择完成之后 点击OK,Finish的进行保存;

然后我们可以在工程中看见修改JRE之后的变化如下图:

对应路径变成刚才配置的JRE的路径:


然后运行工程:


成功运行!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Discover how to use React Native in the real world, from scratch. This book shows you what React Native has to offer, where it came from, and where it’s going. You’ll begin with a solid foundation of practical knowledge, and then build on it immediately by constructing three different apps. You’ll learn how to use each feature of React Native by working on two full projects and one full game. These aren’t just simple React Native Hello World examples (although you’ll naturally start there!) but are apps that you can, if you so choose, install on your mobile devices and use for real. Throughout this book, you’ll gain real-world familiarity with React Native as well as supporting components from Expo, NativeBase, React Navigation and the Redux and Lodash libraries. You’ll also build server-side code for a mobile React Native app to talk to using the popular Node.js and Socket.io library, providing you a holistic view of things even beyond React Native. And, you’ll see many helpful tips, tricks and gotchas to watch out for along the way! Practical React Native offers practical exercises that will give you a solid grasp of building apps with React Native, allowing you to springboard into creating more advanced apps on your own.Creating a game with React Native will allow you to see a whole other perspective on what React Native can do. What You’ll Learn Master the basics of React Native Create a logically structured project Review interface elements, such as widgets, controls, and extensions Build layouts Work with Expo, an open source toolchain Who This book Is For The primary audience is mobile developers and anyone looking to build for multiple mobile platforms and trying to do so with a codebase that is largely the same across all. Readers will need a decent foundation, but not necessarily be experts in, HTML, CSS, and JavaScript, but I’ll assume little beyond that.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值