everthing was correct i did it 5 times and changes cd
Type: Posts; User: Java Programmer
everthing was correct i did it 5 times and changes cd
#6
"Unable to access jarfile MessageBoxCreator.jar "
Was My Error..
No In Post #11
Microsoft Windows XP [Version 5.1.2600]
D:\JavaDevelopment\Testing\ForumQuestions7>java -jar asdfasdf.jar
Unable to access jarfile asdfasdf.jar
...
i no longer have the error?
not to disrespect you but i did already just without everything, like the same exact example you posted
Ive Check My Spelling and nothing is misspelled.
I Do Not Understand What this means, ive made the jar file 5 times and i kept getting the same thing!! D:
This happend a month before when i exported it from eclipse?
Yes:
Manifest-Version: 1.0
Created-By: 1.7.0_02 (Oracle Corporation)
Main-Class: MessageBoxCreator
Manifest:
mainClass.txt
Main-Class: MessageBoxCreator
Command Line:
jar cfmv MessageBoxCreator.jar mainClass.txt MessageBoxCreator.class MainClass.class MainClass$1.class
?
So they need the classpath or they do not need the classpath
im using jdk?
My first Path:
PATH
C:\Program Files\Java\jdk1.7.0_02\bin
So Confused: I have
JDK
Jre6
Jre7
Only thing ive personal added was java api in my jdk.
So Users need the path and not the classpath?
User:
PATH - C:\Program Files\Java\jdk1.7.0_02\bin
System:
CLASSPATH - C:\Program Files\Java\jdk1.7.0_02\bin
I want to release programs but i dont think people will be to happy if they have...
I changed the Environmental variables on my other computer and it worked.
while downloading jdk i did the same on my laptop and then it worked.
I got the program to work, but when i got it to work i download jdk then it worked?
Do you need jdk to run jar files in general?
Yes. That is where the code came from, From CMD
java -jar MessageBoxCreator.jar
Yes 90% when i do i google search there are 10+ pages with no one able to answer the question.
Unable to access jarfile MessageBoxCreator.jar
That didnt help, im doing it correctly, ive looked it up and 90% of people that are making java applications into jar files get the same error when transfecting the application throughout other users.
i made a jar file using only notepad, a compiler and jdk to make it into a jar
it runs on my computer but it dosent run on my laptop? says it cannot find main class?