Results 1 to 14 of 14
Thread: .jar extension trouble
- 03-06-2012, 12:20 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
.jar extension trouble
Hello I'm new to the Java world so please have some patience with me while I learn the basics.
Recently I installed some new stuff on my PC and after that I found out that I can't execute .jar files anymore.
I knew that the problem was in file type association so I tried to set it manualy.
When that didn't work I tried to set it using Creative Element Power Tools, which again didn't work.
Then I tried full reinstallation of Java enviroment and I'am still where I started.
I have attached a screenshot so you can see current state of things.

Thank you for your advice. Dalex
- 03-06-2012, 12:56 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: .jar extension trouble
WHat happens when you do:
<path to>\javaw -jar <your jar file>
from a command line, in the directory where your jar file is located?Please do not ask for code as refusal often offends.
- 03-06-2012, 12:57 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: .jar extension trouble
What happen when you double click on the jar file?
- 03-06-2012, 04:09 PM #4
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
- 03-06-2012, 06:43 PM #5
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
Re: .jar extension trouble
WHat happens when you do:
<path to>\javaw -jar <your jar file>
from a command line, in the directory where your jar file is located?
Yeah I had to change directory of my Java installation for it to work. But yes, then it actually executes.
But when I tried to change path to javaw in CEPT it still did not work.Last edited by Dalex; 03-06-2012 at 06:46 PM.
- 03-07-2012, 04:15 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Re: .jar extension trouble
By right-click on your jar file see the exact file association is the correct one.
- 03-07-2012, 06:25 AM #7
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
- 03-08-2012, 10:08 PM #8
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
Re: .jar extension trouble
C'mon can't anyone help me?
Does anyone have any idea how to fix this?
- 03-09-2012, 09:31 AM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
- 03-09-2012, 02:37 PM #10
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
Re: .jar extension trouble
Well I tried to run it from cl and it did not work so I relocated main java directory from:"C:\Program Files\Java" to "C:\Java" and I also changed path to javaw.exe in CEPT.
Then I could open it from the cl but I still cant open it buy double click or by rightclick + open.
So Im basicly where I began.
- 03-09-2012, 03:13 PM #11
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: .jar extension trouble
If it didn't work running from where Java was originally located in the 'C:\Program Files\Java' then I suspect that's your problem.
What are the contents of that directory?Please do not ask for code as refusal often offends.
- 03-11-2012, 10:35 AM #12
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
- 03-12-2012, 11:27 AM #13
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: .jar extension trouble
I just get the impression you've shifted a load of Java stuff around now, which makes it almost impossible to figure out what the problem might have been.
Things like "I relocated main java directory" make me flinch.Please do not ask for code as refusal often offends.
- 03-12-2012, 05:31 PM #14
Member
- Join Date
- Mar 2012
- Posts
- 8
- Rep Power
- 0
Re: .jar extension trouble
Yes I've relocated it because it did not work from it's original path.
And it actualy did solve my problem partialy because now I can play .jar files via command line.
But because I want to make it completely clear to everyone I've returned it now to it's original place where it was installed.
Similar Threads
-
Extension problem using JFileChooser
By JavaFan in forum New To JavaReplies: 1Last Post: 12-22-2011, 04:44 AM -
Text file extension?
By chrisLU5 in forum New To JavaReplies: 4Last Post: 05-14-2011, 12:20 AM -
Help with creating an instance of a class extension
By Inferno719 in forum New To JavaReplies: 19Last Post: 05-04-2011, 03:53 AM -
File Extension Filter
By heartysnowy in forum New To JavaReplies: 9Last Post: 10-09-2010, 01:33 PM -
Regex for file extension
By gapper in forum New To JavaReplies: 1Last Post: 01-31-2008, 03:59 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks