need urgent help in creating symbolic link through java program

36 views
Skip to first unread message

shweta sharma

unread,
May 16, 2012, 4:36:33 AM5/16/12
to bo...@googlegroups.com
Hi ,

I am getting an unprecedented problem in creating a symbolic link through java program.
It was working fine few days back  .

below is program exception.


[root@mtest ssharma]# java SymbolicLink tt/tt.txt test.txt
Operating system is [Linux].
UnsatisfiedLinkError error in loading [CreateSymbolicLinkLinux32].java.lang.UnsatisfiedLinkError: no CreateSymbolicLinkLinux32 in java.library.path
UnsatisfiedLinkError error in loading [CreateSymbolicLinkLinux64].java.lang.UnsatisfiedLinkError: no CreateSymbolicLinkLinux64 in java.library.path
Symbolic link supported = false
Linking [test.txt] to [tt/tt.txt].
iRet = -1

I checked what is  set in java.library.path . by firing  another program that displays System.getProperty("java.library.path").
and it is  the output

[root@mtest ssharma]# java Envparam java.library.path
 Env var for java.library.path:/usr/java/jdk1.5.0_14/jre/lib/amd64/server:/usr/java/jdk1.5.0_14/jre/lib/amd64:/usr/java/jdk1.5.0_14/jre/../lib/amd64

I am able to create soft link by  unix command ln -s tt test.txt .

Can any body let me know which lib is  responsible to create symbolic link in linux system .
I think in java.libraray.path that path to that shared lib is  not being set .

Any help is appreciated.

Thanks
Shweta

singh.janmejay

unread,
May 16, 2012, 2:27:16 PM5/16/12
to bo...@googlegroups.com

Whatever native methods of CreateSymbolicLinkLinux32 class are implemented by, that is the missing library. The suffix 32 tells me you may be missing 64 bit varient, or u are in a new architecture.

--
You received this message because you are subscribed to the Google Groups "Bangalore Open Java Users Group- BOJUG" group.
To post to this group, send email to bo...@googlegroups.com.
To unsubscribe from this group, send email to bojug+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bojug?hl=en.
Reply all
Reply to author
Forward
0 new messages