add java example and missing cvsignore files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
719d1a2afc
commit
e06a5d0ccd
9 changed files with 87 additions and 0 deletions
16
Examples/ruby/java/runme.rb
Normal file
16
Examples/ruby/java/runme.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
require 'example'
|
||||
|
||||
Example.JvCreateJavaVM(nil)
|
||||
Example.JvAttachCurrentThread(nil, nil)
|
||||
|
||||
e1 = Example::Example.new(1)
|
||||
e2 = Example::Example.new(2)
|
||||
|
||||
print e1.Add(1,2),"\n"
|
||||
print e1.Add(1.0,2.0),"\n"
|
||||
e3 = e1.Add(e1,e2)
|
||||
print e3.mPublicInt,"\n"
|
||||
|
||||
|
||||
Example.JvDetachCurrentThread()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue