How to get Tool input data's directory path ?

I gave this answer ones to someone else and maybe it can also apply for you. Move your java command to a bash file. In the bash file create a temporary folder, move the input file to that folder and execute the java command. Then move the output files to the galaxy output location variables en remove the temp folder.

2 Likes