I've dome some searching on the net and found several implementations of ogg vorbis encoder or converter from wav, but they seemed not to work correctly.

Does anyone know of working ogg vorbis encoder or converter? Of course it would be better java based, because i've found some implementations that uses external windows exe files but this solution isn't good if i want to keep my program portable.