How to include package name while compiling ".rb" to ".java" using jrubyc

Hi,

I am compiling my .rb files to .java files in Windows using the command
“jrubyc --java *.rb”. This produces .java files but all the files comes
with default package (no package declaration) is there a way to include
package declaration automatically?

Thanks,
Prabhu

Use “java_package ‘your.package.here’” in the .rb file.

  • Charlie

Charles Nutter wrote in post #1043894:

Use “java_package ‘your.package.here’” in the .rb file.

  • Charlie

Hi,

Thanks a lot for your reply.