aspose file tools*
The moose likes Beginning Java and the fly likes Unable To Run Jar File... Urgent.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Unable To Run Jar File... Urgent...." Watch "Unable To Run Jar File... Urgent...." New topic
Author

Unable To Run Jar File... Urgent....

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,

I wrote some code in Eclipse then i created a runnable jar file from the export option. But my problem is I am unable to run it.
I run the command java -jar NameRemoval.jar
I get the error message as "Unable to access jarfile NameRemoval.jar".

My jar file is in the folder E:\Important Documents\Name Removal Folder. And I am executing the command from within that folder.

I am using java 1.6. Please help. Extremely urgent....
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 298
Hi Somnath, maybe this can help you:
http://forums.sun.com/thread.jspa?threadID=644420&tstart=60

And you can get a lot of information from google http://www.google.com/search?hl=en&q=%22Unable+to+access+jarfile%22

Good luck!! ;)
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
I have run the the file with the full path as well but still didn't work.

When I run the jar command with the full path I get the error:
Unable to acsess jarfile: E:\Important.

I did a google to find my solution first. But i found nothing of use. So i posted here.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10392
    
    8

Your jar file path contains white spaces.
Put the whole path into quotes.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Ran the command java -jar "E:\Important Documents\Name Removal\NameRemoval.jar". Still I got the error...

Unable to access jarfile E:\Important Documents\Name Reomval\NameRemoval.jar
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10392
    
    8

E:\Important Documents\Name Removal\NameRemoval.jar
E:\Important Documents\Name Reomval\NameRemoval.jar


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable To Run Jar File... Urgent....