Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

java generation is broken?

Rank

Total Posts: 3

Joined 2015-12-13

PM

Hi, I am downloading FitSDK 16.40, and running Fitgen.exe on Windows 7 64bits, and Java generation code is always failing at 42% with the following message:

Errors present in Java code, aborting Java compilation
ERROR writing Java code

I have tried both JDK 7 and 8, x86 and x64, with no success. I have also tried Windows 8, and FitSDK 16.30, same result.

Any ideas? Are there any specific windows or JDK requirements for FitGen.exe? Is there a FitGen for Mac or linux?

Thanks
     
Rank

Total Posts: 20

Joined 2015-05-11

PM

Hello palermo,

We currently target Java 6 with the FIT SDK so try compiling with a Java 6 JDK.

We are also evaluating migration to Java 7, but we have no plans to do so at this moment.

-Mario
     
Rank

Total Posts: 3

Joined 2015-12-13

PM

Hi, I tried with java 6, 32 and 64 bits, same result. See below

C:\FitSDK16.40>javac -version
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
javac 1.6.0_45

C:\FitSDK16.40>fitgen
FIT Code Generator - Protocol 1.00 Profile 16.40Release
SDK Version: production-akw-16.40.00-0-gd2b01be
Parsing existing config.csv...
Writing new config.csv...
Generating C code...
Generating C code for EXAMPLE...
Generating C++ code...
Generating C# code...
Generating Java code...
Building Java tools...0%
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

7%
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

14%
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

21%
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

28%
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

35%
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true

42% Errors present in Java code, aborting Java compilation
ERROR writing Java code.

C:\FitSDK16.40>      
Rank

Total Posts: 20

Joined 2015-05-11

PM

I suspect that the "Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true" is causing the problem here.

If a _JAVA_OPTIONS environment variable exists on your system, removing it might solve this issue.

Make sure that you write the information in the variable down somewhere so you can restore it if necessary.

-Mario      
Rank

Total Posts: 3

Joined 2015-12-13

PM

Mario, that was indeed the problem, thanks a lot!