One of the ways that Steam allows users to launch games and perform many other operations is, for example, using the URI protocols (from the Valve developer community )
steam://run/<id> will launch the game corresponding to the specified ID.
steam://validate/<id> will check the game files for the specified identifier.
How can I get Java to run these? I donβt even know what you call it, i.e. Do you run URIs or execute them or what? Since these URIs apparently have nothing to return, and the Java URI class has nothing to do with its execution, however the URL does, but it doesn't work!
I tried this:
... try { URI testURI = URI.create("steam://run/240"); URL testURL = joinURI.toURL();
Each combination gives an error: unknown protocol: steam .
The system Steam uses to process URIs definitely works because, for example, I can enter the above URIs in Firefox and work.
My eternal gratitude to the person who gives the answer!
thanks
source share