[Dart] Ant 'test' junit task failure; junit.jar drop-in
doesn't work
Matt England
mengland at mengland.net
Mon Feb 20 10:45:25 EST 2006
Dan,
Thanks for the email notes/replies. I like impression I'm getting that
someone like yourself is championing the support for this product.
At 2/20/2006 08:30 AM, Blezek, Daniel J (GE, Research) wrote:
>I think this line:
>Unable to locate tools.jar. Expected to find it in
>/usr/lib/sablevm/lib/tools.jar
>is causing your problems. I'm not entirely sure what's in tools.jar, but
>I think it helps with dynamically loading the junit task into Ant. Do you
>have a regular JDK (i.e. Sun's) on your machine? You should set JAVA_HOME
>to the path to this, and try the 'ant test' again.
Sun's JDK/J2SE (are these the same things? I assume JDK = Java SDK = Java 2
Standard Edition? there is no "guidebook" on sun.com that I can find)
doesn't even get off the ground (which is namely why I'm using gcj/jikes on
Debian, simply out of necessity). Here's an excerpt from a large session
description below:
mengland at csbase1:~/svnwork/Dart/trunk$ ant test
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
mengland at csbase1:~/svnwork/Dart/trunk$
I suspect this error reflects my extreme level of Java ignorance and that
some path/env-variable/tweak will fix this.
For what it's worth, the jdk path reference below was created by
downloading the Linux rpm from:
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=jdk-1.5.0_06-oth-JPR&SiteId=JSC&TransactionId=noreg
...is found at:
http://java.sun.com/j2se/1.5.0/download.jsp
Is this the right stuff?
<rant>
I've been developing and using cross-platform (Windows, Unix, Linux, VMS,
BSD) software (that includes low-level storage-interface driver support) in
C/C++ and a numerous interpreted languages (php, perl, tcl/tk, bash, ksh,
etc etc) on and off for about 12 years. I've *never* had as many headaches
building and porting applications as I do with Java, despite Java being
trumpted as the Holy Grail of easing porting problems.
My golden rule in software development: eliminate dependencies (and this
has many contexts beyond the current one). Java-based systems tend to
create dependencies all over the place (VMs, classpaths, jars, classes, etc
etc) that break a lot. I really don't blame this on the Java developers; I
blame this on the Java system. Alternatively, I can statically link and or
embed dynamically-linked libs in any non-Java app I desire. And I do in
software that my projects build.
I'm still waiting for the day when the Java community gets this.
</rant>
Thanks for allowing me get this off my chest. :)
Now on to a more-productive conversation...
-Matt
mengland at csbase1:~/svnwork/Dart/trunk$ ls -la /usr/java/jdk1.5.0_06/
total 17292
drwxr-xr-x 9 root root 4096 2006-02-19 16:14 .
drwxr-xr-x 4 root root 4096 2006-02-19 16:14 ..
drwxr-xr-x 2 root root 4096 2006-02-19 16:14 bin
-r--r--r-- 1 root root 2487 2005-11-10 16:38 COPYRIGHT
drwxr-xr-x 8 root root 4096 2006-02-19 16:14 demo
drwxr-xr-x 3 root root 4096 2006-02-19 16:14 include
drwxr-xr-x 6 root root 4096 2006-02-19 16:14 jre
drwxr-xr-x 2 root root 4096 2006-02-19 16:14 lib
-r--r--r-- 1 root root 15584 2005-11-10 16:38 LICENSE
drwxr-xr-x 4 root root 4096 2006-02-19 16:14 man
-r--r--r-- 1 root root 20415 2005-11-10 16:38 README.html
drwxr-xr-x 4 root root 4096 2006-02-19 16:14 sample
-rw-r--r-- 1 root root 17527615 2005-11-10 16:38 src.zip
-r--r--r-- 1 root root 68419 2005-11-10 16:38 THIRDPARTYLICENSEREADME.txt
mengland at csbase1:~/svnwork/Dart/trunk$ export JAVA_HOME=$!
mengland at csbase1:~/svnwork/Dart/trunk$ !$
JAVA_HOME=$!
mengland at csbase1:~/svnwork/Dart/trunk$ clear
mengland at csbase1:~/svnwork/Dart/trunk$ set -o vi
mengland at csbase1:~/svnwork/Dart/trunk$ clear
mengland at csbase1:~/svnwork/Dart/trunk$ ls -la /usr/java/jdk1.5.0_06/
total 17292
drwxr-xr-x 9 root root 4096 2006-02-19 16:14 .
drwxr-xr-x 4 root root 4096 2006-02-19 16:14 ..
drwxr-xr-x 2 root root 4096 2006-02-19 16:14 bin
-r--r--r-- 1 root root 2487 2005-11-10 16:38 COPYRIGHT
drwxr-xr-x 8 root root 4096 2006-02-19 16:14 demo
drwxr-xr-x 3 root root 4096 2006-02-19 16:14 include
drwxr-xr-x 6 root root 4096 2006-02-19 16:14 jre
drwxr-xr-x 2 root root 4096 2006-02-19 16:14 lib
-r--r--r-- 1 root root 15584 2005-11-10 16:38 LICENSE
drwxr-xr-x 4 root root 4096 2006-02-19 16:14 man
-r--r--r-- 1 root root 20415 2005-11-10 16:38 README.html
drwxr-xr-x 4 root root 4096 2006-02-19 16:14 sample
-rw-r--r-- 1 root root 17527615 2005-11-10 16:38 src.zip
-r--r--r-- 1 root root 68419 2005-11-10 16:38 THIRDPARTYLICENSEREADME.txt
mengland at csbase1:~/svnwork/Dart/trunk$ export JAVA_HOME=!$
export JAVA_HOME=/usr/java/jdk1.5.0_06/
mengland at csbase1:~/svnwork/Dart/trunk$ pwd
/home/mengland/svnwork/Dart/trunk
mengland at csbase1:~/svnwork/Dart/trunk$ svnversion .
267M
mengland at csbase1:~/svnwork/Dart/trunk$ svn info
Path: .
URL: http://svn.na-mic.org:8000/svn/Dart/trunk
Repository UUID: b2c14c61-d7ef-0310-8715-841e9ab387fe
Revision: 267
Node Kind: directory
Schedule: normal
Last Changed Author: millerjv
Last Changed Rev: 267
Last Changed Date: 2006-02-15 16:46:01 -0500 (Wed, 15 Feb 2006)
Properties Last Updated: 2006-02-19 14:57:19 -0500 (Sun, 19 Feb 2006)
mengland at csbase1:~/svnwork/Dart/trunk$ svn status
? TestLog
? DartServer.jar
? 1
? 2
? Class
? Source/qed/server/wrap
M Source/dart/server/messenger/SMTPMessenger.java
mengland at csbase1:~/svnwork/Dart/trunk$ ant test
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
mengland at csbase1:~/svnwork/Dart/trunk$
More information about the Dart
mailing list