Can i compile weka into native code

Yes, you have the following options:

  • Excelsior JET - a commercial tool for compiling Java into native code (Windows/Linux)
  • gcj - a free, cross-platform tool for compiling Java into native code

See the article Compiling WEKA with gcj for more details.