Помогите устранить проблему с Java.

Статус
В этой теме нельзя размещать новые ответы.

Solojke

Свой человек
Участник
Старожил I степени
Сообщения
29
Розыгрыши
0
Репутация
10
Реакции
12
Баллы
545
Хроники
  1. Shadow of the Kamael
Исходники
Отсутствуют
Сборка
L2 Scripts Homunculus Part 1
При запуске сервера вижу данную ошибку
Starting GameServer.

Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Server terminated abnormaly ...
Server terminated ...

Убираю этот параметр с .bat, вижу следующую ошибку
Starting GameServer.

[20:18:18] INFO =================================================
[20:18:18] INFO Project Revision: ........ L2s [44211]
[20:18:18] INFO Build Revision: .......... ${build.revision}
[20:18:18] INFO Update: .................. The Homunculus
[20:18:18] INFO Build date: .............. 2020.10.27 22:13
[20:18:18] INFO Compiler version: ........ 1.8.0_241-b07 (Oracle Corporation)
[20:18:18] INFO =================================================
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO HostsConfigHolder: Authserver host info: IP[127.0.0.1], PORT[9014]
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO HostsConfigHolder: Gameserver host info:
[20:18:18] INFO HostsConfigHolder: ID[1], ADDRESS[127.0.0.1], PORT[7777]
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO Abuse: Loaded 18 abuse words.
[20:18:19] INFO =================================================
[20:18:19] INFO Licensed host: 127.0.0.1
[20:18:19] INFO Licensed online limit: UNLIMITED
[20:18:19] INFO =================================================
[20:18:19] INFO UpdatesInstaller: Checking new updates...
[20:18:19] INFO UpdatesInstaller: No new updates.
[20:18:19] INFO IdFactory: Clear characters online status.
[20:18:20] INFO IdFactory: Cleaned 0 elements from database in 0sec.
[20:18:20] INFO IdFactory: Extracted total 0 used id's.
[20:18:20] INFO IdFactory: 102912 id's available.
[20:18:20] INFO Hidden items loaded size: 0
[20:18:20] INFO CustomHeroDAO: loaded 0 custom heroes.
[20:18:20] INFO HWIDBan: Black list (Hwid) loaded size: 0
[20:18:20] INFO Scripts: Loading...
Exception in thread "main" java.lang.Error: Failed loading scripts!
at l2s.gameserver.scripts.Scripts.load(Scripts.java:87)
at l2s.gameserver.scripts.Scripts.<init>(Scripts.java:72)
at l2s.gameserver.scripts.Scripts.<clinit>(Scripts.java:59)
at l2s.gameserver.GameServer.<init>(GameServer.java:323)
at l2s.gameserver.GameServer.main(GameServer.java:597)


Логин запускается без проблем!
Ява 1.8
Сборка l2-Scripts Homunculus Part 1
 
Решение
Ради интереса, попробуйте вот такой BAT
Bash:
@echo off
title L2-Scripts (The Homunculus)

:start
echo Starting GameServer.
echo.

"C:\Program Files\BellSoft\LibericaJDK-8-full\bin\java" -server -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -cp config;./lib/* l2s.gameserver.GameServer

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Server restarted ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly ...
echo.
:end
echo.
echo Server terminated ...
echo.

pause
При запуске сервера вижу данную ошибку
Starting GameServer.

Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Server terminated abnormaly ...
Server terminated ...

Убираю этот параметр с .bat, вижу следующую ошибку
Starting GameServer.

[20:18:18] INFO =================================================
[20:18:18] INFO Project Revision: ........ L2s [44211]
[20:18:18] INFO Build Revision: .......... ${build.revision}
[20:18:18] INFO Update: .................. The Homunculus
[20:18:18] INFO Build date: .............. 2020.10.27 22:13
[20:18:18] INFO Compiler version: ........ 1.8.0_241-b07 (Oracle Corporation)
[20:18:18] INFO =================================================
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO HostsConfigHolder: Authserver host info: IP[127.0.0.1], PORT[9014]
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO HostsConfigHolder: Gameserver host info:
[20:18:18] INFO HostsConfigHolder: ID[1], ADDRESS[127.0.0.1], PORT[7777]
[20:18:18] INFO HostsConfigHolder: =================================================
[20:18:18] INFO Abuse: Loaded 18 abuse words.
[20:18:19] INFO =================================================
[20:18:19] INFO Licensed host: 127.0.0.1
[20:18:19] INFO Licensed online limit: UNLIMITED
[20:18:19] INFO =================================================
[20:18:19] INFO UpdatesInstaller: Checking new updates...
[20:18:19] INFO UpdatesInstaller: No new updates.
[20:18:19] INFO IdFactory: Clear characters online status.
[20:18:20] INFO IdFactory: Cleaned 0 elements from database in 0sec.
[20:18:20] INFO IdFactory: Extracted total 0 used id's.
[20:18:20] INFO IdFactory: 102912 id's available.
[20:18:20] INFO Hidden items loaded size: 0
[20:18:20] INFO CustomHeroDAO: loaded 0 custom heroes.
[20:18:20] INFO HWIDBan: Black list (Hwid) loaded size: 0
[20:18:20] INFO Scripts: Loading...
Exception in thread "main" java.lang.Error: Failed loading scripts!
at l2s.gameserver.scripts.Scripts.load(Scripts.java:87)
at l2s.gameserver.scripts.Scripts.<init>(Scripts.java:72)
at l2s.gameserver.scripts.Scripts.<clinit>(Scripts.java:59)
at l2s.gameserver.GameServer.<init>(GameServer.java:323)
at l2s.gameserver.GameServer.main(GameServer.java:597)


Логин запускается без проблем!
Ява 1.8
Сборка l2-Scripts Homunculus Part 1
liberica 8 стартует без бед
Код:
Starting GameServer.

[20:46:58]  INFO =================================================
[20:46:58]  INFO Project Revision: ........ L2s [44211]
[20:46:58]  INFO Build Revision: .......... ${build.revision}
[20:46:58]  INFO Update: .................. The Homunculus
[20:46:58]  INFO Build date: .............. 2020.10.27 22:13
[20:46:58]  INFO Compiler version: ........ 1.8.0_241-b07 (Oracle Corporation)
[20:46:58]  INFO =================================================
[20:46:59]  INFO HostsConfigHolder: =================================================
[20:46:59]  INFO HostsConfigHolder: Authserver host info: IP[], PORT[9014]
[20:46:59]  INFO HostsConfigHolder: =================================================
[20:46:59]  INFO HostsConfigHolder: Gameserver host info:
[20:46:59]  INFO HostsConfigHolder: ID[2], ADDRESS[], PORT[8888]
[20:46:59]  INFO HostsConfigHolder: =================================================
[20:46:59]  INFO Abuse: Loaded 18 abuse words.
[20:46:59]  INFO =================================================
[20:46:59]  INFO Licensed host: 127.0.0.1
[20:46:59]  INFO Licensed online limit: UNLIMITED
[20:46:59]  INFO =================================================
[20:46:59]  INFO UpdatesInstaller: Checking new updates...
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_06 13-33...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_06 13-33
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_06 19-14...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_06 19-14
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_07 17-20...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_07 17-20
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_20 21-34...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_20 21-34
[20:46:59]  INFO UpdatesInstaller: All new updates installed.
[20:46:59]  INFO IdFactory: Clear characters online status.
[20:46:59]  INFO IdFactory: Cleaned 8 elements from database in 0sec.
[20:46:59]  INFO IdFactory: Extracted total 0 used id's.
[20:46:59]  INFO IdFactory: 102912 id's available.
[20:47:00]  INFO Hidden items loaded size: 0
[20:47:00]  INFO CustomHeroDAO: loaded 0 custom heroes.
[20:47:00]  INFO HWIDBan: Black list (Hwid) loaded size: 0
[20:47:00]  INFO Scripts: Loading...
[20:47:06]  INFO Scripts: Loaded 1001 classes.
[20:47:06]  INFO GeoEngine: Disabled.
[20:47:06]  INFO Loaded 418 translit entries.
[20:47:06]  INFO GameTimeController: initialized. Current time is 10:42 in the day.
[20:47:06]  INFO World: Creating regions: [256][272][32].
[20:47:06]  INFO HtmCache: Loading HTML's...
[20:47:07]  INFO StringsHolder: load strings: 685 for lang: RUSSIAN
[20:47:07]  INFO StringsHolder: load strings: 686 for lang: ENGLISH
[20:47:07]  INFO ItemNameHolder: load item names: 44936 for lang: RUSSIAN
[20:47:07]  INFO ItemNameHolder: load item names: 44936 for lang: ENGLISH
[20:47:07]  INFO NpcNameHolder: load npc names: 14126 for lang: RUSSIAN
[20:47:07]  INFO NpcNameHolder: load npc names: 14126 for lang: ENGLISH
[20:47:07]  INFO NpcStringHolder: load npc strings: 15014 for lang: RUSSIAN
[20:47:07]  INFO NpcStringHolder: load npc strings: 15014 for lang: ENGLISH
[20:47:08]  INFO SkillNameHolder: load skill names: 157758 for lang: RUSSIAN
[20:47:08]  INFO SkillNameHolder: load skill names: 157758 for lang: ENGLISH
[20:47:08]  INFO SkillEnchantInfoHolder: loaded 20 skill enchant info(s) count.
...
[20:47:35]  INFO Maximum Numbers of Connected Players: 3000
[20:47:35]  INFO GameBanManager: Initialized.
[20:47:35]  INFO Restoring offline traders...
[20:47:35]  INFO Restored 0 offline traders.
[20:47:35]  INFO Connecting to authserver on :9014
[20:47:35]  INFO SpawnManager: spawned 296 npc; spawns: 259; group: DAY
[20:47:35]  INFO Telnet server is currently disabled.
[20:47:35]  INFO =================================================
[20:47:35]  INFO AllowedMemory: ........... 16666496 KB
[20:47:35]  INFO      Allocated: .......... 16666496 KB (100.0%)
[20:47:35]  INFO      Non-Allocated: ...... 0 KB (0.0%)
[20:47:35]  INFO AllocatedMemory: ......... 16666496 KB
[20:47:35]  INFO      Used: ............... 2609775 KB (15.6588%)
[20:47:35]  INFO      Unused (cached): .... 14056720 KB (84.3412%)
[20:47:35]  INFO UseableMemory: ........... 14056720 KB (84.3412%)
[20:47:35]  INFO =================================================
[20:47:35]  INFO Loaded Event: Viktorina
[20:47:35]  INFO Loaded Event: Trivia
[20:47:36]  INFO ImagesCache: Loaded 305 images
[20:47:40] ERROR AuthServer I/O error: Connection timeout.
[20:47:40]  INFO Start Viktorina: Wed Aug 17 12:00:00 EEST 2022
[20:47:40]  INFO Stop Viktorina: Wed Aug 17 14:00:00 EEST 2022
[20:47:40]  INFO Loaded Event: Trivia - Next Start: Wed Aug 17 18:00:00 EEST 2022
 
[20:18:20] INFO Scripts: Loading...
Exception in thread "main" java.lang.Error: Failed loading scripts!
Java:
    _log.info("Scripts: Loading...");
    List<Class<?>> classes = load(new File(Config.DATAPACK_ROOT, "data/scripts"));
    if (classes.isEmpty())
      throw new Error("Failed loading scripts!");

Разбирайтесь, по какой причине на пути /data/scripts не было загружено не одного файла (*.java)
 
liberica 8 стартует без бед
Код:
Starting GameServer.

[20:46:58]  INFO =================================================
[20:46:58]  INFO Project Revision: ........ L2s [44211]
[20:46:58]  INFO Build Revision: .......... ${build.revision}
[20:46:58]  INFO Update: .................. The Homunculus
[20:46:58]  INFO Build date: .............. 2020.10.27 22:13
[20:46:58]  INFO Compiler version: ........ 1.8.0_241-b07 (Oracle Corporation)
[20:46:58]  INFO =================================================
[20:46:59]  INFO HostsConfigHolder: =================================================
[20:46:59]  INFO HostsConfigHolder: Authserver host info: IP[], PORT[9014]
[20:46:59]  INFO HostsConfigHolder: =================================================
[20:46:59]  INFO HostsConfigHolder: Gameserver host info:
[20:46:59]  INFO HostsConfigHolder: ID[2], ADDRESS[], PORT[8888]
[20:46:59]  INFO HostsConfigHolder: =================================================
[20:46:59]  INFO Abuse: Loaded 18 abuse words.
[20:46:59]  INFO =================================================
[20:46:59]  INFO Licensed host: 127.0.0.1
[20:46:59]  INFO Licensed online limit: UNLIMITED
[20:46:59]  INFO =================================================
[20:46:59]  INFO UpdatesInstaller: Checking new updates...
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_06 13-33...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_06 13-33
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_06 19-14...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_06 19-14
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_07 17-20...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_07 17-20
[20:46:59]  INFO UpdatesInstaller: Installing update: 2020_07_20 21-34...
[20:46:59]  INFO UpdatesInstaller: Installed update: 2020_07_20 21-34
[20:46:59]  INFO UpdatesInstaller: All new updates installed.
[20:46:59]  INFO IdFactory: Clear characters online status.
[20:46:59]  INFO IdFactory: Cleaned 8 elements from database in 0sec.
[20:46:59]  INFO IdFactory: Extracted total 0 used id's.
[20:46:59]  INFO IdFactory: 102912 id's available.
[20:47:00]  INFO Hidden items loaded size: 0
[20:47:00]  INFO CustomHeroDAO: loaded 0 custom heroes.
[20:47:00]  INFO HWIDBan: Black list (Hwid) loaded size: 0
[20:47:00]  INFO Scripts: Loading...
[20:47:06]  INFO Scripts: Loaded 1001 classes.
[20:47:06]  INFO GeoEngine: Disabled.
[20:47:06]  INFO Loaded 418 translit entries.
[20:47:06]  INFO GameTimeController: initialized. Current time is 10:42 in the day.
[20:47:06]  INFO World: Creating regions: [256][272][32].
[20:47:06]  INFO HtmCache: Loading HTML's...
[20:47:07]  INFO StringsHolder: load strings: 685 for lang: RUSSIAN
[20:47:07]  INFO StringsHolder: load strings: 686 for lang: ENGLISH
[20:47:07]  INFO ItemNameHolder: load item names: 44936 for lang: RUSSIAN
[20:47:07]  INFO ItemNameHolder: load item names: 44936 for lang: ENGLISH
[20:47:07]  INFO NpcNameHolder: load npc names: 14126 for lang: RUSSIAN
[20:47:07]  INFO NpcNameHolder: load npc names: 14126 for lang: ENGLISH
[20:47:07]  INFO NpcStringHolder: load npc strings: 15014 for lang: RUSSIAN
[20:47:07]  INFO NpcStringHolder: load npc strings: 15014 for lang: ENGLISH
[20:47:08]  INFO SkillNameHolder: load skill names: 157758 for lang: RUSSIAN
[20:47:08]  INFO SkillNameHolder: load skill names: 157758 for lang: ENGLISH
[20:47:08]  INFO SkillEnchantInfoHolder: loaded 20 skill enchant info(s) count.
...
[20:47:35]  INFO Maximum Numbers of Connected Players: 3000
[20:47:35]  INFO GameBanManager: Initialized.
[20:47:35]  INFO Restoring offline traders...
[20:47:35]  INFO Restored 0 offline traders.
[20:47:35]  INFO Connecting to authserver on :9014
[20:47:35]  INFO SpawnManager: spawned 296 npc; spawns: 259; group: DAY
[20:47:35]  INFO Telnet server is currently disabled.
[20:47:35]  INFO =================================================
[20:47:35]  INFO AllowedMemory: ........... 16666496 KB
[20:47:35]  INFO      Allocated: .......... 16666496 KB (100.0%)
[20:47:35]  INFO      Non-Allocated: ...... 0 KB (0.0%)
[20:47:35]  INFO AllocatedMemory: ......... 16666496 KB
[20:47:35]  INFO      Used: ............... 2609775 KB (15.6588%)
[20:47:35]  INFO      Unused (cached): .... 14056720 KB (84.3412%)
[20:47:35]  INFO UseableMemory: ........... 14056720 KB (84.3412%)
[20:47:35]  INFO =================================================
[20:47:35]  INFO Loaded Event: Viktorina
[20:47:35]  INFO Loaded Event: Trivia
[20:47:36]  INFO ImagesCache: Loaded 305 images
[20:47:40] ERROR AuthServer I/O error: Connection timeout.
[20:47:40]  INFO Start Viktorina: Wed Aug 17 12:00:00 EEST 2022
[20:47:40]  INFO Stop Viktorina: Wed Aug 17 14:00:00 EEST 2022
[20:47:40]  INFO Loaded Event: Trivia - Next Start: Wed Aug 17 18:00:00 EEST 2022
Попробовал на Liberica 8, проблема со скриптами(
Код:
-XX:+IgnoreUnrecognizedVMOptions
Помогло! Спасибо, но проблема со скриптами осталась(
Java:
    _log.info("Scripts: Loading...");
    List<Class<?>> classes = load(new File(Config.DATAPACK_ROOT, "data/scripts"));
    if (classes.isEmpty())
      throw new Error("Failed loading scripts!");

Разбирайтесь, по какой причине на пути /data/scripts не было загружено не одного файла (*.java)
Вряд ли без исходников можно копать в эту сторону, или я не прав?
 
Попробуйте это в DATA запихнуть.
Тут правда мои свистоперделки присутсвуют, но они чисто чтоб админка была понятнее и хотя-бы работала :)
 

Вложения

  • scripts.7z
    418,7 КБ · Просмотры: 10
Попробуйте это в DATA запихнуть.
Тут правда мои свистоперделки присутсвуют, но они чисто чтоб админка была понятнее и хотя-бы работала :)
Не помогло (
Распаковал заново и перекачал с форума сборку, итог тот же(
 
может много подпапочек ?
попробуйте в корень поменситить и запустить ради прикола :)
Закинул в диск C, в корень. Не помогло(

может много подпапочек ?
попробуйте в корень поменситить и запустить ради прикола :)
Можно попросить вас скинуть сборку, с которой вы смогли запуститься?
Если она, конечно, без доработок и в бесплатном доступе.
 
# Директорий датапака
DatapackRoot = .
Все стоит по стандарту, я изменил только данные для подключения к БД. Больше в сборке ничего не трогал
 
# Директорий датапака
DatapackRoot = .
Все стоит по стандарту, я изменил только данные для подключения к БД. Больше в сборке ничего не трогал
файл server.properties находится в /gameserver/config/ или /gameserver/config/default/ ?
 
Ради интереса, попробуйте вот такой BAT
Bash:
@echo off
title L2-Scripts (The Homunculus)

:start
echo Starting GameServer.
echo.

"C:\Program Files\BellSoft\LibericaJDK-8-full\bin\java" -server -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -cp config;./lib/* l2s.gameserver.GameServer

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Server restarted ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly ...
echo.
:end
echo.
echo Server terminated ...
echo.

pause
 
Решение
Ради интереса, попробуйте вот такой BAT
Bash:
@echo off
title L2-Scripts (The Homunculus)

:start
echo Starting GameServer.
echo.

"C:\Program Files\BellSoft\LibericaJDK-8-full\bin\java" -server -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -Xms16g -Xmx16g -cp config;./lib/* l2s.gameserver.GameServer

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Server restarted ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly ...
echo.
:end
echo.
echo Server terminated ...
echo.

pause
""C:\Program Files\BellSoft\LibericaJDK-8\bin"" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
И да, путь указал к своей яве.
 
""C:\Program Files\BellSoft\LibericaJDK-8\bin"" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
И да, путь указал к своей яве.
в конце \java допишите
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху Снизу