Set JDK on OSX

Table 1. Revisions history Version Date Comments v1.2 11/9/2016 Explained JVMPlatformVersion for Java 9 v1.1 11/8/2016 Added Java 9 command v1.0 01/19/2013 Initial blog post Apple announced to remove Java Preferences app from Mac OS X. Details could be found here http://support.apple.com/kb/HT5493). Let’s try to fix it. Generally, Java applications will use the JAVA_HOME environment variable to pick a JDK. ...

January 19, 2013 · 1 min · Viktor Gamov

WebSockets for Java Developers. Princeton JUG talk slides

Last tuesday I delivered presentation at Princeton JUG «WebSockets: The Current State of the Most Valuable HTML5 API». + HTML5 specification includes WebSockets, a new communication protocol for the Web. It’s becoming the best choice for building real-time Web applications. I did an overview of the servers (including upcoming JavaEE 7 RI - Glassfish 4) and frameworks that support WebSockets and showed some use cases where WebSockets shine. At the end we had short conversation about various approaches for the server- and client-side implementations of WebSockets that can be used in the Web applications today. ...

July 26, 2012 · 1 min · Viktor Gamov

Alfred Extension: Show/Hide desktop icons on Mac OS X

For some reasons, I’m using desktop as temporary storage of files - downloaded from internet, in-progress documents, screenshots and code snippets. Time after time I create screencasts and I need to have clean desktop. First, I tried to find available solution and have found Desktop Curtain. I don’t need all this fanciness (different desktop wallpapers, customization) so $2.99 is overkill for me and for this taks. So, I decide to create my own solution with help of shell and Alfred. Googled for Mac OS X command and I created simple script what I wrapped after as Alfred Extension. You can download Alfred Extension for my Dropbox. To use it you need to have Alfred PowerPack purchased. Cheers

May 21, 2012 · 1 min · Viktor Gamov

WebJars for assets management in your project

Usage automatic build tools for dependency management is best practice in Java world and usage of tools such as Maven has been proven by the years. But what if utilize existing Maven knowledge of Java dependencies management for JavaScript projects. Hopefully, some Java and JVM frameworks (like Grails or Play2) provided their own way of dealing with static resources. But in most common situations, you don’t have lot of options for deployment your application. To read the full post, surf on over to the Farata Systems Blog: http://flexblog.faratasystems.com/index.php/using-webjars-for-assets-management-in-javascript-projects/ ...

May 16, 2012 · 1 min · Viktor Gamov

How to download videos from InfoQ for offline viewing

From my humble opinion, InfoQ is one of best resources for developers nowadays. You can find lot of IT related stuff - interviews, articles, presentations slides and videos. And today I would like to talk about videos from InfoQ in particular. Is always good to have offline version to watch it during long commute, for instance. Unfortunately, InfoQ administration for some reasons not allow to download videos. However, I found very elegant solution how to do that. I did it on my MacOS X with Safari, probably it will work with Safari for Windows as well. ...

January 28, 2012 · 1 min · Viktor Gamov

Rapid automation for Flex/Java/BlazeDS projects

Right after vacation I talked on New York Flex User group regarding open source project for Flex/Java developers - Clear Toolkit. Here are the slides of my presentation. Feel free to comment!

January 10, 2012 · 1 min · Viktor Gamov

Adobe MAX

Here are the small notes from Adobe MAX conference: Flash is still here. Adobe creates tools for seamless transition b/w Flash and HTML5 (Adobe Edge) Touch apps is next big thing. Mobile apps developed with Flash/Flex/Air and packaged to native. Upcomming changes in Flash runtime- workers - actionScript threads Upcomming changes in AIR platform - native extensions Creative Cloud - another big thing was announced. Sharing and collaboration b/w creative suite applications and new touch app.

September 11, 2011 · 1 min · Viktor Gamov

Eclipse: java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

Last weekend spend in setup of environment for eclipse plug-in development. I have task to fix and update one plugin. This is add-on to Flash Builder. But before adding something, it’s good to run that plugin before. My environment is Mac OS X 10.7 Lion, Eclipse 3.6 (32bit because FB not supported 64bit version of Eclipse) and Flash Builder 4.5. But I faced with odd exception !SESSION 2011-07-25 23:59:39.350 ----------------------------------------------- eclipse.buildId=M20110210-1200 java.version=1.6.0_26 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -product org.eclipse.epp.package.jee.product -data /Users/apple/Workspaces/work/../runtime-EclipseApplication -dev file:/Users/apple/Workspaces/work/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os macosx -ws cocoa -arch x86 -consoleLog !ENTRY org.eclipse.osgi 4 0 2011-07-25 23:59:57.129 !MESSAGE Application error !STACK 1 java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM at org.eclipse.swt.internal.Library.loadLibrary(Library.java:197) at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174) at org.eclipse.swt.internal.C.(C.java:21) at org.eclipse.swt.internal.cocoa.NSThread.isMainThread(NSThread.java:33) at org.eclipse.swt.graphics.Device.(Device.java:116) at org.eclipse.swt.widgets.Display.(Display.java:671) at org.eclipse.swt.widgets.Display.(Display.java:662) at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:708) at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161) at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:145) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:88) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) An error has occurred. See the log file /Users/apple/Workspaces/runtime-EclipseApplication/.metadata/.log. Mac OS X shipped with 2 versions of JVM - 32 bit and 64 bit accordingly. So, First I tried to change order of JVM preference from /Application/Utilities/Java Preferences but it didn’t work. ...

July 26, 2011 · 2 min · Viktor Gamov

Building and Testing with Gradle - My Book Review

Last month I participated in JAXConf conference on San Jose, CA. There was many talks related to agile development and code quality stuff. And after that event I started looking to Gradle - next generation build tool. Couple weeks later I found a Building and Testing with Gradle written by git evangelists Tim Berglundand ( @tlberglund) and Matthew McCullough (@matthewmccull). Book very focused and easy to read. I got my dirty cheap ebook version on thursday night, read this book during my commute to work and now come up with this review. [][7] Looking at the [table of contents][8], you can see the book covers big part of questions. What this book is about: ...

July 10, 2011 · 2 min · Viktor Gamov