Posts

Showing posts from October, 2020

How to secure java code [jar file]

 I have been searching an easy way to encrypt my code to ensure my java code security. I have found an easy solution (free solution), May be you might like it :  I'm useing jCrypt.jar for this here. Go download the file.     source : https://github.com/wille/jcrypt/releases How to use jCrypt.jar to encrypt jar file ?  Step 01 : Make sure you have jCrypt.jar & Bin.jar in the same directory.  Step 02: Double click jCrypt.jar file. Step 03: Click Browser button & select the jar file you want to encrypt.  & click next  Step 05 : Select your Mail file if not automatically selected the right one.  & click next  Step 06 : Select "Encrypt classes (Resources will be in .jar)" option & click next  Step 06 : Select the location along with file name where you want to write you file.  & click next  Done :) close the jCrypt. 

How to create Hyper link in JavaFx

     @FXML     void openBrowser(ActionEvent actionEvent){     if(Desktop.isDesktopSupported())     {         try {             Desktop.getDesktop().browse(new URI("http://technogearup.com/"));         } catch (IOException e1) {             e1.printStackTrace();         } catch (URISyntaxException e1) {             e1.printStackTrace();         }     }     } useful resource : https://www.reddit.com/r/javahelp/comments/4bqcci/how_to_make_a_link_hyperlink_in_javafx/

Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: argument type mismatch

Image
Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.misc.Trampoline.invoke(Unknown Source) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.misc.MethodUtil.invoke(Unknown Source) at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1769) Solution :