Small suggestion.
Unlike it's possible to insert #If Java #End If in any place inside Basic code, during compilation all import statements are moved to top of Java module, all the rest - to bottom.
I offer - not to move to bottom, but to leave in place. This allows to insert Java code inside Basic subroutines and will give access to local variables.
Second suggesstion. Instead (or in addition) to #If Java #End If , it's possible to mark inline Java statements by special symbol. For instance, by ! (like in Powerbasic inline assember).