eclipse - Unable to build meteor project remotely through a java application? -
i trying run meteor project java application , code have written it:-
string[] command = { "/bin/bash", "-c" ,"cd /home/cloud2/music/mymeteorproject; meteor run android-device" }; processbuilder builder = new processbuilder(command); builder.redirecterrorstream(true); process process=null; try { process = builder.start(); } catch (ioexception e1) { e1.printstacktrace(); } inputstream = process.getinputstream(); bufferedreader reader = new bufferedreader(new inputstreamreader(is)); string line = null; try { while ((line = reader.readline()) != null) system.out.println(line);// line display error message on console } catch (ioexception e) { e.printstacktrace(); }
building meteor project java application shows following error in eclipse console:-
your system not yet seem fulfill requirements build apps android.
please follow installation instructions in mobile guide: http://guide.meteor.com/mobile.html#installing-prerequisites
status of individual requirements:
✓ java jdk
✗ android sdk: failed find 'android_home' environment variable. try setting
setting manually. failed find 'android' command in 'path'. try update 'path' include path valid sdk directory.✗ android target: android sdk not found. make sure installed. if not @ default location, set android_home environment variable.
✗ gradle: not find gradle wrapper within android sdk. not find android sdk directory.
might need install android sdk or set 'android_home' env variable.
but when run same project terminal runs fine looks android_home set. why project not run java application? problem bugging me quite few days.any highly appreciated.
try this, adding android_home below.
try { map<string, string> envs = pb.environment(); system.out.println(envs.get("path")); envs.put("android_home", "<android_path>"); pb.redirecterrorstream(); process = builder.start(); } catch (ioexception e1) { e1.printstacktrace(); }
Comments
Post a Comment