Skip to content

Java and regex lexer

I am trying to make some sort of Lexer in Java using regex for a custom markdown “language” I’m making, it’s my first time working with this stuff so a little lost on a few things. An …

Cannot run Launch4j (illegal access)

I would like to create an .exe file for my java desktop application. Hence, i saw that Launch4j was the best option. When I ran. the file, i have the following error message. I am working under Mac OS Catalina, version 10.15.3. and my Java version environment: openjdk version “11.0.7” 2020-04-14 O…

Getting BadPaddingException due to byte[] too long to decipher

The following code is tested for short strings, in that case it decrypts the string nicely. But if the string is too large I get fired the exception I mention. What could I do so it decrypts the string correctly maintaining the same large string to decrypt? Edit, well technically what’s decrypted is a b…