javac is not recognized as an internal or external command, operable program or batch file [closed]

TL;DR For experienced readers: Find the Java path; it looks like this: C:\Program Files\Java\jdkxxxx\bin\ Start-menu search for “environment variable” to open the options dialog. Examine PATH. Remove old Java paths. Add the new Java path to PATH. Edit JAVA_HOME. Close and re-open console/IDE. Welcome! You have encountered one of the most notorious technical issues facing … Read more

How do I print a list of “Build Settings” in Xcode project?

UPDATE: This list is getting a little out dated (it was generated with Xcode 4.1). You should run the command suggested by dunedin15. dunedin15’s answer can give inaccurate results for some edge-cases, such as when debugging build settings of a static lib for an Archive build, see Slipp D. Thompson’s answer for a more robust … Read more

How to set the environmental variable LD_LIBRARY_PATH in linux

You should add more details about your distribution, for example under Ubuntu the right way to do this is to add a custom .conf file to /etc/ld.so.conf.d, for example sudo gedit /etc/ld.so.conf.d/randomLibs.conf inside the file you are supposed to write the complete path to the directory that contains all the libraries that you wish to … Read more

Recommended way to get hostname in Java

Strictly speaking – you have no choice but calling either hostname(1) or – on Unix gethostname(2). This is the name of your computer. Any attempt to determine the hostname by an IP address like this InetAddress.getLocalHost().getHostName() is bound to fail in some circumstances: The IP address might not resolve into any name. Bad DNS setup, … Read more

Where can I set environment variables that crontab will use?

You can define environment variables in the crontab itself when running crontab -e from the command line. LANG=nb_NO.UTF-8 LC_ALL=nb_NO.UTF-8 # m h dom mon dow command * * * * * sleep 5s && echo “yo” This feature is only available to certain implementations of cron. Ubuntu and Debian currently use vixie-cron which allows these … Read more

How to set NODE_ENV to production/development in OS X

Before running your app, you can do this in console, export NODE_ENV=production Or if you are in windows you could try this: SET NODE_ENV=production for PowerShell: $env:NODE_ENV=”production” or you can run your app like this: NODE_ENV=production node app.js You can also set it in your js file: process.env.NODE_ENV = ‘production’; But I don’t suggest to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)