Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 18-01-2010
Member
 
Join Date: Jan 2009
Posts: 66
Unable to execute JAR file in Windows xp

Hello, I have created the jar file with the help of jdk 1.5 and when I try to run or execute that file on my computer which is having installed Windows xp. When I try to execute this file I got the error of below:
Code:
<terminated>Ftp_test [Java application] c:/program files/java/jre1.5.0_06/bin/javaw.exe.
What is the reason behind this.
Reply With Quote
  #2  
Old 18-01-2010
Member
 
Join Date: May 2008
Posts: 2,383
Re: Unable to execute JAR file in Windows xp

There may be possibility that you are not able to create the jar file in right way and that is why you are getting this problem. So, again create the jar file and then you can able to run the jar file on your Windows xp without any problem. So, just try to do this and solve your problem. It may fix all your syntax related problems.
Reply With Quote
  #3  
Old 18-01-2010
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Unable to execute JAR file in Windows xp

I think that you may need to type the command below on your command prompt by opening it into the administrator account.
Code:
C:\>assoc .jar=jarfile
C:\>ftype jarfile="C:\Program Files\Java\jre\bin\javaw.exe" -jar "%1" %*
C:\>ftype jarfile="C:\path\to\your\javaw.exe" -jar "%1" %*
Reply With Quote
  #4  
Old 18-01-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Unable to execute JAR file in Windows xp

There may be possibility that you have not created the right jar file and that is why you are getting this sort of error. If you want to create a jar file then you need to use the command below:
Code:
 jar cf jar-file other
For providing arguments you can make use of the options below:
  • c - It is used to create a JAR file.
  • f - Output sent to the file.
  • jar-file - Name of the jar file which you want to create.
  • other - These are the files which you want to add into the jar file.
Reply With Quote
  #5  
Old 18-01-2010
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Unable to execute JAR file in Windows xp

Hello, I am also getting the same problem while opening the jar file. When I try to open the jar file it gives me error as unable to open the jar file. I have checked all the syntax and it is having all the correct syntax. I am not able to find out any error from the file. What is the reason behind this problem. If I try to open other files then also I got the same error. How to resolve it.
Reply With Quote
  #6  
Old 18-01-2010
Member
 
Join Date: May 2008
Posts: 2,008
Re: Unable to execute JAR file in Windows xp

It may be possible that you are having problem with the Java Virtual Machine and that is why you are getting this error. So, you may need to uninstall the JDK and then again try to install it. If you are using high version of the JDK for creating jar file and now opening it with the low version then also it may possible that you will get that error.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Unable to execute JAR file in Windows xp"
Thread Thread Starter Forum Replies Last Post
Ubuntu: Cannot execute the ext 4 partition file Dakarai Operating Systems 4 12-11-2010 01:07 AM
Motorcross Madness 2 unable to execute on Windows 7 Humbertu Video Games 5 02-02-2010 04:49 AM
.Dav file is not able to execute with Media player Heraclio Windows Software 5 28-01-2010 03:36 AM
How to execute .SUB file into any video format Azariah Windows Software 3 22-06-2009 12:23 PM
How To Execute Iso File? Lupin Windows Software 3 27-04-2008 08:41 AM


All times are GMT +5.5. The time now is 08:26 AM.