I'm new to Scala.
I just installed sbt for windows MSI
I have a project with build.sbt
I opened a windows console in the current project folder.
I runned the sbt.bat
I turned #echo on to get the error message.
C:\MasseGuillaume-Scala99-1879ed7>sbt
C:\MasseGuillaume-Scala99-1879ed7>set SBT_HOME=C:\MasseGuillaume-Scala99-1879ed7
\
C:\MasseGuillaume-Scala99-1879ed7>set ERROR_CODE=0
C:\MasseGuillaume-Scala99-1879ed7>rem We use the value of the JAVACMD environmen
t variable if defined
C:\MasseGuillaume-Scala99-1879ed7>set _JAVACMD=
C:\MasseGuillaume-Scala99-1879ed7>if "" == "" (if not "" == "" (if exist "\bin\j
ava.exe" set "_JAVACMD=\bin\java.exe" ) )
C:\MasseGuillaume-Scala99-1879ed7>if "" == "" set _JAVACMD=java
C:\MasseGuillaume-Scala99-1879ed7>rem We use the value of the JAVA_OPTS environm
ent variable if defined
C:\MasseGuillaume-Scala99-1879ed7>set _JAVA_OPTS=
C:\MasseGuillaume-Scala99-1879ed7>if "" == "" set _JAVA_OPTS=-Xmx512M -XX:MaxPer
mSize=256m -XX:ReservedCodeCacheSize=128m -Dsbt.log.format=true
C:\MasseGuillaume-Scala99-1879ed7>"java" -Xmx512M -XX:MaxPermSize=256m -XX:Reser
vedCodeCacheSize=128m -Dsbt.log.format=true -cp "C:\MasseGuillaume-Scala99-1879
ed7\jansi.jar;C:\MasseGuillaume-Scala99-1879ed7\sbt-launch.jar;C:\MasseGuillaume
-Scala99-1879ed7\classes" SbtJansiLaunch
'"java"' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
C:\MasseGuillaume-Scala99-1879ed7>if ERRORLEVEL 1 goto error
C:\MasseGuillaume-Scala99-1879ed7>set ERROR_CODE=1
C:\MasseGuillaume-Scala99-1879ed7>exit /B
the error is in this line :
"%_JAVACMD%" %_JAVA_OPTS% %SBT_OPTS% -cp "%SBT_HOME%jansi.jar;%SBT_HOME%sbt-launch.jar;%SBT_HOME%classes" SbtJansiLaunch %*
What should I add to fix it ? The error says that it's Java is not recognized as an internal or an external command or programm.
I just don't get the message error. If I put the sbt.bat and jansi.jar and sbt-launch.jar in the C:\Program Files (x86)\Java\jre6\bin and i run the batch file, it's working.
Any solutions ?
I'll admit that I haven't done much French in the thirty-odd years since I left school (other than helping out the kids) but:
'"java"' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.
looks suspiciously like:
'"java"' is not recognised as a command internal or external, a program executable or a file of commands.
This is the old favourite 'something' is not recognized as an internal or external command, operable program or batch file that Windows tosses out when it can't find what you're trying to run.
So it sounds like you need to install a Java run-time environment, or modify your path to point to one that's already installed. Since you apparently have a C:\Program Files (x86)\Java\jre6\bin directory, I'd suggest the latter.
Go in to the control panel, select System then Advanced System Settings, choose the Advanced tab, then the Environment Variables button.
Then modify your path to include the JRE bin directory. After saving that, open another cmd window and verify it with path. That's needed to check (and use) the new path since it only affects new sessions, not existing ones.
Note those instructions are for Win 7, it may vary a little on other versions but the concept will be the same.
Alternatively, if you don't want to fiddle with the path in your control panel, you can change it in that batch file with something like:
set path="%path%;C:\Program Files (x86)\Java\jre6\bin"
That way, it will only be in effect when you're running the batch file.
Related
I installed Visual Studio Code (Vrs 1.4.0) in my Windows 10 device.
I have a perl script that starts with this lines:
#!/usr/bin/perl
# OK, recuerda que comilla simple no interpreta los caracteres reservados.
# calcula apariciones de numeros para sorteos segun solicitud
$txt1 = "De que sorteo quieres calcular corazonada?\n";
...
When I try to run it, I receive this error:
Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. at C:/Strawberry/perl/vendor/lib/Term/ReadLine/readline.pm line 410.
There are some other warning messages, but this is the error that stops the script.
How do I need to fix this?
The error message you quoted tells you one simple way to work around it:
set LINES=40
set COLUMNS=80
Reference: https://www.perlmonks.org/?node_id=1059438
I would use this command with windows-7-x64 :
C:\Program Files (x86)\MyFolder compass create MyTheme
but windows return :
'C:\Program' n'est pas reconnu en tant que commande interne ou externe,
un programme exécutable ou un fichier de commandes
How to do ?
Thank you
compass create C:\Path\to\MyFolder\MyTheme
the first word is always the command that is being run followed by the parameters. 'compass' is being run and the rest are the parameters.
note: if you're not running the console from the folder that contains the compass executable you will need to add the folder to the Path environment variable.
you can view the documentation here that outlines the correct syntax of the command to create a project https://teamtreehouse.com/library/compass-basics/getting-started-with-compass/creating-a-compass-project
I try to get the non- members of a Sandbox. But I get these erorr message.
si viewnonmembers -sandbox=D:\Sandboxes\project.pj
*** MKS124814: Cannot show view information: MKS125335: Out of tree members and
subprojects (not located in the project directory or a subdirectory of the proje
ct directory) are not supported.
From help of si viewnonmembers you could use option --cwd=value Act as if command executed in specified directory so the command should look like this:
si viewnonmembers --sandbox="D:\sandbox\test\project.pj" --cwd="D:\sandbox\test"
or with --recurse option to skip Do you want to recurse into the directory...
si viewnonmembers --sandbox="D:\sandbox\test\project.pj" --cwd="D:\sandbox\test" --recurse
Depending of your server configuration the .pj could be other than project.pj
Non-members can only be viewed in a sandbox context, and not from any project view operation.
So, before executing the command, you should jump into your local sandbox location:
cd SandboxFolderPath
when you are in your sandbox folder, you can execute
si viewnonmembers
I'm trying to start up WildFly 8 with a custom start.bat file that calls standalone.bat and then also a custom property file. When I run my start.bat I get this error in the command line:
C:\PWServer8>propworks_start.bat
C:\PWServer8\bin>call standalone.bat -P=../propworks/conf/propworks.properties -b 10.10.100.122
Calling "C:\PWServer8\bin\standalone.conf.bat"
Files\Java\jdk1.7.0_40"" was unexpected at this time.
I've done a search for "was unexpected at this time" within all the files in my WildFly folder but nothing turned up so I couldn't pinpoint where the error is coming from. Here is my custom start.bat and afterwards is my property file. If anyone knows what's going on it would be a big help.
propworks_start.bat
C:
cd C:\PWServer8\bin
SET JAVA_HOME="C:\Program Files\Java\jdk1.7.0_40"
call standalone.bat -P=../propworks/conf/propworks.properties -b 10.10.100.122
propworks.properties
#PROPworks Configuration Properties
#Wed Jun 18 17:18:03 EDT 2014
propworks.bind.address=10.10.100.122
propworks.database.class=Oracle10g
propworks.database.connection.sql=select 1 From Dual
propworks.database.desc=support#mcosrvorcl001
propworks.database.dialect=com.airit.propworks.server.dialect.PWOracleDialect
propworks.database.driver=oracle
propworks.database.password=-5522f65bbe2cc1c6
propworks.database.schema=uc2014
propworks.database.url=jdbc\:oracle\:thin\:#10.10.201.10\:1521\:bsdev
propworks.database.user=uc2014
propworks.http.port=8080
propworks.indb.use=NONE
propworks.jdk.home=C\:\\Program Files\\Java\\jdk1.7.0_40
propworks.messaging.port=5445
propworks.remoting.port=4447
archiver.enabled=N
orafin.database.driver=oracle
orafin.database.password=
orafin.database.user=
org.quartz.dataSource.QUARTZ.jndiURL=java\:/propworksDS
org.quartz.dataSource.QUARTZ_NO_TX.jndiURL=java\:/quartzDS
org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreCMT
org.quartz.jobStore.dataSource=QUARTZ
org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.nonManagedTXDataSource=QUARTZ_NO_TX
org.quartz.jobStore.selectWithLockSQL=SELECT * FROM {0}LOCKS WHERE LOCK_NAME \= ? FOR UPDATE
org.quartz.jobStore.tablePrefix=QRTZ_
org.quartz.scheduler.instanceName=DefaultQuartzScheduler
org.quartz.scheduler.rmi.export=false
org.quartz.scheduler.rmi.proxy=false
org.quartz.scheduler.xaTransacted=false
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount=3
org.quartz.threadPool.threadPriority=9
psfin.database.driver=oracle
psfin.database.password=
psfin.database.user=
pwarchiver.database.driver=oracle
pwarchiver.database.password=
pwarchiver.database.user=
Two solutions:
1) move java to folder that does not have spaces in it.
2) double quote path when you set it
SET JAVA_HOME=""C:\Program Files\Java\jdk1.7.0_40""
add \ similar below :
SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_40\
this is caused by the space in front of C:\Program , so what u need to do is changing your JAVA file in c:program files \java to another file without spaces , and then in top of your file write :
SET JAVA_HOME=""NEW DIRECTORY WITHOUT SPACE\Java\jdk1.7.0_40""
this worked for me.
I have downloaded Arc 3.1 and Racket to my Windows 7 machine.
I have solved many errors as instructed in http://www.arclanguage.org/item?id=12397
Now when I enter (nsv) the following error occurs and localhost:8080 comes out blank:
arc> (nsv)
'rm' is not recognized as an internal or external command,
operable program or batch file.
load items:
ranking stories.
user break
=== context ===
C:\arc3.1\ac.scm:1031:20
gs1259
ready to serve port 8080
user break
=== context ===
C:\arc3.1\ac.scm:1031:20
gs1259
**open-input-file: cannot open input file: "C:/dev/urandom" (The system cannot fin
d the path specified.; errno=3)**
=== context ===
rand-string
new-fnid
fnid
flink
zz
zz
zz
gs2061
cache
newspage
gs2059
gs1059
handle-request-thread
Sounds like there's something wrong with your cygwin setup. It can't find rm. Should the cygwin binaries be in your path or something?
Also, cygwin should probably be translating /dev/urandom, since C:/dev/urandom doesn't make sense