java 7 - Android: Not finding File.toPath option with JDK. 1.70.51 -


i upgraded java 1.70.51 1.6 version.

its first time changing jdk. i've compiled , ran android program using of new features, files.copy(), can't seem find file.topath?

 file src_db = get_dbfolder(src_dbname, src_location);  file dst_db = get_dbfolder(dst_dbname, dst_location);   path srcpath = src_db.topath();  // these giving me errors,  path destpath = dst_db.topath(); // because no .topath  

i looked through settings, , see 1.6 settings compiler, if change 1.7 android requires 5.0 or 6.0 compiler settings (i guess means 1.5 or 1.6). allowed use 1.7 android? cause of problem?

the workspace jre set 1.7, compiler settings 1.6, can't change without error.

android not java - can't use java 7 features when programming android. point of confusion many new developers. safest bet stick java 5 features, java 6 features work, there many aren't available tend avoid them.

you can still use jdk 7 build applications, make sure set ide show java 1.5 code options.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -