Jump to content

Recommended Posts

Posted

Hi.

 

I want to install Minecraft Forge server on a FreeBSD 12.1 machine.

 

Itś a small personal server for my son a is friend.

I've had running vanilla server on this server without problems, but know they want to use mods so I want to use Forge server.

 

I followed directions at https://minecraft.gamepedia.com/Tutorials/Setting_up_a_Minecraft_Forge_server

 

On a empty folder I run

java -jar forge-1.15.2-31.2.0-installer.jar --installServer

 

Everything went OK. Then i changed the eula.txt file.

 

When I try to start the server with:

 

java -Xmx1G -Xms1G -jar forge-1.15.2-31.2.0.jar  nogui

 

 

I get this:

 

[23:47:31] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 31.2.0, --fml.mcpVersion, 20200515.085601, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, nogui]                                                                                                                                
[23:47:31] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 1.8.0_242 by Oracle Corporation
[23:47:31] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
Exception in thread "main" [23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.UnsatisfiedLinkError: sun.nio.fs.LinuxWatchService.inotifyInit()I
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at sun.nio.fs.LinuxWatchService.inotifyInit(Native Method)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at sun.nio.fs.LinuxWatchService.<init>(LinuxWatchService.java:59)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at sun.nio.fs.BsdFileSystem.newWatchService(BsdFileSystem.java:51)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.FileWatcher$WatchedDir.<init>(FileWatcher.java:218)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.FileWatcher$WatchedDir.<init>(FileWatcher.java:210)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.FileWatcher.lambda$addWatch$0(FileWatcher.java:81)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.FileWatcher.addWatch(FileWatcher.java:81)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.FileWatcher.addWatch(FileWatcher.java:69)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.AutoreloadFileConfig.<init>(AutoreloadFileConfig.java:18)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at com.electronwill.nightconfig.core.file.GenericBuilder.build(GenericBuilder.java:242)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at net.minecraftforge.fml.loading.FMLConfig.loadFrom(FMLConfig.java:56)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at net.minecraftforge.fml.loading.FMLConfig.load(FMLConfig.java:69)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at net.minecraftforge.fml.loading.FMLServiceProvider.initialize(FMLServiceProvider.java:81)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at cpw.mods.modlauncher.TransformationServiceDecorator.onInitialize(TransformationServiceDecorator.java:68)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at cpw.mods.modlauncher.TransformationServicesHandler.lambda$initialiseTransformationServices$7(TransformationServicesHandler.java:107)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at java.util.HashMap$Values.forEach(HashMap.java:981)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at cpw.mods.modlauncher.TransformationServicesHandler.initialiseTransformationServices(TransformationServicesHandler.java:107)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:59)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at cpw.mods.modlauncher.Launcher.run(Launcher.java:75)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60)
[23:47:31] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]:       at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)

 

 

does Forge server works under FreeBSD 12.1?

 

Regards and thank you.

 

 

 

Posted

That looks like you're missing a native library, I seem to recall someone solving this issue by using a different method of installation (installer -> package manager or package manager -> installer)  can't remember which way around it was though.

 

We tend to recommend https://adoptopenjdk.net for Java, and they have both installers and instructions on adding their repo to your package manager

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.

  Reveal hidden contents

 

Posted

I was using openjdk8. With openJDK 8 Vanilla server was running OK, but Forge server don't.

 

I tried with openJDK 11 and Forge server start up correctly. I suppose that Forge server is not compatible with Java 8, at least under FreeBSD

 

Regards and thank you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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