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;
08-07-2014 08:37 AM
08-07-2014 09:01 AM
What version of java are you using (java -version)?
Brian
08-07-2014 09:19 AM
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.
08-07-2014 09:27 AM
Isn't the jar name will be the project name?
08-07-2014 12:50 PM