ramjeev -2 Junior Poster in Training

Hi,
I m trying to get the current path using the following.Its works fine (gets the current working directory) in Windows both in debug & release mode.Whereas, in LINUX ,works only in debug mode but not in release mode.
i.e.,It gets home path(/root) instead current path(/root/ABC/..) while running in release(by clicking jar file)

String Dest = System.getProperty("user.dir");

I dont know why its so.Ur help would be appreciated.

Thanks,
ramjeev

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.