Create a hard link in Java
•
Java
At present, I pass the runtime Exec() uses the 'ln' command The only problem is that in order to do this fork, we need twice the heap space of the application My application is a 64 bit application with a heap size of about 10gig, so it runs out of space I can't find any configuration that can solve this problem
I don't want to use JNI either In addition, I've heard that this tool will soon be available in Java 7
Solution
You can try JNA instead of JNI (JNI has some obvious advantages); Yes, check JSR 203
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码