Does someone know how to run javascript (jscript would be fine also) in Ruby on a windows machine ? execjs, V8 and therubyracer don't seem to be available for windows..
I know how to run javascript outside Ruby.
According to their Github, ExecJS is in fact available for Microsoft Windows. It uses Microsoft Windows Script Host (JScript).
Related
I am a php developer, and I am trying to convert my php knowledge to node.js. I just started working on this beautiful back-end development project for an app in node.js. I use Intellij IDEA on windows 8.1. I still code in php for a different project and sometimes I miss my Putty when i code in node.js and I don't like Intellij IDEA's windows terminal. I have been searching if there is a way that i can use Intellij IDEA's terminal with Linux commands on windows. I get really hard time to look for windows commands each time. Is there anyone has a recommendation about it? Thank you in advanced!
If you want to use Linux commands on Windows you need Cygwin. You can use Cygwin in the terminal inside Intellij IDEA. This is how to set it up
hello I want to know how to open a .JAR file with parameters from a metro app developed with WinJS in VS2012
in console the way to call them is
java -jar C:\folder\file1.txt
thanks in advance for your support
You can't run a Java application under WinRT. You can't launch an external process either.
Java is only supported on the Desktop mode of Windows 8+.
To be approved, Windows Store applications must contain all functionality within the application package.
When i use RSpec with Capybara to test my rails javascript page, I get the following error:
Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=linux).
Actually my rails scripts are all written on the linux server, where there is on brower installed, and desktop software is not supported on the server (since X11 is not installed).
How can I test javascript in this situation. Or is there a brower that works without X11 installed like wget? Thanks.
What you want is the capybara-webkit gem, which will allow you to run your browser tests in "headless" mode, i.e. without an actual browser being open. You'll need to install QT (a cross-platform development toolkit) to get it to work, because it uses the QT webkit. See the documentation for details on installing on different OSs.
I use this setup for my js-dependent tests and it works like a charm.
I downloaded the eclipse Javascript IDE from the official download page however, when i start the application it says "A Java Runtime Environment or Java development Kit must be available in order to run eclipse." I already have a java IDE copy of eclipse that runs fine so I don't understand why its asking for another JDK.
I just want to develop Javascript in Eclipse, does anyone have any idea how to? Are there special tools or plugins i'm meant to get to get it to work?
Maybe other copy of eclipse use -vm variable in eclipse.ini file, therefore, it work correctly.
Make sure you have JAVA_HOME in Environment Variables or add -vm configuration into eclipse.ini file.
For more information, see this link:
http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F
For best experience doing JS/HTML/CSS I recommend you using Aptana as plugin. Here you can download it http://www.aptana.com/products/studio3/download Be sure to check Eclipse Plug-in Version option.
Check your version of the runtime that you installed. You can upgrade or downgrade (i.e. if JDK 7, then try JDK 8 and vice versa you can even try JDK 6) and see if it works.
On Ubuntu 14.10 open JDK 7 did not help me much but the older (open JDK java 6 runtime) and the newer open JDK Java 8 helped me out.
i want to Debug my js codes in Eclipse.
how to setup Mozilla rhino in Eclipse...
(step by step guide.
If you are using embedded Rhino I would use the debugger provided with the Rhino shell in the tools folder.
Check out the source code and browse to the main.java file in the debugger tool. Use that as a template to create your code to start the debugger in your javascript code.
As for using Eclipse to debug an embedded Rhino application I have heard of people doing it but I don't think that it would be worth the trouble.