Jar file on the desktop double-click to start, but in any other folder can double-click Start

Source: Internet
Author: User

Today was intended to try Java Network launching Protocol (Jnlp,java Network Load Protocol), wrote a simple window program, packaged into a jar saved to the desktop, double-click and so on for half a day did not show up.

I was using eclipse to build the jar file, is there a problem with eclipse build jar?

I created a testframe.jar in the DOS window with Jar CVFM Testframe.jar manifest.mf-c test/, and double-click to run.

I think maybe the Eclipse build jar is out of the question, I accidentally moved this testframe.jar to the desktop, double-click again, faint, also do not show the window.

I am mistaken for Eclipse.

The specific reason is unclear, why the jar file put on the computer desktop on the double-click can not start it???

Who knows the situation?

--------------------------------------------------------------------

Later learned: related to Java7, if the jar is located in the directory where the path contains spaces, double-click does not start up.

Now Java upgrade to: 1.7.0_06-b24, the problem no longer exists.

2011-10-12

Jar file on the desktop double-click to start, but in any other folder can double-click Start

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.