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: Problem executing a jar file

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

    Default Problem executing a jar file

    I tried to execute a jar file, and i got the following error:

    C:\Users\jpf\Documents\NIPSSMService\bin>java -jar SSecurityModule.jar
    text lenght: 28
    java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at nfp.ssm.core.SSModuleClient.<init>(SSModuleClient.java:87)
    at nfp.ssm.core.SSModuleClient.main(SSModuleClient.java:146)
    What could be the problem? and can this be fixed?.

    Here is the download link for the jar file:
    https://mega.co.nz/#!x8oyHTqa!QT1qWh0y_AeJJpXwll50wgourhA3-reah6MocGJmXvA


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,338
    Thanks
    56
    Thanked 2,376 Times in 2,346 Posts

    Default Re: Problem executing a jar file

    C:\Users\jpf\Documents\NIPSSMService\bin>java -jar SSecurityModule.jar
    text lenght: 28
    java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Un known Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress( Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at nfp.ssm.core.SSModuleClient.<init>(SSModuleClient. java:87)
    at nfp.ssm.core.SSModuleClient.main(SSModuleClient.ja va:146)
    What address was the Socket statement at line 87 trying to connect to? Why do you think that the server at that address will accept a connection from the program?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Problem with executing data from CSV file
    By 28mikes in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 15th, 2013, 05:48 PM
  2. Problem running jar file
    By zerogmd in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 15th, 2013, 03:12 PM
  3. problem with jar file
    By desoky725 in forum AWT / Java Swing
    Replies: 1
    Last Post: September 21st, 2011, 08:21 AM
  4. Problem With .Jar File
    By ajay_mitm in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 16th, 2010, 02:16 AM
  5. Problem in Creating Jar file
    By sikriyogesh in forum Member Introductions
    Replies: 0
    Last Post: November 20th, 2009, 02:12 AM