What you want is java.awt.Desktop:
Desktop.getDesktop().open( file );
More Related Contents:
- Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )
- Java – Sort Strings like Windows Explorer
- View classes dependency graph plugin? [closed]
- How to assign class level data in a TestNG unit test class
- View’s getWidth() and getHeight() returns 0
- How can I increment a date by one day in Java?
- Selenium – Basic Authentication via url
- In ArrayBlockingQueue, why copy final member field into local final variable?
- Java code To convert byte to Hexadecimal
- SimpleDateFormat and locale based format string
- Should one call .close() on HttpServletResponse.getOutputStream()/.getWriter()?
- How to call oracle stored procedure which include user-defined type in java?
- How do I connect to a SQL Server 2008 database using JDBC?
- JPA eager fetch does not join
- How do I configure HikariCP in my Spring Boot app in my application.properties files?
- Error: Main method not found in class Calculate, please define the main method as: public static void main(String[] args) [duplicate]
- In which thread do CompletableFuture’s completion handlers execute?
- Setting default values to null fields when mapping with Jackson
- Java nested generic type
- How to analyze PermGen contents?
- Hibernate/persistence without @Id
- Can I access new methods in anonymous inner class with some syntax?
- Getting InputStream with RestTemplate
- Java JDBC ignores setFetchSize?
- How to set focus on a view when a layout is created and displayed?
- Dispatcher initialization failed. java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
- javax.xml.bind.UnmarshalException: unexpected element (uri:””, local:”Group”)
- How to convert a Java String to an ASCII byte array?
- Breaking down RSA/ECB/OAEPWithSHA-256AndMGF1Padding
- Converting an int array to a String array