[Photon] install on windows

Christoph Lingg christoph at lingg.eu
Thu Oct 30 13:50:23 UTC 2014


Hi Hennes,
 
> 1)      Is #100 fixed in the download mentioned on the webpage… It pops up on a win8.1 system.

never tried photon on windows, what’s the log saying?

> 2)      Which version was used for compilation of the jar files ? I received an error message which implies somehow the Java version is too low..
> M:\photon\photon_data\elasticsearch>java -jar photon-0.1.1.jar
> Exception in thread "main" java.lang.UnsupportedClassVersionError: spark/Route :
> Unsupported major.minor version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(Unknown Source)….
> Could not find the main class: de.komoot.photon.importer.App. Program will exit.
>  
> On the webpage its mentioned that JAVA 6 (JRE or JDK?) is needed, Wikipedia indicates that the reported 51 would be (J2SE 7 = 51 (0x33 hex))
>  
> My java version is:
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)
>  
> Has the target argument been set while compiling ?

It’s set properly in photon https://github.com/komoot/photon/blob/master/pom.xml#L188 <https://github.com/komoot/photon/blob/master/pom.xml#L188> however, it seems like our dependency for the web framework (http://www.sparkjava.com/ <http://www.sparkjava.com/>) isn’t. At the moment i have no time to dig into it further, but I guess there is little we can do – except raising the requirments to java 7.

Cheers,
Christoph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/photon/attachments/20141030/9fb85df1/attachment.html>


More information about the Photon mailing list