For the first question, I think that you just misspell the instruction; it should be "ldc", not "lcd".
The second is more difficult to understand. Are you trying to call methods in jasmin.jar from your Java code? A preferrable method is to execute the jasmin command from your compiler. This could be using method exec in java.lang.Runtime , or it could be in a shell script. In the latter case your compiler proper produces Jasmin code and your script calls first the compiler, then Jasmin. In both cases, you invoke jasmin kust as you would do in the terminal.
The manipulation of the file path is just the fact that if you compile foo/bar/myfile.jl, your compiler must produce Jasmin file foo/bar/myfile.j, which must be assembled by Jasmin to foo/bar/myfile.class. For the latter, you must give Jasmin the command line argument -d foo/bar . Without this, the class file will be placed in the current directory.
Best regards
Björn