I have a path in windows as:
C:\\Users\\Sneha\\.netbeans\\5.5.1\\tomcat55.properties
How can we convert the above path to Linux path. what does .netbeans and tomcat55.properties path means. Any help would be appreciated.
I have a path in windows as:
C:\\Users\\Sneha\\.netbeans\\5.5.1\\tomcat55.properties
How can we convert the above path to Linux path. what does .netbeans and tomcat55.properties path means. Any help would be appreciated.
you should read this webpage to understand difference between file system in linux and windows.
to convert that windows path to linux path, you must know that names of directories and files are case sensitive in linux,
then except using C:\\Users\\Sneha use this method in java to get current user path in any machine(windows, linux and etc.)
String user_dir = System.getProperty("user.home");
then in linux, path contains only forward slash /. not backward slash \.
so the path you said
C:\Users\Sneha\.netbeans\5.5.1\tomcat55.properties
will be
/home/Sneha/.netbeans/5.5.1/tomcat55.properties
also
.netbeans is a folder,tomcat55.properties is a file.