Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default Help with JAVA and command promt!

    Hey guys, I need to execute a java file through my command prompt, but I keep getting an error. Here's what it looks like.

    c:\Documents and Settings\My Name>java -jar devicetool.jar
    Error: Connection refused:connect


    The file is on the right folder. I dont know whats going on. :(

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    The error is coming from devicetool.jar. Change the code so that it is a little more meaningful.

  3. #3
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default

    I'm sorry if my following answer is annoying, but what exactly do you mean, and how would I go on about doing that? I'm not exactly very good at this =(

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    I mean that the program is running correctly.

    Somewhere in your code you are writing the line "Error: Connection refused:connect". You need to locate that place and change the error message so that it is a little more helpful. Like, saying what was being connected to and what credentials were being used.

    -------------------

    I've just had the thought that devicetool.jar might not be your application. Is it something to do with a cell phone? If so sorry I can't help. Maybe whereever you got the jar file from can provide usage instructions.

  5. #5
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default

    It is a tool I downloaded to unlock/ bypass the activation on a palm pre plus. I downloaded the java file and placed it in the folder where my command prompt looks in. I typed in the java -jar devicetool.jar in my command prompt and when i pressed enter it just says that error, that it cant connect. the file is an executable file. I just dont know how to execute it. I dont know why it would refuse? Sorry if this is all confusing. hah

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default

    Better ask the developers of the tool, as pbrockway2 has already said.

    db

Similar Threads

  1. how to make command prompt in java
    By udinulis in forum Java 2D
    Replies: 4
    Last Post: 07-14-2010, 06:52 AM
  2. Command Prompt Java
    By kelvinsmj in forum New To Java
    Replies: 8
    Last Post: 11-27-2009, 10:30 AM
  3. Class Not Found command promt
    By TenF in forum New To Java
    Replies: 9
    Last Post: 08-18-2009, 12:36 AM
  4. Java command line
    By agouzoul in forum New To Java
    Replies: 2
    Last Post: 04-02-2008, 12:12 PM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •