Re: Alternative to com.sun class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

--
fedora-devel-java-list mailing list
fedora-devel-java-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux