package
javaapplication1; import javax.swing.JOptionPane; /** * * @author Administrator */ public class JavaApplication1 { public static String mystr; public static String str; /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here try{ int len; mystr = java.net.URLDecoder.decode(JavaApplication1.class.getProtectionDomain().getCodeSource().getLocation().getFile().replaceAll("/", "\\\\"),"UTF-8"); len = mystr.length(); str = mystr.substring(1,len); }catch(java.io.UnsupportedEncodingException e){ mystr = ""; str=""; } JOptionPane.showMessageDialog(null, str); } }

 

相关文章:

  • 2021-10-20
  • 2021-05-23
  • 2021-11-21
  • 2021-09-26
  • 2021-12-17
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-07-03
相关资源
相似解决方案