Bug Typesafe Activator fails under Take Command shell

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
First, I was trying to experiment with the Play Framework (https://playframework.com/) so I followed the instructions given on the site to download and create an introductory application (https://playframework.com/documentation/2.3.x/NewApplication).

My results were unsatisfying: I'm stumped, and it seems even Activator is a bit confused:
(formatted for better legibility)
Code:
C:\Users\Tom.000> cd extract\Play-activator\

C:\Users\Tom.000\Extract\Play-activator>p
PATH=C:\users\tom.000\bin
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Program Files\CollabNet\Subversion Client
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0\
C:\Program Files\Java\jdk1.8.0_05\bin
C:\Program Files (x86)\Bitvise SSH Client
C:\Program Files (x86)\Git\cmd
C:\Program Files (x86)\Git\bin
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\
C:\Program Files (x86)\Groovy\Groovy-2.3.3\bin
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\
C:\users\tom.000\extract\apache-ant-1.9.4\bin
C:\Users\Tom.000\Extract\Play-activator> echo %java_home%
C:\Program Files\Java\jdk1.8.0_05

C:\Users\Tom.000\Extract\Play-activator> java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

C:\Users\Tom.000\Extract\Play-activator> javac -version
javac 1.8.0_05

C:\Users\Tom.000\Extract\Play-activator> activator --help
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
javac 1.8.0_05
A Java JDK is not installed or can't be found.
JAVA_HOME = "C:\Program Files\Java\jdk1.8.0_05"
Please go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
and download a valid Java JDK and install before running Activator.
If you think this message is in error, please check
your environment variables to see if "java.exe" and "javac.exe" are
available via JAVA_HOME or PATH.

C:\Users\Tom.000\Extract\Play-activator>
Before everyone gets all excited, my `p.cmd` utility is simply
Code:
path | sed -e 's/;/\n/g'
and is my attempt to make the Windows path just a bit more legible.

Under TCC this fails rather curiously as you see, and yet the exact same commands in the same directory work perfectly well with CMD.EXE and with PowerShell (v4.0).

It's depressingly reproducible or I wouldn't bother mentioning it. Ideas? Suggestions? Hints??
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,376
39
Albuquerque, NM
prospero.unm.edu
#2
Code:
C:\Users\Tom.000\Extract\Play-activator> activator --help
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
javac 1.8.0_05
A Java JDK is not installed or can't be found.
JAVA_HOME = "C:\Program Files\Java\jdk1.8.0_05"
Please go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
and download a valid Java JDK and install before running Activator.
If you think this message is in error, please check
your environment variables to see if "java.exe" and "javac.exe" are
available via JAVA_HOME or PATH.
What is "Activator"? A batch file? If so, you might post it.
 
#3
What is "Activator"? A batch file? If so, you might post it.
Well, I gave links to the Play Framework, and to its "Getting Started" page, but to answer your question, yes: `activator` is a batch file, and it's 227 lines long (!).

I have placed a copy of it online here (http://1drv.ms/1pUjcwA), to avoid cluttering the forum.

In fact, 'Activator' comes from Typesafe (http://typesafe.com/) and I'm not entirely clear myself how/why it's involved in the Play Framework, other than in a manner similar to how Leiningen (http://leiningen.org/) is used to manage Clojure projects. [Rather a long time ago now I had a very similar problem running Leiningen under TCC as well, and it is also a batch file front-ending a JAR file.]