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: specify native library in java command line

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default specify native library in java command line

    My application is :
    1. packed into 1 jar file
    2. use sqljdbc4.jar
    2. use a native library: "Microsoft SQL Server JDBC Driver 3.0".(use it in Ecplise and it works fine)
    3. run by this command: "java -jar myapp.jar".
    4. use jdk1.6.0_23

    btw: I config all the class paths in the manifest.mf file

    My application is failed to run, since it cannot find the native library. How/where to specify the native library location?
    Last edited by major; June 14th, 2011 at 03:08 AM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: specify native library in java command line

    See posts at: specify native library in java command line

Similar Threads

  1. Text editor and command line
    By cl2606 in forum Java IDEs
    Replies: 2
    Last Post: June 8th, 2011, 08:20 AM
  2. Run command line structure in Java
    By soheilz92 in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: April 20th, 2011, 02:26 AM
  3. command line arguments
    By rizla in forum Member Introductions
    Replies: 3
    Last Post: December 12th, 2010, 11:14 PM
  4. [SOLVED] Giving Java the name of a file to be read via command line?
    By lavloki in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: October 14th, 2010, 10:07 AM
  5. [SOLVED] Command Line Argument Help
    By EmSaint in forum Loops & Control Statements
    Replies: 2
    Last Post: January 28th, 2010, 10:55 AM