i am trying to run a jar file i created from net beans when i built my new project.it is giving me error cant launch application i tried everything.I am using window7,i opened the command prompt and put
assoc jarfile
ftype jarfile="C:\Program Files\Java\jdk1.6.0_01\bin" "%1" %*
and tryied to run it again but useless,wish any body can help me
regards
khaled_jawaher
-2
Junior Poster in Training
Recommended Answers
Jump to Post
- make sure you have JRE installed
should be located at C:\Program Files\Java\jre6(or jre7)- open cmd prompt and navigate to the directory where the file is located
- then type the command java -jar filename.jar (use your jar fileneme) or just double click the jar file
Jump to Postin that case, make sure you have your environmental settings and your classpath in your os set correctly.
All 7 Replies
zeroliken
79
Nearly a Posting Virtuoso
khaled_jawaher
-2
Junior Poster in Training
stultuske
1,116
Posting Maven
Featured Poster
khaled_jawaher
-2
Junior Poster in Training
khaled_jawaher
-2
Junior Poster in Training
gharikrishnan41
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.