Java.io.ioexception Createprocess Javac Error=2
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn cannot run program javac createprocess error=2 more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags cannot run program javac ubuntu Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, createprocess error=2 intellij helping each other. Join them; it only takes a minute: Sign up IOException: Cannot run program “javac”: CreateProcess error=2, The system cannot find the file specified up vote 5 down vote favorite I got the error "IOException: linux install javac Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified" while running my scala project in play 2. why does this error occur . Please solve this problem. scala play2-mini share|improve this question asked Sep 23 '13 at 10:55 rahul 331111 See this: stackoverflow.com/questions/18455732/… –mr.boyfox Nov 20 '13 at 4:25 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted Check that you have the environment
Ubuntu Javac
variable JAVA_HOME defined and set to the root directory of your JDK (not just a JRE, which doesn't include javac) share|improve this answer answered Sep 23 '13 at 11:11 joescii 4,1361024 add a comment| up vote 0 down vote for anyone who googles this error when using xml beans (I was forced to maintain an old app that uses xmlbeans and got this error), use jdk 5 and not higher for xmlbeans and this error goes away share|improve this answer answered May 2 at 19:23 user18896654353 312417 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged scala play2-mini or ask your own question. asked 3 years ago viewed 10545 times active 1 month ago Blog Stack Overflow Podcast #91 - Can You Stump Nick Craver? Linked 12 Play framework can't find javac 3 IOException: Cannot run program “javac” when “sudo ./sbt/sbt compile” in Spark? Related 3Returning a String from a REST Call Using Akka/Play-mini2Split play2-mini Routes in several files1why Nginx is not allowing to display the images from th
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack
Createprocess Error 2 Eclipse
Overflow the company Business Learn more about hiring developers or posting ads with us Stack createprocess error=2 python Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community processbuilder example of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up IOException: Cannot run program “javac” when “sudo ./sbt/sbt compile” in Spark? up vote 3 down vote favorite http://stackoverflow.com/questions/18957486/ioexception-cannot-run-program-javac-createprocess-error-2-the-system-canno I'm installing Apache Spark which uses its own copy of SBT to set things up. I'm using Linux Mint in a VirtualBox VM. Here's a snippet from the error when I run sudo ./sbt/sbt compile from the Spark directory spark-0.9.0-incubating: [error] (core/compile:compile) java.io.IOException: Cannot run program "javac": error=2, No such file or directory [error] Total time: 181 s, completed Mar 9, 2014 12:48:03 PM I can run java and javac from http://stackoverflow.com/questions/22287444/ioexception-cannot-run-program-javac-when-sudo-sbt-sbt-compile-in-spark the command line just fine: e.g. javac -version gives javac 1.6.0_31 The correct jdk1.6.0_31/bin is in my PATH. I read that the error might be due to the 64-bit JDK that I had installed, but I get the same error with the 32 bit JDK. How can I sort out the issue? edit: Using bash shell. sbt apache-spark share|improve this question edited Mar 11 '14 at 5:30 asked Mar 9 '14 at 20:05 foghorn 179211 Did you set JAVA_HOME? –zsxwing Mar 10 '14 at 6:39 Possible duplicate of IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified –Suma May 20 at 19:07 add a comment| 2 Answers 2 active oldest votes up vote 3 down vote accepted DISCLAIMER I'm mostly guessing now and still am unsure I should've responding here rather than adding a comment. Until it's clear, the DISCLAIMER remains. When you execute java and javac from the command line, what user are you at that moment? I'm pretty sure your problems surface because the users you operate are different. Please notice that you're executing sudo ./sbt/sbt compile as root (due to the way sudo works), but you say nothing about what user(s) you've been using to execute javac and java commands. Add
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen