Ошибка Compiling for Java '1.6' is no longer supported. Minimal supported version is '1.8'

Версия Minecraft
1.6.4
API
Forge
32
2
Я работал по данному гайду [1.6.4]Учебник по моддингу
С кодом все в порядке, дошел до тестового блока, сделал все как надо и с подключенным mcp, без ошибок, но столкнулся с данной проблемой:
"Compiling for Java '1.6' is no longer supported. Minimal supported version is '1.8'"
Перевод:
"Компиляция для Java 1.6 больше не поддерживается. Минимальная поддерживаемая версия — 1.8."
Вот скриншоты проекта и class файлов, также самой ошибки, она появляется возле кода, а также при компиляции.
 

Вложения

  • 4.png
    4.png
    116.8 KB · Просмотры: 13
  • 5.png
    5.png
    153.9 KB · Просмотры: 13
  • 6.png
    6.png
    126.4 KB · Просмотры: 7
  • 7.png
    7.png
    146.8 KB · Просмотры: 8
  • 8.png
    8.png
    161.8 KB · Просмотры: 13
Java 8 поставь в:
  • операционную систему (к тому же использование именно её в панели управления версиями Java);
  • ide (среду разработки);
  • настройки компиляции проекта в ide;
  • настройки gradle (и кстати попробуй разные версии gradle);
 
Ещё попробуй отдельно:
1. Компилировать через командную строку, что-то типа ./gradlew build
2. Отдельно запускать тест мода, через нечто на подобии ./gradlew run
Вообще, глянь настройки gradlew и какие доступны команды: открой командную строку в папке с проектом и ./gradlew tasks (как-то так).

+ можешь поиграться с версиями gradlew, только надо найти живое зеркало из которого загрузить его. Где-то на подобии папки gradle в корне проекта будет файл конфига с адресом откуда качает gradlew и в нём версия.
 
Скачал еклипс 2014 года, подключил то же mcp и фордж тоже вроде 1.6.4 но просто стоит ошибка и вот лог тобешь не компилится даже майн мцп
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
авг 05, 2025 5:42:24 AM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The import java.io.File cannot be resolved
The import java.net.URI cannot be resolved
The import java.net.URISyntaxException cannot be resolved
The import java.util.ArrayList cannot be resolved
The import java.util.Arrays cannot be resolved
The import java.util.List cannot be resolved
The import java.util.Map cannot be resolved
The import java.util.Map cannot be resolved
The import java.util.logging.Level cannot be resolved
The import java.util.logging.Logger cannot be resolved
The hierarchy of the type FMLTweaker is inconsistent
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
The type FMLTweaker must implement the inherited abstract method ITweaker.acceptOptions(List<String>, File, File, String)
List cannot be resolved to a type
String cannot be resolved to a type
File cannot be resolved to a type
File cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
List cannot be resolved to a type
String cannot be resolved to a type
URI cannot be resolved to a type
Override cannot be resolved to a type
List cannot be resolved to a type
String cannot be resolved to a type
File cannot be resolved to a type
File cannot be resolved to a type
String cannot be resolved to a type
File cannot be resolved to a type
File cannot be resolved to a type
File cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
List cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
Map<String,Object> cannot be resolved to a type
String cannot be resolved to a type
List cannot be resolved to a type
The method newArrayList() from the type Lists refers to the missing type ArrayList
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
The method newHashMap() from the type Maps refers to the missing type HashMap
Map<String,Object> cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
List cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
Map cannot be resolved to a type
URI cannot be resolved to a type
The method getClass() is undefined for the type FMLTweaker
URISyntaxException cannot be resolved to a type
Logger cannot be resolved
Level cannot be resolved to a variable
Override cannot be resolved to a type
The method addTransformerExclusion(String) from the type LaunchClassLoader refers to the missing type String
The method addTransformerExclusion(String) from the type LaunchClassLoader refers to the missing type String
The method addTransformerExclusion(String) from the type LaunchClassLoader refers to the missing type String
The method addClassLoaderExclusion(String) from the type LaunchClassLoader refers to the missing type String
Override cannot be resolved to a type
String cannot be resolved to a type
Override cannot be resolved to a type
String cannot be resolved to a type
List cannot be resolved to a type
String cannot be resolved to a type
The method newArrayList() from the type Lists refers to the missing type ArrayList
String cannot be resolved to a type
List cannot be resolved to a type
Map cannot be resolved to a type
String cannot be resolved to a type
File cannot be resolved to a type
URI cannot be resolved to a type
URI cannot be resolved to a type
String cannot be resolved to a type

at cpw.mods.fml.common.launcher.FMLTweaker.<init>(FMLTweaker.java:3)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
 

Вложения

  • 1754361688215.png
    1754361688215.png
    37.7 KB · Просмотры: 4
Назад
Сверху