| | |
'Unable to access jarfile'
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi everyone,
Do this list what is in your manifest file here. Also list exactly what you are typing on the command line with all the full path and class path so we can see what's wrong
Richard West
Do this list what is in your manifest file here. Also list exactly what you are typing on the command line with all the full path and class path so we can see what's wrong
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
I am sure that my jar and manifest files are correct:
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Main-Class: Payroll
I was typing in the command prompt: java -jar myJar.jar
it returns 'unable to access jar file.
my jar file is myJar.jar located at C:\Documents and Settings\Josh\My Documents\JAVA Programs.
My Class path is payroll
Manifest-Version: 1.0
Created-By: 1.4.2_04 (Sun Microsystems Inc.)
Main-Class: Payroll
I was typing in the command prompt: java -jar myJar.jar
it returns 'unable to access jar file.
my jar file is myJar.jar located at C:\Documents and Settings\Josh\My Documents\JAVA Programs.
My Class path is payroll
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi everyone,
Do this
I haven't run java programs from the command line for quite some time but i think this is it. Someone correct me if i am wrong
The manifest file looks correct.
Let me know if it works
Richard West
Do this
Java Syntax (Toggle Plain Text)
java -jar -cp .;C:\Documents and Settings\Josh\My Documents\JAVA Programs myjar.jar
I haven't run java programs from the command line for quite some time but i think this is it. Someone correct me if i am wrong
The manifest file looks correct.
Let me know if it works
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
Hi everyone,
The starting prompt needs to be the location of java.exe
Richard West
•
•
•
•
Originally Posted by joshSCH
hmm.. when I type that in it says 'Unable to access jarfile and'
Maybe its because the starting prompt says: C:\Documents and Settings\Josh> ?
Richard West
Microsoft uses "One World, One Web, One Program" as a slogan.
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
Doesn’t that sound like "Ein Volk, Ein Reich, Ein Führer" to you, too?
— Eric S. Raymond
Tell me what type of software do you like and what would you pay for it
http://www.daniweb.com/techtalkforums/thread19660.html
![]() |
Similar Threads
- Unable to access secure pages (Windows 95 / 98 / Me)
- Unable to access iDisk etc (OS X)
- Unable to access Web from Win 98 machine on home LAN (Web Browsers)
- Unable to access second hard drive (Storage)
Other Threads in the Java Forum
- Previous Thread: Recognizing and working with an array's contents
- Next Thread: help with Java
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary bluetooth character chat class classes client code component consumer csv database desktop draw eclipse error event exception fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javac javaee javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie objects online oracle oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion robot rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time tree ubuntu update windows






