Bug Typesafe Activator fails under Take Command shell

May 2, 2012
25
0
Chicago USA
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
4,469
88
Albuquerque, NM
prospero.unm.edu
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.
 
May 2, 2012
25
0
Chicago USA
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.]
 
Similar threads
Thread starter Title Forum Replies Date
samintz COPY fails to copy from \\wsl$ Support 20
M Goto fails when a text endtext block precedes the code Support 5
vefatica SETP usually fails with a 32 bit process Support 4
S INPUT fails if the entered text contains pair of square brackets Support 6
B Request Manual Key fails Support 3
L TCC V22 installer fails signature validation Support 0
A Fixed v25 regression: Parameter expansion fails in piped commands Support 2
vefatica START /PGM "name with spaces.URL" fails Support 2
I zip /M fails to delete file after adding to zip file Support 2
D skip= in FOR /F fails Support 9
Joe Caverly Using a Directory Alias with @iniwrite fails Support 14
A WAD Output redirection to IF block fails with "unbalanced brackets" Support 7
E My echo full file name to the clipboard fails now. Support 2
A Fixed (CMD compat) START /D fails to recognize the switch option. Support 3
B MKLINK requires admin - fails silently. Support 1
D Fixed Take Command 21.0.29 fails – MSVCP140.dll missed Support 6
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
fishman@panix.com Version 21.23 fails to install Support 4
D unzip fails to find valid license Support 3
StarliteLemming Fileread fails on Unicode file Support 10
D Upgrade from 19 to 19.10 fails Support 2
C Upgrade to v19.10.42 fails Support 5
D V19 fails to install on Win7-64bit, installer says: Support 2
bervin Webform fails on HTTPS Support 1
thedave Windows 10: Pinned taskbar fails Support 20
P MS VS2013 vsdevcmd.bat fails to run with tcmd 17 x64 Support 10
vefatica @REGQUERY with hostname fails Support 12
R Fixed Internal ZIP command fails to process multiple files Support 3
P Copying descript.ion file fails Support 8
S WAD FTP copy fails in 16.00.25 Support 24
S WAD KEYSTACK fails in TCC-64 Support 2
vefatica Files disappear in Explorer when DEL fails Support 6
T tcc /c "[...]" fails when run from third party terminal Support 11
C Latest TCMDx64 fails on XP Pro x64 Support 1
dcantor WAD dir "ftp:// ..." fails in TCC 15 Support 7
M WAD Copy command fails rather weirdly... Support 2
S WAD COPY from FTP site fails in 14.03.51 Support 9
M Updating environment variable from C++ fails erratically in version 14... Support 57
dcantor Take Command 14 release fails Support 6
S WAD "Mark Forums Read" fails Support 4
dcantor Fixed Take Command 14.0.20 fails Support 19
D Upgrade from b12 fails Support 5
scottb Toolbar filter by directory attribute /A:D fails Support 1
Stefano Piccardi IDE.exe start toobar button fails when % in script path Support 0
H Install fails and removes tcmd Support 4
vefatica 12.10 registration fails Support 3
S PDIR fails in 12.10.55 Support 3
J 4console vbeep fails Support 0
D Move /v to DVD fails but files identical Support 4
vefatica Help from IDE fails after a non-debug run Support 5

Similar threads