Hello.
You can just give the full absolute path name for the hibernate config file in the java code.
And while running the program you need to set the classpath settings appropriately so that you will not get "CLASS NOT FOUND" exceptions.