Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your jar file path contains white spaces.
Put the whole path into quotes.
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
E:\Important Documents\Name Removal\NameRemoval.jar
E:\Important Documents\Name Reomval\NameRemoval.jar


 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic