From owner-freebsd-java Wed Mar 20 16:47:21 2002 Delivered-To: freebsd-java@freebsd.org Received: from jupiter.linuxengine.net (jupiter.linuxengine.net [209.61.188.254]) by hub.freebsd.org (Postfix) with ESMTP id 5A7A737B404 for ; Wed, 20 Mar 2002 16:47:13 -0800 (PST) Received: from jupiterweb.commercevault.com (jupiterweb.commercevault.com [209.61.179.16] (may be forged)) by jupiter.linuxengine.net (8.11.6/8.11.0) with ESMTP id g2L0l8O10084 for ; Wed, 20 Mar 2002 18:47:08 -0600 Date: Wed, 20 Mar 2002 18:47:08 -0600 (CST) From: John Utz X-X-Sender: john@jupiter.linuxengine.net To: freebsd-java@freebsd.org Subject: weird bootclasspath problem Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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