[Camino-users] Unable to compile the latest version of camino on mac

Jason Hubbard hubbard3 at uoregon.edu
Sun Sep 20 17:21:22 PDT 2015


Hi, 

Thank you for the help on this. I managed to fix the problem. It was indeed because I had upgraded the java runtime (JRE) but not the java SDK. When running "javac -version" it was still at 1.6. 

When googling "download java for mac" the first result will be to download the JRE. If others are a in a similar bind, you want to download the JDK from here: http://www.oracle.com/technetwork/java/javase/downloads/index.html <http://www.oracle.com/technetwork/java/javase/downloads/index.html>

Thanks again!
Jason


> On Sep 8, 2015, at 10:41 AM, Philip A Cook <cookpa at mail.med.upenn.edu> wrote:
> 
> Hi,
> 
> This problem happens on Java 6, I can't figure out why you would see it on Mavericks.
> 
> Can you try
> 
>  javac -version
> 
> and see if it is the same as
> 
> java -version
> 
> The compiler (javac) is what is complaining in the error message below. Occasionally these can be different if someone has installed separate versions, but usually on Macs this doesn't happen
> 
> 
> On Sep 1, 2015, at 6:53 PM, Jason <hubbard3 at uoregon.edu> wrote:
> 
>> Hello, 
>> 
>> I’m trying to install the latest version of camnio. I’m running OSX 10.9 Mavericks, and I just updated java to version 1.8:
>> 
>> java -version
>> java version "1.8.0_60"
>> Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
>> Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
>> 
>> I downloaded the files via git, but when trying to run “make” it fails when trying to build AverageDWI and SelectShells:
>> 
>> make
>> javac -classpath . apps/AddNoise.java
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> javac -classpath . apps/BinaryToText.java
>> javac -classpath . apps/ClassifiedModelFit.java
>> javac -classpath . apps/ConnectivityMatrix.java
>> javac -classpath . apps/ConsistencyFraction.java
>> javac -classpath . apps/CountSeeds.java
>> javac -classpath . apps/DataStats.java
>> javac -classpath . apps/DeconvToCamenoFormat.java
>> javac -classpath . apps/DT_EigenSystem.java
>> javac -classpath . apps/DT_FitMatrix.java
>> javac -classpath . apps/DT_ShapeStatistics.java
>> javac -classpath . apps/DT_ToCamino.java
>> javac -classpath . apps/DT_ToImage.java
>> javac -classpath . apps/ElectrostaticSubsets.java
>> javac -classpath . apps/EntryPoint.java
>> ./apps/AverageDWI.java:87: illegal start of type
>>       List<Integer> includedMeasurements = new ArrayList<>();
>>                                                          ^
>> ./apps/SelectShells.java:110: illegal start of type
>>       List<Integer> includedMeasurements = new ArrayList<>();
>> 
>> I’m not a java person so I’m not sure what’s going on here. I noticed that both of these functions are missing details from the “Command Lists” page on the website so I’m assuming that they’re relatively new. 
>> 
>> Any help you could provide would be much appreciated!
>> 
>> Best, 
>> Jason
>> _______________________________________________
>> Camino-users mailing list
>> Camino-users at www.nitrc.org
>> http://www.nitrc.org/mailman/listinfo/camino-users
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.nitrc.org/pipermail/camino-users/attachments/20150920/1323c8c3/attachment.html>


More information about the Camino-users mailing list