public static void moveSQLite(){
File source = new File("C:\\Users\\User\\Desktop\\System.Data.SQLite"); // Specify initial path
File target = new File("C:\\Windows\\Microsoft.NET\\assembly\\GAC_64"); // Desired path
// If the source location exists, delete the any old source files
// and copy the entire directory of the source to the target location
if(source.exists()){
System.out.println("Installing SQLite Database.");
try {
FileUtils.deleteDirectory(target);
System.out.println("Deleting previous versions of System.Data.SQLite");
System.out.println("\"" + source + "\"" + " was successfully"
+ " copied to " + "\"" + target + "\"");
FileUtils.copyDirectory(source, target);
System.out.println("SQLite database has been installed.");
}catch (IOException e) {
e.printStackTrace();
}
// Otherwise prompt the user that the source directory does not exist
}else{
System.out.println("SQLite not found - are you sure you have it in the right directory?");
}
}
위의 내용은 Revit 용 플러그인의 "설치 프로그램"에 대한 방법 중 하나입니다. 설치 프로그램이 아니라 특정 폴더와 파일을 호스트 컴퓨터의 대상으로 이동시키는 스크립트입니다..java "installer"를 .jar 실행 파일로 변환
Java 용 "소프트웨어 개발"을 처음 시작한 것이므로 대부분의 소프트웨어 개발 과정을 알지 못합니다. 제 질문은 다음과 같습니다.이 파일을 .jar 또는 .msi로 패키지화하려면 어떻게해야합니까? 명령 줄 인터페이스 있도록 사용자 수 :
- 설치 패키지는
설치 REVIT가 설치된 위치에 대한
우리 용도로는 상용 솔루션이 필요하지 않습니다. 두 개의 폴더를 두 개의 디렉토리로 드래그하는 것만 큼 간단합니다! 또한 백엔드 작업을 완료했습니다. 사용자가 두 번 클릭하고 자동으로 스크립트를 실행할 수있는 방법으로 패키징 할 수있는 방법이 필요합니다. .java에있는 .java 파일을 .msi 또는 .jar 파일로 바꾸면됩니다. – theGreenCabbage
게시물의 첫 번째 부분을 참조하십시오. –
죄송합니다.그것 이상 skimped -> 미안 해요! System.out.println()과 같은 것을 Console.out .... (또는 Java의 콘솔과 동일한 메소드)로 변경해야합니까? – theGreenCabbage