java - Disable message print on terminal when using Desktop.browse -



java - Disable message print on terminal when using Desktop.browse -

i'm developing command line tool , @ point redirects user default web browser. utilize next code that

if(desktop.isdesktopsupported()){ desktop.getdesktop().browse(new uri("http://www.example.com")); }

the browser opens without problem there messages printed on console while up. stuff

[6620:6620:0622/180058:error:browser_window_gtk.cc(1082)] not implemented reached in virtual void browserwindowgtk::webcontentsfocused(content::webcontents*)

or

created new window in existing browser session.

is there way stop printing these kind of messages. (as command line application not good). there other way open browser?

thanks in advance

this looks printed browser on startup. these gtk log messages aren't uncommon.

you can start browser straight console verify this.

edit: starting browser handed off operating scheme specific method, there's not much command on it. have improve command can seek launch browser directly:

launch process launch jvm process java application utilize runtime.exec? for linux (more or less cross-distribution): linux: command open url in default browser for windows: launching website via windows commandline

you can utilize desktop.browse if other methods fail.

java

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -