How can I make OS X recognize drive letters?

后端 未结 7 1685
长情又很酷
长情又很酷 2021-01-20 23:11

I know. Heresy. But I\'m in a bind. I have a lot of config files that use absolute path names, which creates an incompatibility between OS X and Windows. If I can get OS X (

7条回答
  •  盖世英雄少女心
    2021-01-20 23:56

    The only way you can replace java.io.File is to replace that class in rt.jar.

    I don't recommend that, but the best way to do this is to grab a bsd-port of the OpenJDK code, make necessary changes, build it and redistribute the binary with your project. Write a shell script to use your own java binary and not the built-in one.

    PS. Just change your config files! Practice your regex skills and save yourself a lot of time.

提交回复
热议问题