Simple reasons for Mac OS x: java.io.UnixFileSystem.createFileExclusively (Native Method)

Source: Internet
Author: User

This blog is too simple! Think of other friends who may have encountered this problem, just record it.

Today, a Java project that was previously on Windows was executed on Mac OS X, which was supposed to be a very easy thing to do, the result is:

Exception in thread "main" java.io.IOException:No such file or directory

At java.io.UnixFileSystem.createFileExclusively (Native Method)

Helpless under, debugging time only found that the original in Windows very many path separators written \ \, it seems later to write Java time or to be rigorous, unified use/, on this experience.

Simple reasons for Mac OS x: java.io.UnixFileSystem.createFileExclusively (Native Method)

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.