How to use java to start a snap application

Spread the love

I am converting my Windows java8 program to also run on Ubuntu 20.04 and I need to now make my ubuntu java8 program start the chrome browser and open a specific url (or multiple urls).
The java ProcessBuilder needed a bit of tweaking to start programs such as gedit (as a test). I now need to start chrome – installed as a snap package.
There are lots of articles explaining snaps and how I can build a java application and create a snap from it.
I can’t find anything to show me how to use java to execute a snap application like chrome or firefox or brave.
Can anyone help me get started ?

X ITM Cloud News


Leave a Reply

Next Post

Ubuntu kernel - What is "Vendor request failed"?

Wed Sep 16 , 2020
Spread the love          I have a Dell notebook with Ubuntu 18.04 installed. I use a Wifi dongle that suddenly stopped working and I’m getting a bunch of messages when I reboot the system, like that below: ubuntu kernel [ 1437.231596] mt7601u 3-3:1.0: Vendor request req:07 off:101c failed:-71 I reinstalled the OS, […]

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware