cancel
Showing results for 
Search instead for 
Did you mean: 

SDK build error using Ant (while building authnet-sdk-java.jar)

Hello -

 

I am trying to build authnet-sdk-java.jar for DPM processing.... 

 

I downloaded the SDK-java-master, edited the build.properties (added the correct api login and transaction key) and ran "ant jar" from my windows command line.  I got the following error messages (100 in total), which tells me something isn't setup right in the environment. 

 

Iran the ant command in the sdk-java-master directory.  I also downloaded sdk-java-anet-java-sdk-1.8.2 but got the same error message when I tried to build.

 

Has anyone seen this before?  can you help?  Thanks.  Michael

 

Buildfile: build.xml

compile:
    [javac] Compiling 316 source files to C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\target\classes
    [javac] C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\src\main\java\net\authorize\data\arb\Subscription.java:6: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlRootElement;
    [javac]                                  ^
    [javac] C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\src\main\java\net\authorize\data\creditcard\CreditCard.java:7: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlRootElement;
    [javac]                                  ^
    [javac] C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\src\main\java\net\authorize\data\echeck\ECheck.java:5: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlRootElement;
    [javac]                                  ^
    [javac] C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\src\main\java\net\authorize\data\Order.java:8: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlRootElement;
    [javac]                                  ^
    [javac] C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\src\main\java\net\authorize\data\Address.java:5: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlRootElement;
    [javac]                                  ^
    [javac] C:\Users\MAromolaran\Desktop\NGStudent Development\CC processing area\sdk-java-master\src\main\java\net\authorize\data\Address.java:6: package javax.xml.bind.annotation does not exist
    [javac] import javax.xml.bind.annotation.XmlType;

 

ngstudent2014
Member
4 REPLIES 4
RaynorC1emen7
Expert

 

 

What version of java are you using (java -version)?

 

Brian

brianmc
Administrator Administrator
Administrator

hello -

 

Thanks for the note.  My java version is:

 

net-java-sdk-1.8.2>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)

 

Instead of using the command line, I created a project in my IDE and then built it.  It says build successful and I see all the class files generated but the authnet-sdk-java.jar file isn't there.  Not sure what i am doing wrong....

 

 

Thanks.

Isn't the jar name will be the project name?