I have been trying to make some forward progress using
activerecord-jdbc and because I encountered errors I took Nick
recommendation and ran the rake task in activerecord-jdbc
I am running Windows XP with Java version 1.5.0_10. (I also encounter
this error with Java 6 and Java 1.4 on other machines)
E:\activerecord-jdbc>java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
I get the following error:
E:\activerecord-jdbc>jruby -S rake --trace
(in E:/activerecord-jdbc)
** Invoke manifest (first_time)
** Execute manifest
You really need Hoe installed to be able to package this gem
** Invoke default (first_time)
** Invoke java_compile (first_time)
** Execute java_compile
mkdir -p pkg/classes
javac -target 1.4 -source 1.4 -d pkg/classes -cp
E:\jruby-1.1b1\lib\bsf.jar;E:\j
ruby-1.1b1\lib\jruby.jar;E:\mssqljdbc\sqljdbc.jar;C:\Sun\AppServer\lib\locale;C:
\PROGRA~1\IBM\WebSphere\AppServerCommunityEdition\repository\activemq\jars\activ
emq-core-3.2.1.ibm.jar;E:\axis-1_3\lib\axis.jar;E:\jt400\lib\jt400.jar;E:\jruby-
1.1b1\lib\jruby.jar;E:\jruby-1.1b1\lib\db2_classes.jar;E:\jruby-1.1b1\lib\mysql-
connector-java-3.1.7-bin.jar
src/java/jdbc_adapter/JdbcAdapterInternalService.ja
va src/java/jdbc_adapter/JdbcDerbySpec.java
src/java/jdbc_adapter/JdbcMySQLSpec.
java src/java/jdbc_adapter/JdbcConnectionFactory.java
src/java/jdbc_adapter/SQLB
lock.java
Note: src/java/jdbc_adapter/JdbcAdapterInternalService.java uses or
overrides a
deprecated API.
Note: Recompile with -Xlint:deprecation for details.
jar cf lib/jdbc_adapter/jdbc_adapter_internal.jar -C pkg/classes/ .
** Invoke test (first_time)
** Invoke test_mysql (first_time)
** Execute test_mysql
E:/jruby-1.1b1/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:63:
in `include_class': cannot load Java class
jdbc_adapter.JdbcConnectionFactory (N
ameError)
from
E:/jruby-1.1b1/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/
object.rb:41:in `each'
It looks like everything compiles and jars OK. The only thing I noticed
that was unusual was that the jar had the following path to the classes:
pkg\classes\.\jdbc_adapter\
Outside of that I am stumped.
Anybody having these test pass in Windows XP with Java 5?
Pete Helgren
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel