Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java exe ausführen

import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;//was wir importieren müssen

public static void main(String[] args) throws IOException {
  String path = "/example:/example/example.exe/"; //den absoluten Pfad angeben
  open(path); 
}

public static void open(String targetFilePath) throws IOException {
  Desktop desktop = Desktop.getDesktop();
  desktop.open(new File(targetFilePath));//Datei wird geöffnet
}
Comment

PREVIOUS NEXT
Code Example
Java :: copy one string to another without using any loops or assignment operator 
Java :: java lambda expression in priorityqueue 
Java :: java enum valueof() 
Java :: android frame to bitmap is null 
Java :: how get most comon element in map java 
Java :: mapToJsonString 
Java :: @Bean public ModelMapper modelMapper() { ModelMapper modelMapper = new ModelMapper(); modelMapper.getConfiguration() .setMatchingStrategy(MatchingStrategies.STRICT); } 
Java :: Java Protected Access Modifier package two 
Java :: diamonds 
Java :: how to send a message to player in eclipse 
Java :: android studio how to move a picture canvas 
Java :: java no enum constant 
Java :: remove activity from recent list android 
Java :: Android kotlin send debug log as slack message 
Java :: how to do two constructors with super 
Java :: UIManager.setLookAndFeel Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke because "style" is null 
Java :: Path to home directory java 
Java :: spring-boot java header Content-Type constant 
Java :: stack java 
Java :: download a website as string kotlin 
Java :: leetcode egg drop 
Java :: how do you create a txt file in java 
Java :: is type java 
Java :: javalin pom 
Java :: android java how to clear or close cursor 
Java :: RTC_WAKEUP 
Java :: java tostring methode überschreiben 
Java :: give text color and font size in android string 
Java :: Java Creating ArrayDeque 
Java :: @column spring boot jpa 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =