For some hours i try to package a b4j project. My setup seems ok, because i had already success with and almost identical project.
But in one project i come to this point:
When running jlink i get four points in the protocoll window, then in line 179 and 180, in
Private Sub Runshell, : Wait For shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) i get back in StdOut:
Error: java.lang.IllegalArgumentException: org.apache.commons.lang.enum: Invalid package name: 'enum' is not a Java identifier
I have tried to deactivate some libs, but did not find a solution. Any idea to find the source of the problem?
It comes from commons-lang-2.x.jar.
It is not referenced from any of the internal libraries.
Two things to try:
1. Backup that jar. Open it with 7zip and delete the enum folder.
Run your app again and see whether it works or not. Good chance that it will not.
2. Switch to commons-lang3 which doesn't include this misnamed package.