Why is NBAndroid dependent on Java 1.6?

  5 posts   Feedicon  
Replies: 4 - Last Post: February 10, 2010 17:26
by: normenh
showing 1 - 5 of 5
 
Posted: February 10, 2010 14:12 by normenh
Hi.

I am coding on a MacBook Pro with a 32bit intel processor running on MacOSX Leopard 10.5. The only available Java version for that platform is Java 1.5. The most current version of NBAndroid (0.10) apparently depends on Java 1.6. Is this really necessary? Would it be possible to add Java 1.5 compatibility again?

Cheers,
Normen

P.S. I know that with SnowLeopard I get java 1.6 on a 32bit Intel as well, but I dont want to upgrade since I'm also developing native Mac software and its best to do so on the "oldest" platform you want your software to be compatible with..
 
Posted: February 10, 2010 16:04 by radim
There is Java 6 on my Mac running 10.5.8. You should be able to find it too.

It was not necessary but it was easier to accept some contribution that way.

It is possible. You can fix it and send a patch.

-Radim
 
Posted: February 10, 2010 16:18 by normenh
So you have a 64bit Intel Mac (Core 2 Duo)? Or did you manage to get Apples Java 1.6 from SnowLeopard to Leopard? I tried that and I failed.
For some reason Apple decided to put the 32bit Java 1.6 only in SnowLeopard and not in Leopard -.- Java 1.6 for 64bit machines is also available in Leopard via software update.. And as said I have a MacBook of the first gen (32bit Core Duo)..

Any hints on what is dependent on Java 1.6? I suppose some window elements? GroupLayout etc? Maybe I'm gonna look into it to fix it..
 
Posted: February 10, 2010 17:00 by radim
Yes, Core 2 Duo.

SwingWorker, TableSorter and similar enhancements, couple of @Override annotations at implemented interface methods.

Honestly, I'd rather stay with 1.6 but if it is important enough for you...

-Radim
 
Posted: February 10, 2010 17:26 by normenh
I think if a Java software does not *depend* on functions of a certain Java version it should always be compatible to the earliest version possible.. Some developers have to use Java 1.5 at their work if Java 1.6 has not been approved in their company for example. Its not just 32bit Leopard Macs Wink

Downloaded the current merc version and looked into it. Have some problems compiling it in NetBeans 6.7.1, somehow in the build-impl.xml the harness.dir variable is compiled wrong, I get an error about "${nbplatform.NetBeans_IDE_6.7.1.harness.dir}/suite.xml" missing.. anyway... at least I can have a look at the code..

The TableRowSorter and RowFilter uses in "logcat" are a downer, that would have to be done quite differently.. Dont know if I will have time for that soon.. But it seems like these are the only things that are Java 1.6 dependant..

Cheers,
Normen
Replies: 4 - Last Post: February 10, 2010 17:26
by: normenh
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close