Play Cannot Run Program Javac Createprocess 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 java.io.ioexception: cannot run program "javac" : error=2, no such file or directory Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation cannot run program javac ubuntu Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like caused by: java.io.ioexception: createprocess error=2, the system cannot find the file specified you, 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
Linux Install Javac
"IOException: 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 ubuntu javac environment 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 10577 times active 1 month ago 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 the filesystem?11Intellij: “Error running Scala Console: Cannot Start Process”1Cannot
Sign in Pricing Blog Support Search GitHub This repository Watch 171 Star 2,792 Fork 521 sbt/sbt Code Issues 522 Pull javac command not found requests 21 Projects 2 Wiki Pulse Graphs New issue java.io.IOException: Cannot
Java_home
run program "javac": CreateProcess error=2, The system cannot find the file specified if the path to javac
Install Jdk
contains space #510 Closed OlegYch opened this Issue Jul 27, 2012 · 5 comments Projects None yet Labels Invalid Milestone No milestone Assignees No one http://stackoverflow.com/questions/18957486/ioexception-cannot-run-program-javac-createprocess-error-2-the-system-canno assigned 4 participants OlegYch commented Jul 27, 2012 SBT 0.11.3 windows set PATH=d:\Distrib\Coding\Java\scala\sbt;d:\cygwin\bin;d:\cygwin\bin;c:\windows\system32; D:\Distrib\Coding\Java\jdk\jdk1.7.0_05\x86\bin\ which javac javac is an external : D:\Distrib\Coding\Java\jdk\jdk1.7.0_05\x86\bin\javac.EXE xsbt clean compile ... java.io.IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified ... set PATH=d:\Distrib\Coding\Java\scala\sbt;d:\cygwin\bin;d:\cygwin\bin;c:\windows\system32;D:\Distrib\Coding\Java\jdk\jdk1.7.0_05\x86\bin\ xsbt clean compile ... [success] sbt member harrah commented Aug 7, 2012 I think https://github.com/sbt/sbt/issues/510 this is a bug at a lower level, perhaps java.lang.ProcessBuilder. sbt doesn't parse the PATH variable. It runs the javac program without a prefix via ProcessBuilder. I don't remember the exact reason for the special casing of forking git in c5e3164, but perhaps @jsuereth can comment on whether this is the same problem. If you specify javaHome explicitly (such as in your ~/.sbt/global.sbt configuration file), it will construct the path to the binary directly. I expect that would be a suitable workaround. sbt member jsuereth commented Aug 8, 2012 The git stuff uses cmd /c because git has a .cmd file in the path you use. THIS is that we can't find javac on the path. Can you add two things for helping debug? (1) Is it a 64-bit JDK (2) Are you using one of our MSI installs, or your own start script? sbt member harrah commented Aug 8, 2012 Thanks, Josh. OlegYch commented Aug 8, 2012 Hi, everybody. I've found the cause. I'm using tc
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
just starting with Play. I barelly ended the 1.2.4 tutorials and the 2.0 was released. So, Im trying to run the "todolist" project directly from the command line, but there is the JAVAC problem happening every time I try to run the project.. I just installed thejdk 6u31 for windows but no changes were made...Please, can anyone help me figure out whats the problem? And congratulations for the creators, Play is a masterpiece! play asked Mar 13 2012 at 11:42 in Play-Framework by Marcelo Magalhaes Facebook Google+ Twitter 8 Answers Can you run javac itself in prompt?If not, you should set JAVA_HOME (http://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows) and add JAVA_HOME/bin to your PATH.Kind Regards, -- http://about.me/marcospereiraOn Tue, Mar 13, 2012 at 3:35 PM, Marcelo Magalhaes wrote: Hello everyone, Im just starting with Play. I barelly ended the 1.2.4 tutorials and the 2.0 was released. So, Im trying to run the "todolist" project directly from the command line, but there is the JAVAC problem happening every time I try to run the project.. I just installed thejdk 6u31 for windows but no changes were made...Please, can anyone help me figure out whats the problem? And congratulations for the creators, Play is a masterpiece! -- answered Mar 13 2012 at 14:59 by Marcos Silva Pereira Hi, I set JAVA_HOME and can run javac manually. But still can't compile in play. I'm using Windows 7 64-bit with java 64-bit 1.7.0_03. Any idea?regards, KrystianW dniu wtorek, 13 marca 2012, 22:52:43 UTC+1 u?ytkownik Marcos Silva Pereira napisa?: answered Apr 3 2012 at 04:59 by Krystian I had the same problem. the trick is your system %PATH% in my case (and probably yours), I had both JRE and JDK in the path, and the JRE was BEFORE the JDK. I believe that Play was run by java.exe under JRE, and was looking for javac.exe inside JRE too, ignoring the system %PATH%. the solution was putting the java JDK BEFORE the JRE in the %PATH%. this way, Play is run by java.exe under JDK, and then it looks for javac.exe in the same path. regards, ---- On 3 abr, 08:52, Krystian wrote: > Hi, I set JAVA_HOME and can run javac manually. But still can't compile in > play. I'm using Windows 7 64-bit with java 64-bit 1.7.0_03. > Any idea? > > regards, > Krystian > > W dniu wtorek, 13 marca 2012, 22:52:43 UTC+1 u?ytkownik Marcos Silva > Pereira napisa?: > > > > > > > > > > > Can you run javac itself in prompt? > > > If not, you should set JAV