This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This small problem has been posted on several forums, but still noone has come up with a good explanation, yet alone a SOLUTION...
I hope you are the one to give me the good answers I need
I have a java application that copies files from one folder to another.
This works fine on Windows, but on Mac OS X a Unix executable file like JavaApplicationStub appearently does not like to be copied using Java...
I have tested the application trying to duplicate a whole MyApplication.app package.
I realize that the file system is somewhat different on Mac than Windows, but I have a hard time accepting that java should not be able to copy a unix executable file from one folder to another without damaging the file...?
The copied file has the same size, but the file info does not say "Unix executable file" but "Document".
If I double-click it, it is opened using Terminal, but all it says is "Welcome to Darwin"
If I double-click the original file, (in the original package) the embedded java application is launched...
Can anyone give me a piece of Java code that successfully copies (duplicates) a Unix executable file?