Results 1 to 6 of 6
- 03-05-2011, 05:31 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
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. :(
- 03-05-2011, 05:37 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
The error is coming from devicetool.jar. Change the code so that it is a little more meaningful.
- 03-05-2011, 05:40 AM #3
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
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 =(
- 03-05-2011, 05:49 AM #4
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,545
- Rep Power
- 11
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.
- 03-05-2011, 05:55 AM #5
Member
- Join Date
- Mar 2011
- Posts
- 3
- Rep Power
- 0
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
- 03-05-2011, 04:35 PM #6
Similar Threads
-
how to make command prompt in java
By udinulis in forum Java 2DReplies: 4Last Post: 07-14-2010, 06:52 AM -
Command Prompt Java
By kelvinsmj in forum New To JavaReplies: 8Last Post: 11-27-2009, 10:30 AM -
Class Not Found command promt
By TenF in forum New To JavaReplies: 9Last Post: 08-18-2009, 12:36 AM -
Java command line
By agouzoul in forum New To JavaReplies: 2Last Post: 04-02-2008, 12:12 PM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks