idea 开发环境问题总结

1、提示符号不存在,包不存在等
在这里插入图片描述
解决方法:换成了低版本的idea运行可以

2、Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/common/langs/StringUtils

解决方法:重新导入了另一个包

3、Exception in thread “main” java.sql.SQLException: No suitable driver found for jdbc:mysql://192.168.123.17:3308/iapp10032
解决方法:在pom.xml文件中改为编译运行

在这里插入图片描述

4、 java.net.BindException “Address already in use: JVM_Bind”
解决方法:运行了两个版本的idea,端口被占用问题

5、编译报-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.
在这里插入图片描述
解决方法:在这里插入图片描述
5、报错 error while loading DateTime, class file ‘G:\mvnm2\joda-time\joda-time\2.9.9\joda-time-2.9.9.jar(org/joda/time/DateTime.class)’ is broken (class java.lang.RuntimeException/bad constant pool tag 10 at byte 42)
解决方法:pom文件中添加依赖

  <dependency>
    <groupId>org.scalaj</groupId>
    <artifactId>scalaj-time_2.9.1</artifactId>
    <version>0.7</version>
</dependency>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值