关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 7911|回复: 5

[环境搭建] (已解决)启动时候报错,求助

[复制链接]
发表于 2016-8-21 13:38:14 | 显示全部楼层 |阅读模式
本帖最后由 qq123476556 于 2016-8-22 13:41 编辑

错误如下
QQ20160821-0@2x.png
QQ20160821-1@2x.png
 楼主| 发表于 2016-8-22 13:41:34 | 显示全部楼层
原因已找到:如果不用mac的同学应该不会有这问题
This was caused by an IPv6 address being returned from java.net.NetworkInterface.getDefault(). I'm on a Macbook and was using wireless -- p2p0 (used for AirDrop) was returned as the default network interface but my p2p0 only has an IPv6 ether entry [found by running ipconfig].
Two solutions, both of which worked for me (I prefer the first because it works whether you are using a wired or wireless connection)

Start the JVM with -Djava.net.preferIPv4Stack=true. This caused java.net.NetworkInterface.getDefault() to return my vboxnet0 network interface -- not sure what you'll get if you're not running a host-only VM.
Turn off wireless and use a wired connection
发表于 2016-8-24 16:42:49 | 显示全部楼层
这个问题具体是怎么解决的?我用的mac、idea、jetty:run。
发表于 2016-8-24 16:43:37 | 显示全部楼层

这个问题具体是怎么解决的?我用的mac、idea、jetty:run。
 楼主| 发表于 2016-8-24 21:54:17 | 显示全部楼层
tankxxl 发表于 2016-8-24 16:42
这个问题具体是怎么解决的?我用的mac、idea、jetty:run。

FYI:
Start the JVM with -Djava.net.preferIPv4Stack=true.
右键项目-Run As-Run Configurations-Arguments-VM arguments

eclipse+tomcat
发表于 2016-8-25 16:50:24 | 显示全部楼层
qq123476556 发表于 2016-8-24 21:54
FYI:
Start the JVM with -Djava.net.preferIPv4Stack=true.
右键项目-Run As-Run Configurations-Arg ...

Thanks a lot!!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表