Could not load library. no jansi in java.library.path,

Discussion in 'Spigot Help' started by MinecraftJohn, Apr 14, 2018.

  1. Hello there?

    I need your help I can't start my server and I receive this error.


    Code (Text):
    E:\John Files\Pinoy LifeCraft Server>java -Xms512M -Xmx1G -jar spigot.jar -nojli
    ne
    Loading libraries, please wait...
    java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-git
    -Spigot-eadd615-9060bfa in java.library.path, no jansi-git-Spigot-eadd615-9060bf
    a in java.library.path, no jansi in java.library.path, C:\Users\jake.napoles1000
    \AppData\Local\Temp\jansi-64-git-Spigot-eadd615-9060bfa-1242562847637548204.dll:
     Access is denied]
            at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182)
            at org.fusesource.hawtjni.runtime.Library.load(Library.java:140)
            at org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:37)
            at org.fusesource.jansi.WindowsAnsiOutputStream.<clinit>(WindowsAnsiOutp
    utStream.java:52)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStrea
    m(ConsoleAppender.java:263)
            at org.apache.logging.log4j.core.appender.ConsoleAppender.getDefaultMana
    ger(ConsoleAppender.java:226)
            at org.apache.logging.log4j.core.appender.ConsoleAppender.createDefaultA
    ppenderForLayout(ConsoleAppender.java:172)
            at org.apache.logging.log4j.core.config.AbstractConfiguration.setToDefau
    lt(AbstractConfiguration.java:581)
            at org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(Defa
    ultConfiguration.java:47)
            at org.apache.logging.log4j.core.LoggerContext.<init>(LoggerContext.java
    :86)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.cre
    ateContext(ClassLoaderContextSelector.java:171)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.loc
    ateContext(ClassLoaderContextSelector.java:145)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.get
    Context(ClassLoaderContextSelector.java:70)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.get
    Context(ClassLoaderContextSelector.java:57)
            at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
    4jContextFactory.java:147)
            at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
    4jContextFactory.java:45)
            at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
            at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
            at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
            at net.minecraft.server.v1_12_R1.MinecraftServer.<clinit>(MinecraftServe
    r.java:56)
            at org.bukkit.craftbukkit.Main.main(Main.java:194)

    E:\John Files\Pinoy LifeCraft Server>pause
    Press any key to continue . . .
    Using Spigot : spigot-1.12.2-R0.1-SNAPSHOT-b1622.jar

    O S : Windows 7 Professional
    RAM : 2GB
    System Type: 64bit

    Using JAVA: 8.0.1610.12 64bit (Java8 Update 161)

    Please Help [​IMG] [​IMG] [​IMG]
     
    • Like Like x 1
    • Agree Agree x 1
  2. Looks like a hacked up copy of Spigot. Use BuildTools to ensure it's a Legit Copy.
     
    • Like Like x 1
    • Agree Agree x 1
    • Friendly Friendly x 1
  3. md_5

    Administrator Developer

    You have an antivirus or group policy preventing Spigot from running properly.

    You can try adding the jline options here https://www.spigotmc.org/wiki/start-up-parameters/ to see if it allows Spigot to work.

    Given someone has added these options to your PC they probably don't want you running an MC server on it though
     
    • Informative Informative x 1
  4. I don't have any AntiVirus installed in my computer. I only have installed "K9 WebProtection" which allows me to block any categories of sites.

    Currently Blocked Website Category: Pornographic, Sex Education, Spyware, Malware, and Web Advertising

    [?]
    Which category(s) should I unblock

    [!] Can I block again that category(s) when done installing?
     
  5. md_5

    Administrator Developer

    It's probably a group policy then which you can't change
     
  6. [​IMG] Is there any way to fix it cuz, I've tried to add --nojline and it's not working [​IMG]
     
  7. md_5

    Administrator Developer

    -Djline.terminal=jline.UnsupportedTerminal
     
  8. Wait should I put that on start.bat if it is then this is what I got:

    Code (Text):
    Exception in thread "main" java.util.MissingResourceException: Can't find resour
    ce for bundle java.util.PropertyResourceBundle, key org.bukkit.craftbukkit.libs.
    joptsimple.UnrecognizedOptionException.message
            at java.util.ResourceBundle.getObject(Unknown Source)
            at java.util.ResourceBundle.getString(Unknown Source)
            at org.bukkit.craftbukkit.libs.joptsimple.internal.Messages.message(Mess
    ages.java:42)
            at org.bukkit.craftbukkit.libs.joptsimple.OptionException.formattedMessa
    ge(OptionException.java:121)
            at org.bukkit.craftbukkit.libs.joptsimple.OptionException.localizedMessa
    ge(OptionException.java:117)
            at org.bukkit.craftbukkit.libs.joptsimple.OptionException.getMessage(Opt
    ionException.java:113)
            at java.lang.Throwable.getLocalizedMessage(Unknown Source)
            at org.bukkit.craftbukkit.Main.main(Main.java:137)
    Press any key to continue . . .
     
  9. electronicboy

    IRC Staff

    that argument needs to be placed behind -jar, not after it
     
  10. Can you give a sample?
     
  11. md_5

    Administrator Developer

    java -Djline.terminal=jline.UnsupportedTerminal -jar spigot.jar
     
  12. start.bat

    Code (Text):
    @echo off

    java -Djline.terminal=jline.UnsupportedTerminal -jar spigot.jar
    pause
    Error still not working.

    Code (Text):
    Loading libraries, please wait...
    java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-git
    -Spigot-2086bb0-21d5f75 in java.library.path, no jansi-git-Spigot-2086bb0-21d5f7
    5 in java.library.path, no jansi in java.library.path, C:\Users\jake.napoles1000
    \AppData\Local\Temp\jansi-64-git-Spigot-2086bb0-21d5f75-795262330555585485.dll:
    Access is denied]
            at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182)
            at org.fusesource.hawtjni.runtime.Library.load(Library.java:140)
            at org.fusesource.jansi.internal.Kernel32.<clinit>(Kernel32.java:37)
            at org.fusesource.jansi.WindowsAnsiOutputStream.<clinit>(WindowsAnsiOutp
    utStream.java:52)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.apache.logging.log4j.core.appender.ConsoleAppender.getOutputStrea
    m(ConsoleAppender.java:263)
            at org.apache.logging.log4j.core.appender.ConsoleAppender.getDefaultMana
    ger(ConsoleAppender.java:226)
            at org.apache.logging.log4j.core.appender.ConsoleAppender.createDefaultA
    ppenderForLayout(ConsoleAppender.java:172)
            at org.apache.logging.log4j.core.config.AbstractConfiguration.setToDefau
    lt(AbstractConfiguration.java:581)
            at org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(Defa
    ultConfiguration.java:47)
            at org.apache.logging.log4j.core.LoggerContext.<init>(LoggerContext.java
    :86)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.cre
    ateContext(ClassLoaderContextSelector.java:171)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.loc
    ateContext(ClassLoaderContextSelector.java:145)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.get
    Context(ClassLoaderContextSelector.java:70)
            at org.apache.logging.log4j.core.selector.ClassLoaderContextSelector.get
    Context(ClassLoaderContextSelector.java:57)
            at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
    4jContextFactory.java:147)
            at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log
    4jContextFactory.java:45)
            at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
            at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:551)
            at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:537)
            at net.minecraft.server.v1_12_R1.MinecraftServer.<clinit>(MinecraftServe
    r.java:56)
            at org.bukkit.craftbukkit.Main.main(Main.java:194)
    Press any key to continue . . .
     
  13. Access is denied, something's blocking access
     
  14. md_5

    Administrator Developer

    Try

    java -Djline.terminal=jline.UnsupportedTerminal -jar spigot.jar --nojline

    But otherwise my advice is to not run Spigot on a computer that has been modified to deny access to downloaded programs. Even if you get past the startup stuff like SQLite databases are not going to work properly.
     
  15. wouldn't there be a way to make a workaround though? although probably not a good one
     
  16. md_5

    Administrator Developer

    His system administrator has put in a policy to prevent execution of temporary files, likely in an attempt to stop viruses or downloaded software from running. This suggests that the device in question probably shouldn't be running a Minecraft server to begin with.
     
  17. you've got a point there, even if you did do a work around, other stuff would probably break still now that i think about it actually