Thread: Donwloading runnable jar "JNI errors"

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Jni error 
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    When I packed a jar off client it works for some people but me and other people get jni error. I know it has to do with packing netty.jar or some type of jar but I am lost. If anyone can help me. Cheers! Discord: elite faze#6284
    Reply With Quote  
     

  2. #2 Donwloading runnable jar "JNI errors" 
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    I have tested a laptop without jdk and it ran and opened a different runnable jar server and worked. Then I tested it on my server and it gave a jni error.

    https://gyazo.com/a3258093f45111656fb7c671c4d2cc24

    I need help, I do not know if I have packed the runnable jar file without something in the lib.

    https://gyazo.com/0942b020888dde052402c5fc80116a65

    build path:

    https://gyazo.com/f2456a7eb8262682ffdec7ff982ef8dc

    If anyone can help me understand a fix this solution. thank you

    discord: elite faze
    Reply With Quote  
     

  3. #3  
    Contributor


    Join Date
    Jul 2010
    Posts
    450
    Thanks given
    256
    Thanks received
    268
    Rep Power
    1305
    Did you try Google for an answer yet?

    Also if you wish someone to add you on Discord, you need Discord username and discriminator (the 4 numbers behind your name).
    Reply With Quote  
     

  4. #4  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    1) Make sure you are using jre 1.8 to run whatever you try to run.
    2) Make sure you are running the correct main
    3) If there still is jni errors, then try change what compiler you use for the project.
    With eclipse right click your project then properties. Here you can pick your compiler that you wish to use.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    Do you think I did if I was posting this on the help section? Lol

    Quote Originally Posted by Nozemi View Post
    Did you try Google for an answer yet?

    Also if you wish someone to add you on Discord, you need Discord username and discriminator (the 4 numbers behind your name).
    Did you comment to help me or to correct that I forgot to add my discord name correctly. Elite faze#6284
    Reply With Quote  
     

  6. #6  
    Contributor


    Join Date
    Jul 2010
    Posts
    450
    Thanks given
    256
    Thanks received
    268
    Rep Power
    1305
    Quote Originally Posted by chase92 View Post
    Do you think I did if I was posting this on the help section? Lol



    Did you comment to help me or to correct that I forgot to add my discord name correctly. Elite faze#6284
    To help you obviously. There really isn't much info to go on, other than a very generic error message, which you could easily Google. That error message is not RSPS specific.

    Here: First result I could find on Google: https://stackoverflow.com/questions/...gain-in-eclips

    You don't need to be a dick about someone suggesting to use Google, just answer them yes or no to the question so you can proceed in getting the help you need if you already tried Google.
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Make sure to extract required JARs in your runnable jar when exporting.

    Attached image
    Attached image
    Reply With Quote  
     

  9. #8 Issue cant resolve ("help") 
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    I am trying to fix this but everyone is saying I am literally just putting an error out there. I am showing what my build path is and error.

    Some players recieve and some do not.

    Error:
    https://gyazo.com/3f0db69fa275947575a862339907582d

    Build Path:
    https://gyazo.com/7fb598ff2545794fc4578d0b95936e56

    Class:
    https://gyazo.com/c2d3784af50f9495c5970ae72b5d7763

    I have looked up many guides/tutorials. I know what is going on but just can not really seem to find the solution.

    Thank you

    Discord: elite faze#6284 - only if you want to.
    Reply With Quote  
     

  10. #9  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    It says the problem in your first picture.

    "This version of Java Runtime only recognizes class file versions up to 52.0"

    So either compile the client with an older version of java or tell your players to get with the times.

    IIRC 56 is Java 12, but Java 8 is a lot more common so try compiling client with java 8.

    Maybe even Java 6 or 7 if you can.
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Oct 2015
    Posts
    120
    Thanks given
    4
    Thanks received
    3
    Rep Power
    18
    Quote Originally Posted by nbness2 View Post
    It says the problem in your first picture.

    "This version of Java Runtime only recognizes class file versions up to 52.0"

    So either compile the client with an older version of java or tell your players to get with the times.

    IIRC 56 is Java 12, but Java 8 is a lot more common so try compiling client with java 8.

    Maybe even Java 6 or 7 if you can.
    How is that possible then if I have the same jdk, jre and updated java on the laptop as the same on my vps when I compiled it?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. jar client weird error
    By janceboy in forum Help
    Replies: 8
    Last Post: 03-18-2015, 11:08 PM
  2. Jar client giving errors to some people
    By MrMiamiii in forum Help
    Replies: 0
    Last Post: 08-11-2014, 04:34 AM
  3. Replies: 3
    Last Post: 08-22-2013, 01:34 AM
  4. Client Errors, Jar, and Webclient Errors
    By Fallen-Armageddon in forum Help
    Replies: 3
    Last Post: 08-29-2012, 11:41 PM
  5. Replies: 8
    Last Post: 05-16-2011, 07:39 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •