How would I find and run the default calculator in java without making my program platform dependent. I could just hard-code all the paths for each major OS, and then find the OS the person is using and then use that OS’s respective path. But, see I don’t want to do it like that, is there anyway to do it without hard-coding the paths in?
Share
I don’t think there is really a concept of the “default calculator” in an OS. Sure, Windows offers a calculator application, but it’s not registered in any way as the calculator, it’s just an application you can run.