Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Use an MS Access database as command line arguments

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Use an MS Access database as command line arguments

    Hi guys

    I am an absolute newbie with Java, spent a few days reading / watching online literature regarding Java and also searched but can't find an answer to my question.

    I have a pre-written and compiled Java application (.Jar extension) which runs perfectly from a command line. The application takes 3 arguments to run. Is it possible to get these arguments from an MS Access database and re-iterate so the command line runs with each record in the Access database (access db contains 3 fields, each field will be 1 argument passed to the Java app).

    Apologies if this is in the wrong section, it was the closest I could find.

    Thank you.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Use an MS Access database as command line arguments

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    You may be able to accomplish what you've described using an OS batch file or command line script rather than messing with the contents of the .jar file. It's hard to know what could be done with Java without knowing what's in the .jar file and whether it can be modified.

Similar Threads

  1. Arrays , command line arguments
    By Jad_Asmar in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 30th, 2013, 11:25 AM
  2. Help understanding Command-Line Arguments
    By Truck35 in forum Collections and Generics
    Replies: 1
    Last Post: December 13th, 2012, 06:16 PM
  3. How to check for shortage of command line arguments
    By IHeartProgramming in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 16th, 2012, 12:00 AM
  4. command line arguments
    By rizla in forum Member Introductions
    Replies: 3
    Last Post: December 12th, 2010, 11:14 PM
  5. How to Send command line arguments in Eclipse?
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: April 23rd, 2009, 11:37 AM