Перевод текста во время ввода текста в php

У меня была та же проблема, и я решил так:

File currentJavaJarFile = new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath());   
String currentJavaJarFilePath = currentJavaJarFile.getAbsolutePath();
String currentRootDirectoryPath = currentJavaJarFilePath.replace(currentJavaJarFile.getName(), "");

Надеюсь, что я вам помог.

-1
задан Adarsh Bhatt 13 July 2018 в 06:22
поделиться