Log In
Support
New Account
This forum
This project's trackers
This project's forums
This project's tasks
This project's releases
This project's documents
This project's news
Software/Group
People
Skill
Advanced search
Home
My Page
Project Tree
Code Snippets
Project Openings
Ruby Java Bridge
Summary
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
Forums
|
Admin
Discussion Forums:
help
Start New Thread
Nested
Flat
Threaded
Ultimate
Show 25
Show 50
Show 75
Show 100
By:
arton Tajima
RE: RJB-NoClassDefFoundError on import JAVA class [ reply ]
2010-09-15 12:28
Hi, in Windows that JVM is in, it's required to use the directory separator "\" not "/".
So you may set as
c = "c:\\robotium\\robotium-solo-1.7.1.jar;c:\\robotium\\robotium-solo-1.7.1-javadoc.jar"
Regards
By:
Anukul Singhal
RJB-NoClassDefFoundError on import JAVA class [ reply ]
2010-09-12 06:14
Hi,
I am using rjb gem, and trying to import a JAVA class. The JAVA API documentation is located at:
http://www.jarvana.com/jarvana/view/com/jayway/android/robotium/robotium-solo/1.1.1/robotium-solo-1.1.1-javadoc.jar!/com/jayway/android/robotium/solo/Solo.html
I have installed jdk, and installed the relevant jar files, and using the following code:
require 'rjb'
c = "c:/robotium/robotium-solo-1.7.1.jar;c:/robotium/robotium-solo-1.7.1-javadoc.jar"
Rjb::load(classpath = c, jvmargs=[])
@rapi = Rjb::import('com.jayway.android.robotium.solo.Solo')
puts "robotium_class=#{@rapi.inspect}"
But, it fails to import this class, and throws the following error:
>ruby test_robotium.rb
test_robotium.rb:11:in `import': android/view/View (NoClassDefFoundError)
from test_robotium.rb:11
>Exit code: 1
Any help on this would be appreciated. To download the relevant jar files, goto
http://code.google.com/p/robotium/downloads/list
Thanks,
Anukul