Programmatically converting obj to j3o

Hey, I would like to allow users to upload there own models, but I don’t wanna deal with multiple file types. Is there a way to convert these files without the IDE in Java?

Note that asset paths may not change for j3o files. So if a texture was loaded from Textures/MyTextures/Texture.jpg that texture has to be in the same path when the j3o is loaded.