[fedora-java] Alternative to com.sun class

Orion Poplawski orion at cora.nwra.com
Fri May 23 21:35:08 UTC 2008


Robert Marcano wrote:
> jakarta-commons-codec
> 
> http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html

Great, thanks!

Now to get a java neophyte like myself to be able to use it.  I'm trying 
to specify the location in the main build.xml file (no idea if this is 
how to do it):

       <macrodef name="myant">
          <attribute name="target" default=""/>
          <!-- attribute name="args" default="${sge.ant.args}"/ -->
          <attribute name="dir" default="${basedir}"/>
          <sequential>
             <echo>myant: Doing target="@{target}" on directory 
"@{dir}"</echo>
             <java classname="org.apache.tools.ant.launch.Launcher"
                fork="true" failonerror="true"
                dir="@{dir}">
                <jvmarg value="-Djava.compiler=none"/>
                <classpath>
                   <pathelement path="${java.class.path}"/>
                   <pathelement location="${libs.junit.classpath}"/>
                   <pathelement 
location="/usr/share/java/commons-codec.jar"/>
                </classpath>
                <!-- arg line="@{args} @{target}"/ -->
                <arg line="@{target}"/>
             </java>
          </sequential>
       </macrodef>


but it doesn't seem to take:

     [java]     [javac] 1. ERROR in 
/export/home/orion/fedora/gridengine/devel/gridengine/source/libs/juti/java/com/sun/grid/security/login/GECATrustManagerLoginModule.java 
(at line 35)
      [java]     [javac]         import 
org.apache.commons.codec.binary.Base64;
      [java]     [javac]                ^^^^^^^^^^
      [java]     [javac] The import org.apache cannot be resolved

Thoughts?

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com




More information about the fedora-devel-java-list mailing list