There are Java APIs for writing VST plugins, so I'm thinking that the API exposes a way of doing this, probably by getting the host (Cubase, whatever) to read it in on behalf of your plugin. The JDK itself won't provide anything for doing so, though. Your best bet is the dev. forums for whatever API you're using for this, or Steinberg have almost certainly got dev. forums and suchlike, too
I didn't even know you could use Java for VST, cheers for pointing me at that!