SublimeREPL starts lein with wrong Java - sublimetext2

I have a leiningen project which works fine when run from the command line. I try to run it from Sublime Text 2 with SublimeREPL but leiningen gets started with java 1.6 instead of 1.7:
(System/getProperty "java.version")
"1.6.0_29"
The same from the command line
lein repl
user=> (System/getProperty "java.version")
"1.7.0_40"
I have my PATH, JAVA_HOME and SublimeREPL.sublime-settings are all configured to Java 7. I work on OS X 10.8.5. Where should I look?

Related

When I run SikuliX IDE SikuliX starts but gets stuck with this pop up on screen: "SikuliX-IDE 2.0.4 is starting on Java 11"

I am new with Sikuli. When I run SikuliX IDE SikuliX starts but gets stuck with this pop up on screen: "SikuliX-IDE 2.0.4 is starting on Java 11". How can I solved this problem?
After that it should open your IDE, if not, try uninstalling java 11 and installing java 8. Should work after that

Launching UITesting from command line

As we know Apple introduced UITesting with Xcode 7. I have added the XCTestCase in my app and can rub the test via Xcode.
Is there any way i could run the test through terminal? eventually i would like my build server to run the tests for me.
Thanks
I use this:
xcodebuild test -project path/to/<project name>.xcodeproj/ -scheme <scheme> -destination 'platform=iOS Simulator,name=iPhone 6' ONLY_ACTIVE_ARCH=YES
Adjust accordingly.
I tried xctool, but ui tests didn't work, so I switched to xcodebuild

How to installing Pygame for Python 3.5 via pip?

I'm trying to install Pygame for python 3.5 32bit. I have learned that I can open the .whl files provided on the site by using the pip command. The problem is I've tried multiple ways doing this but with constant error.
python -m pip install pygame-1.9.2a0-cp35-none-win32.whl
'python' is not recognized as an internal or external command,
operable program or batch file.
The file I'm trying to install: pygame-1.9.2a0-cp35-none-win32.whl
My python program is located in my programs folder and everything else works fine.
You need to add python.exe to your Windows PATH variable.
The is the system variable that the operating system uses to locate the needed executables from the command line or Terminal windows. [1]
Actually there are many methods to set the PATH variable on windows. One way is to type
set PATH=%PATH%;location path of Python.exe
into the windows command-line interpreter (cmd):
set PATH=%PATH%;C:\Python35-32
Now -- before running the pip command -- you need to make sure that either
your working directory is set to the same folder where your pygame-1. ... in32.whl file is located
or
you supply the full absolute or relative path to the pip command.
Now you should be able to run your python -m pip command after restarting the cmd.exe.
if you get trouble when install pygame error about missing visual studio 10+. I have the answer: the problem is not about have or not have visual studio, because I try many version but it not work. The problem is file: between tar.gz and .whl so, this is the solution:
1) download file:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame go here and download your pygame version, notice about x64 or x86 and python version. my system is x64 and python is 3.4 so I choose: pygame-1.9.2a0-cp34-none-win_amd64.whl
2) put it in some where to install:
I put it in "C:", so open cmd: and type: cd C:\ (this changes the location to C:)
3) install
pip install C:\pygame-1.9.2a0-cp34-none-win_amd64.whl
done !

cppcheck in SublimeLinter doesn't work

I'm new to sublime text and I'm stuck with a problem - I installed SublimeLinter via Package Control, and installed cppcheck via sudo apt-get install cppcheck (I'm using linux mint 13). SublimeLinter works fine with python source code, but don't show any vital signs when I save/load .cpp files and ask to show lint errors in C++ source code. What am I doing wrong?
UPD
Here is my sublime text console output:
...
SublimeLinter: c_cpplint loaded
SublimeLinter: C loaded
...
SublimeLinter: c enabled (using "cppcheck" for executable)
SublimeLinter: python enabled (built in)
...
Shall I set up support for .cpp code manually?

Start JRubyStack with Console 2

I have installed the JRuby Stack environment in Windows which uses the default windows cmd as a console. I want to use Console 2 but unfourtunately I don't know how to configure it.
I tried creating a new tab in Console to and in Shell I gave it the path to
"C:\Program Files\BitNami JRubyStack\use_jruby.bat"
Unfourtunately, this bat opens the CMD by default:
#echo off
CALL C:\PROGRA~1\BITNAM~1\scripts\setenv.bat"
cd "C:\Program Files\BitNami JRubyStack"
START "BitNami JRubyStack Environment" cmd
So.. any ideas?
Thanks!