issit possible to let java obtain the path that store the specific .java file?

http://www.devx.com/tips/Tip/5697

That will help you locate resources using getResource(). Note that when you run a file, you are not running a .java file so it isn't like you can say "where am I?" and get back the location of a .java file.

thanks for the info. will look into it. =)

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.