jpasqua / VisibleTesla

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

Make it work for earlier Java versions ? #22

Closed azatnur closed 10 years ago

azatnur commented 11 years ago

Hi Joe, great app - thank you and keep up with newer versions!

I am a Java programmer myself and would like to make it work for earlier versions of Java (I use a hackintosh and stuck with Mac OS 10.6.7 - Java 1.6.0_15). So if you could direct at your code where it depends on the latest features of Java, I could possibly rewrite it to make it work.

And if you need any help, please let me know ! (Just learned about your app and Tesla API)

Thanks, Azat, Own Model S in Denver, CO

jpasqua commented 11 years ago

Hello Azat,

I honestly don't know whether it will work at all because I haven't researched whether JavaFX works with Java versions that are earlier than 1.7. That would be the first thing to check - comparability between JavaFX and whatever version of Java you are running.

If that's not a problem then I think you could fork the code and make fairly extensive but mechanical changes in the use of Java Generics. The code makes extensive use of diamond notation that would need to be replaced with explicit type arguments depending on your Java version.

Joe

Sent from my handheld. Apologies for typos.

On Oct 20, 2013, at 5:14 PM, azatnur notifications@github.com wrote:

Hi Joe, I am a Java programmer myself and would like to make it work for earlier versions of Java (I use a hackintosh and stuck with Mac OS 10.6.7). So if you could direct at your code where it depends on the latest features of Java, I could possibly rewrite it to make it work.

And if you need any help, please let me know ! (Just learned about your app and Tesla API)

Thanks, Azat, Own Model S in Denver, CO

— Reply to this email directly or view it on GitHub.

azatnur commented 11 years ago

Thanks, Joe. Indeed the app is based on JavaFX 2+ and for OS X only 64-bit is available (hence Java 1.7 and no early hackintoshes), so I guess I'll try converting it into an native app (if that works at all for OS X 10.6/32-bit).

What platform/IDE do you use for development ? Have you got 5.0 on your car ?

jpasqua commented 11 years ago

Azat, I'm using NetBeans 7.3.1 with JavaFX 2.2 on a Mac running OS X 10.8. Actually I just upgraded to 10.9. I'm still at 4.5 on my car which makes testing some of the new features (like sleep mode) problematic.

azatnur commented 11 years ago

I'm on 10.9 now as well and reinstalled everything (still on 4.5 too but rumour has it 5.6 coming soon). I tried to use Eclipse and it requires Java 1.6 (?)

KickHighMDK commented 11 years ago

I started to migrate you work to maven which makes it easy to use any IDE or none but ran into some issues with FX. In theory it will work and with java 8 it should be even easier if the full integration of fx into the JDK is done.

To follow proper maven standards the directory layout needs to be modified.

Peter

Sent from my iPad +1 914-414-3727

On Nov 14, 2013, at 1:38 AM, azatnur notifications@github.com wrote:

I'm on 10.9 now and reinstalled everything (still on 4.5 too but rumour has it 5.6 coming soon). I tried to use Eclipse and it requires Java 1.6 (?)

— Reply to this email directly or view it on GitHub.

jpasqua commented 11 years ago

I will be migrating to Java 8 and the associated JavaFX when it is released, but the current schedule for that is not until March of 2014. I haven't looked into using Maven with JavaFX 2.2.

jpasqua commented 10 years ago

@murraypetera and @azatnur: I'm going through my backlog and I'm going to mark this question closed. Please feel free to open another if there are more issues or progress.

Joe