ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Ivanova" <>
Subject java task classpath is not added to java.class.path?
Date Wed, 02 Apr 2003 16:50:30 GMT

How to add classpath to java.class.path when running a java task (is it possible without using
<jvmarg value="-classpath" /> <jvmarg value="${some.classpath}" />")?  I could
not make it using the <classpath> element.

Here is a test project: 

<?xml version="1.0"?>
<project name="framework" default="test" basedir=".">
 <target name="test">
  <java classname="demo.jsp.DeviceBean">
    <pathelement path=".;D:/develop/embeddedsoft/frameworktools/bin/tools/framework/jsp/jsptool.jar;../../../lib/frameworklib.jar"/>
    <pathelement path="${java.class.path}" />

The DeviceBean class prints the java.class.path property, here is the output of the test target:

     [java] >>>>>>>java.class.path is:c:\jdk1.2.2\lib\tools.jar;D:\develop\embed

The custom classpath (.;D:/develop/embeddedsoft/frameworktools/bin/tools/framework/jsp/jsptool.jar;../../../lib/frameworklib.jar)
is not added to java.class.path. The jar files from the classpath exist.

Any idea? 

Best regards,
Maria Ivanova, Developer
Dept: mBedded Server/Core    
ProSyst Bulgaria, Inc.       
48 Vladaiska Str, Sofia 1606, Bulgaria         
Tel.  (+359 2) 952 35 81 (108)
Leading Software Technology for Open Service Gateways
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message