title: java running jar via cronjob
body: <p>I want to setup a Minecraft server, which automatically starts up on system startup.</p>
  
  <p>I use the following script to manually run: /home/mc_ftb/server/start.sh</p>
  
  <pre><code>#! /bin/sh
  java -Xms1G -Xmx3G -jar /home/mc_ftb/server/mcpc-plus-1.5.2-R0.2-forge716-B527.jar nogui
  </code></pre>
  
  <p>The cron to start it on start up looks like that:</p>
  
  <pre><code>mc_ftb  Ja  ~/server/start.sh
  </code></pre>
  
  <p>This structure already worked with other mods, like Tekkit, but now with a FTB (NewWorld) mod, I get the error </p>
  
  <pre><code>Exception in thread "main" java.lang.NullPointerException
  at cpw.mods.fml.relauncher.FMLRelaunchLog.resetLoggingHandlers(FMLRelaunchLog.java:212)
  at cpw.mods.fml.relauncher.FMLRelaunchLog.configureLogging(FMLRelaunchLog.java:191)
  at cpw.mods.fml.relauncher.FMLRelaunchLog.log(FMLRelaunchLog.java:242)
  at cpw.mods.fml.relauncher.FMLRelaunchLog.info(FMLRelaunchLog.java:274)
  at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:164)
  at cpw.mods.fml.relauncher.FMLRelauncher.relaunchServer(FMLRelauncher.java:147)
  at cpw.mods.fml.relauncher.FMLRelauncher.handleServerRelaunch(FMLRelauncher.java:45)
  at net.minecraft.server.MinecraftServer.main(MinecraftServer.java:1622)
  at org.bukkit.craftbukkit.Main.main(Main.java:21)
  </code></pre>
  
  <p>Starting the script in a terminal as mc_ftb works fine, but even not with the cronjob, I already tried to start it via <code>exce java ...</code>.</p>
  
  <p>The script and the jar file are +x'ed. I'm using the actual stable Debian.</p>