IntelliJ IDEA报错总结
2024-10-19 05:37:52
不能运行java程序
可能是没有选择运行环境
点击 edit Configurations
在Use classpath of module 中选择本项目的运行环境
Run报错:
Error:java: Compilation failed: internal java compiler error
a.进入Feil--->Settings...--->Build Tools--->Java Compiler
b.Per-module bytecode version:中
Module 选择对应的项目
Target bytecode version 选择对应当前设置的java版本
@Override报错:
设置
Feil->Project Structure...->Modules->
Sources->Language level->6-@Override in interfaces
在Maven项目中每次修改了pom.xml文件后Language level可能会重置
所以使用maven插件方便
<build>
<plugins>
<!-- 使用maven-compiler-plugin 同时配置Java compiler和Language level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
最新文章
- 使用JPype实现Python调用JAVA程序
- MS sql server 基础知识回顾(二)-表连接和子查询
- Cwinux简介及用法简述
- Hadoop集群(第10期副刊)_常用MySQL数据库命令
- Makefile与shell脚本的区别
- python对拍程序
- storm高级原语-Transactional topology
- PHP面向对象基础实例
- Android开发技术周报
- Activity与Activity之间的传值
- HTTP 405 错误 – 方法不被允许 (Method not allowed)【转载】
- ASP.NET网站不能在VS中调试
- C# Common Code
- 03 使用Tensorflow做计算题
- 数据同步到redis中时候需要 需要给关联的表增加id 如果是一对多 则增加list存储id 如果是一个 则增加一个字段 ;目的是便于取值
- 加密解密DES之Android、IOS、C#实现
- springboot13 发布和监听事件
- 用python写一个定时提醒程序
- MySql使用笔记
- jenkins + gerrit 自动code review
热门文章
- Linux命令学习-01——find -type
- sizeof和strlen在string类中的使用
- C++ part4
- chrome禁用缓存:调试javascript注意事项
- hdu5693D++游戏 区间DP-暴力递归
- Pycharm无法import caffe
- 如何禁用 Chrome Taps Group feature &;#128169;
- js double 精度损失 bugs
- Teadocs &; markdown website
- ip &; 0.0.0.0 &; 127.0.0.1 &; localhost