jpasqua / VisibleTesla

Java App to monitor and Control the Tesla Model S
125 stars 41 forks source link

Can I run VT on Java 8? #118

Open timidri opened 9 years ago

timidri commented 9 years ago

I tried to build it, but it does not run. And I cannot download JDK 7 anymore. Any suggestions? Also, I could not find any new released versions...

jpasqua commented 9 years ago

VisibleTesla is known not to not work with Java 1.8, in particular the changes to JavaFX are incompatible. Someone may wish to do the port over to the newer version of JavaFX, but it's not on anyone's list that I know of.

JDK1.7 can be downloaded here: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

timidri commented 9 years ago

Thanks! I have downloaded Java 7. After getting the source and building I see:

➜  VisibleTesla git:(master) ant -Dplatforms.Default_JavaFX_Platform.home=$JAVA_HOME bundle-VisibleTesla
Buildfile: /Users/dimitri/Projects/VisibleTesla/Tesla/VisibleTesla/build.xml

get-version:
     [echo] Version: 0.50.08

bundle-VisibleTesla:
[bundleapp] Creating app bundle: VisibleTesla
   [delete] Deleting /Users/dimitri/Projects/VisibleTesla/Tesla/VisibleTesla/dist/VisibleTesla.app/Contents/PlugIns/jdk1.7.0_79.jdk/Contents/Home/jre/lib/jfxrt.jar
     [move] Moving 1 file to /Users/dimitri/Projects/VisibleTesla/Tesla/VisibleTesla/dist/VisibleTesla.app/Contents/Java
     [move] Attempting to rename: /Users/dimitri/Projects/VisibleTesla/Tesla/VisibleTesla/dist/VisibleTesla.app/Contents/Java/jfxrt.jar to /Users/dimitri/Projects/VisibleTesla/Tesla/VisibleTesla/dist/VisibleTesla.app/Contents/Java/zzz_jfxrt.jar

BUILD SUCCESSFUL
Total time: 3 seconds

After launching the app on the command line I get:

➜  VisibleTesla git:(master) open dist/VisibleTesla.app
LSOpenURLsWithRole() failed with error -10810 for the file /Users/dimitri/Projects/VisibleTesla/Tesla/VisibleTesla/dist/VisibleTesla.app.

Any ideas what I am doing wrong?

jjmartres commented 9 years ago

Hi,

Got the same issue. Any idea to solve this ?

timidri commented 9 years ago

I finally downloaded an already built version from here: http://www.teslamotorsclub.com/showthread.php/19975-VisibleTesla/page35?p=939004&viewfull=1#post939004 . That version works for me.