diff --git a/lib/stompede/stomp.rb b/lib/stompede/stomp.rb
index <HASH>..<HASH> 100644
--- a/lib/stompede/stomp.rb
+++ b/lib/stompede/stomp.rb
@@ -13,6 +13,8 @@ module Stompede
   module Stomp
     Parser = if defined?(CParser)
       CParser
+    elsif defined?(JavaParser)
+      JavaParser
     else
       RubyParser
     end
Enable JavaParser by default on JRuby