Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2002 18:47:08 -0600 (CST)
From:      John Utz <john@utzweb.net>
To:        freebsd-java@freebsd.org
Subject:   weird bootclasspath problem
Message-ID:  <Pine.LNX.4.44.0203201832130.6601-100000@jupiter.linuxengine.net>

next in thread | raw e-mail | index | archive | help
Hi;

now that i have a working native jdk, i have been busy with the java 
development environment for emacs (JDEE)

it's not quite working. :-) it's close tho!

heres' the deal, you can try this at home:

jdee expects that this line will successfully spawn the vm with the class 
under development, this works great on my rh7 box at work, but not on my 
FreeBSD box:

 /usr/local/jdk1.3.1/bin/java -Xdebug 
 -Xrunjdwp:transport=dt_socket,address=4444,server=y,suspend=n dom.ASBuilder

 Exception in thread "main" java.lang.NoClassDefFoundError: 
 sun/tools/agent/Agent
 Could not create the Java virtual machine.

 Process dom.ASBuilder exited abnormally with code 1

googling about shows that tools.jar holds the sun.tools.agent package. but 
you cant just add it to the CLASSPATH, it hads to be added to the special 
magic 'bootclasspath'

so. if i alter the command line thusly:

 java -Xbootclasspath/a:/usr/local/jdk1.3.1/lib/tools.jar -Xdebug 
-Xrunjdwp:transport=dt_socket,address=4444,server=y,suspend=n dom.ASBuilder


so, how do we get this added to the compiled in bootclasspath?

so much for "Write Java Development Environment for Emacs Once, Run Java 
Development Environment for Emacs Everywhere"

 :-)

tnx!

johnu
-- 

John L. Utz III
john@utzweb.net

Idiocy is the Impulse Function in the Convolution of Life


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0203201832130.6601-100000>