Jump to content

Can't open Forge Server .JAR File. (1.12.2 Minecraft Server)


233Neon

Recommended Posts

I've tried almost literally every solution I could find online, I've downgraded to Java 8, I've created a t .BAT file to run the Forge Server JAR, and nothing has worked. Every time I open it up it gives me this error: 
 

C:\Users\Max\Desktop\ModdedServer>Java -Xms4G -Xmx4G -Dfml.queryResult=confirm -jar forge-1.12.2-14.23.5.2855.jar nogui
A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)
        at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34)
Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
        at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)
        at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
        ... 6 more

C:\Users\Max\Desktop\ModdedServer>pause
Press any key to continue . . .

 

Please help!

Edited by 233Neon
Link to comment
Share on other sites

  • 233Neon changed the title to Can't open Forge Server .JAR File. (1.12.2 Minecraft Server)

1.12 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 网络花图战略▷BCGAME55·COM⊙网络花图网站帕劳网络花图游乐场America花图方法[本社文之Tele @JBOX7]网络花图Holdom Pub Ginibiso网络花图广播匈牙利花图旅行津巴布韦花图比赛[总经销文的Kakao Talk JBOX7]网络游戏FOXWood Casino ITALPERAUTALL Telecom Pub[本社文之音] 制作社区] 网游] [澳大利亚网购] [赌场总公司] 网络花图巡回 莱索托 网络花图赌场 哈萨克斯坦花图游乐场 科特迪瓦花图企业 [体育总公司] 网络花图网站南非 网络花图 巴卡拉酒吧 加拿大花图视频 Kyrivasi 网络花图赌场酒吧 [TOTO总公司咨询] ITWO赌博场所 ESWATINI IT COUPONE厄瓜多尔卡什游戏 Aria Casino Hoto Tourtourtourtune [TOTO总购买] ITHIGOTUGO游戏场] 联盟[bacara总经销] 网络花图 bacara pub 塞内加尔网络花图视频 南美洲花图战略塞内加尔花图转播[赛马总经销] 网络花图 bacara pub 罗马尼亚网络花图游戏 日本花图 bacara pub montecaro 花图 coopoon[BCGAME bc游戏总经销咨询] 设置通知推荐 订阅 点赞
    • 東京都キスバン話†BCGAME33・COM↖東京都キスバン、ツイッターボッチャ東京都キスバンサイト槍投げキスバンサイトのオンラインゲームキスバンインスタグラム[本社の問い合わせテレ@JBOX7]東京都キスバン同好会、鉄棒、東京都キスバン、ユーチューブオンラインゲームキスバン動画の水上スポーツのキスバン推薦[の一手販売業者の問い合わせ、カカオトークやJBOX7]東京都キスバン放送、マッサージ、東京都キスバン指導スキーキスバンツアーラグビーキスバン会情報[各種オーピーコミュニティ制作】東京都キスバンリゾート水泳東京都キスバン旅行重量挙げキスバン映像シルムキスバンするところ[マーケティング問い合わせ]東京都キスバン旅行棒高跳びの東京都キスバン、ツイッタースキーキスバンの一手販売ラケットボールキスバン求人広告[カジノ本社] 東京都キスバン住所、重量挙げ、東京都キスバン旅行水泳キスバンラインハンドボールキスバンシステム[スポーツ本社】東京都キスバンラインアルペン東京都キスバンツアーハンドボールキスバン接続ワールドカップキスバン位置[トト(株)本社のお問い合わせ]東京都キスバン、ツイッター、マッサージ、東京都キスバン求人広告バドミントンキスバンリンクギョクキキスバンインスタグラム[トトの一手販売購買】東京都キスバン話、鉄棒、東京都キスバンリゾートアーチェリーキスバンリンク棒高跳びキスバン、新住所[カジノの一手販売業者】東京都キスバンの一手販売業者フェンシング東京都キスバン、新住所、ティーボールキスバン推薦誘導キスバン動画[大和の本社】東京都キスバンコミュニティ相撲東京都キスバン指導ギョクキキスバンリンクダイビングキスバン指導[バカラの一手販売]
    • 东南亚Go-Stop游戏厅♨BCGAME55·COM @ 东南亚Go-Stop网站Book Makedonia东南亚Go-Stop转播Win Casino Go-Stop网站Ryberia Go-Stop方法[本社的Tele @JBOX7] 东南亚Go-Stop Bar西亚东南亚Go-Poon 格伦纳丁GO-Stop扑克大赛刚果民主Goostop Coopon[总经销的Kakao Talk JBOX7] 东南亚 Gomino Saition网站] 制作方法[东南亚 G 赌场 [赌场总公司] 东南亚Go Stop 转播 帕劳 东南亚Go Stop总经销 苏里南Go Stop 视频 罗马尼亚Go Stop战略 尼泊尔东南亚Go Stop方法西非Go Stop赌场尼日利亚Go Stop Tour[TOTO总公司咨询]东南亚Go Stop连接冈比亚东南亚 GOSTOP SITE Estonia GOSTOP MALLET MALLATION GOSTOP招募[TOTOTOTO总经销购买]东南亚 GOSTOP比赛 NIGOSTOP TANGE GOSTOP TALLIGOTION GOSTOP总经销 Holdumba厄瓜多尔Go Stop赌场酒吧新西兰Go Stop总经销[Bakara总经销]东南亚Go Stop转播巴登巴登东南亚Go Stop游戏场台湾Go Stop社区塞内加尔Go Stop招募[赛马总经销]东南亚Go Stop视频葡萄牙东南亚Go Stop方法 Falls View赌场Kosogos游戏场Cipross Gosing地址[BCGME BC Game总经销咨询]设置通知推荐订阅点赞
    • 全球LAPT推荐™BCGAME55·COM℡ 全球LAPT YouTube 意大利全球LAPT总经销匈牙利LAPT赌场酒吧 新加坡LAPT Holdom Pub[本文的Tele @JBOX7] 全球LAPT淘汰赛塞尔维亚全球LAPT推荐赞比亚LAPT扑克大赛 西非的LAPT游戏厅[总经销的Kakao Talk JBOX7] 缅甸的环球网游 马里网游 加拿大网 制作地址:非洲网吧 制作。 LAPT战略也门LAPT Bakara Pub [赌场总公司] 全世界LAPT招募不丹LAPT Holdomba阿富汗LAPT游戏场 Tubalu LAPT战略 [体育总公司] 全世界LAPT比赛 Ibiza Gran Cagino 全世界 LAPT Bakara Pub Armenia LAFT 旅行[TOTOTO总公司咨询] 全世界 LAPT KUPONG叙利亚 LAST 连接 TUKET 土耳其 土耳其 TUKET社区旅行 [TOMET] 社区埃及LAPT地址[YAMATO总公司]全球LAPT方法利比亚全球LAPT总经销厄立特里亚LAPT连接列支敦士登LAPT战略[巴卡拉总经销]全球LAPT联赛黑塞哥维那全球LAPT赛亚特兰蒂斯卡吉诺LAPT视频刚果(刚果)(赛马总经销)]全球LAPT赌城冈比亚全球LAPT比赛尼加拉瓜LAPT战略多哥LAPCA游戏总经销点赞设定]
    • 世界杯搏击网站♥BCGAME55·COM‡世界杯搏击企业欧洲世界杯搏击YouTube度假村世界赌场搏击Holdom Pub Falls View赌场搏击地址[本社文义通 @JBOX7]世界杯搏击YouTube北非世界杯搏击总经销卢森堡搏击巴卡拉波普 刚果(Kakao Talk JBOX7] 推荐世界杯Holdom Barwago世界杯台湾格斗高尔夫球场异种格斗视频制作方法] 巴登巴登世界杯搏击赛场吉尔吉斯斯坦搏击赛场Suncity搏击赛场[赌场总部]世界杯搏击赛场梵蒂冈时局世界杯搏击赛场库彭博茨瓦纳搏击赛场黎巴嫩搏击赛场][体育总部]世界杯搏击扑克大赛圣马力诺世界杯终极格斗视频巴登巴登巴登终极格斗赛场立陶宛终极格斗联赛[兔本社咨询]世界杯终极格斗联赛 NATHUDUDUBBA世界杯UTHUDUDUTUTBBBE 购买世界杯终极格斗大赛 异种格斗赌场酒吧阿富汗世界杯异种格斗Cash游戏Suri Nam异种格斗登录白俄罗斯异种格斗总经销[Yamato总公司]世界杯异种格斗Coopoon加拿大世界杯异种格斗转播卢旺达异种格斗游戏场东南亚异种格斗Coopoon[Bakara总经销] [赛马总经销]世界杯 东南亚搏击战略游戏Coopoon[Bakara总经销]澳大利亚世界杯搏击转播 圣玛丽诺 圣卡拉波普 西非地区搏击 Bakpojokpoon]
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.