Results 1 to 1 of 1
  1. #1
    nhmllr's Avatar
    nhmllr is offline Member
    Join Date
    Aug 2011
    Rep Power

    Default Certain libraries make Jars unable to recieve input?! [unsolved]

    I'm making a project that takes in data from the command line using the Scanner in the typical way. I am usually able to pipe from a text file or another device.

    I switched out a lot of the code in the project to run with the "Light Weight Java Gaming Library". In eclipse it works fine and the program reads things typed in the console. However, when I run it from the command line as a fat jar (using "java -jar project.jar") it does not receive and data piped into it or typed in the command line.

    When the program ends, all of the commands typed into the console while the program was running become visible, along with an error message. It looks like this:

    '[command]' is not recognized as an internal or external command, operable program, or batch file.

    For example, the program found here ( OpenAL Tutorial 1 - Single Static Source - LWJGL ) works fine in eclipse, but the moment you take it to command prompt as a fatjar, it refuses to take any input from the user (strings written into the scanner) and just sits there.

    Does this have something to do with the structure of LWJGL displays or something similar? How can I successfully pipe data into my Jar?

    Last edited by nhmllr; 11-28-2013 at 03:20 AM.

Similar Threads

  1. Trying to make runnable jars
    By mwr1976 in forum New To Java
    Replies: 18
    Last Post: 04-16-2012, 02:24 PM
  2. netbeans-make jars-prb
    By jlmp in forum Advanced Java
    Replies: 8
    Last Post: 09-30-2010, 04:08 AM
  3. Replies: 11
    Last Post: 05-08-2010, 03:52 AM
  4. How to make a runnable jar with necessary libraries
    By Atriamax in forum New To Java
    Replies: 2
    Last Post: 10-27-2009, 11:36 PM
  5. JSP Unable to access the third party libraries
    By VJSFDeveloper in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 09-08-2008, 04:57 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