VerySimple Developer Blog
Technical Tips, Tricks and Rants.

Archive for the ‘OSX’ Category

 
Oct
18
Filed Under (Announcements, OSX) by Jason on 18-10-2007

OSX 10.5 Leopard may show the following error in the console when opening certain Java applications in Rosetta:

JavaVM FATAL: Java for ppc cannot run in this configuration.
JavaVM FATAL: Please consult documentation.

This error appears in PPC applications that have a Java component and are trying to use an older version of the Java runtime. Apple seems to have not included the complete 1.3.1 JDK with Leopard, instead the 1.3.1 folder simply contains an alias to the Java application launcher.

A patch file LeopardJavaPatch.zip includes a replacement for the 1.3.1 JDK that resolves the issue in some cases. Installation is easy - simply unzip the archive and follow the instructions to update your 1.3.1 JDK folder.

If this doesn’t solve your problem, you can also try downgrading the JDK using the instructions included in the “Advanced” section of the LeopardJavaPatch.zip ReadMe. Or alternatively macoshints.com provides a script to manage your system JDK settings.

Please note that this patch only fixes issues for Leopard. If you are running Tiger or an earlier version, then you are more likely to solve your problem by downgrading the JDK (see above).

If you have any comments or additional information about this error, please feel free to leave a comment.

 

 
Dec
03
Filed Under (Announcements, OSX, Windows) by Jason on 03-12-2006

Update: The proof of concept that I did here was actually implemented as a feature into Parallels version 2.5. Did my idea inspire them or where they already working on it…? The world may never know! My humble idea had it’s 15 minutes of fame on the social network sites. Alas, this hack is no longer necesary for launching Windows applications. However, it still may be interesting and useful as a crude messaging system between the host and guest OS. With that I present the original article:

With the latest version of Parallels coherence mode you can run Windows apps yet have the Windows OS itself transparent. This creates the visual effect that you are running Windows apps within OSX. The coherence feature is still a little rough but it got my gears spinning and I saw some amazing possibilities. The illusion doesn’t seem quite complete to me without being able to launch Windows apps from the Dock. I created this simple app as a proof of concept that it could be easily done. It’s simple but it works!

You can try it out for yourself: Download docksync_v01.zip

The app requires .NET Framework 2.0 which you can install from Windows Update

Update: Grab Matt’s add-on DockSyncOSX and you can drag/drop Windows Shortcuts!

Demo Video

How does it work?

Obviously there is some communication between OSX and Windows already through parallels. But, not having access to that API, I decided to create a simple app on the Windows side that basically monitors a shared directory. On the OSX side, you simply create a specially crafted text file in that directory to send a command over to Windows. Any OSX method to generate a text file can be used. Just to keep things simple, I used a shell script that can be executed by double-clicking an icon. The result is crude but it works and hopefully might inspire someone to take it a little further.

Here’s a screenshot of the Windows app that’s monitoring for commands:

docksync.png

This is being released with no license so use the code at your own risk. If you have any suggestions or updates, please post them here. In particular if you know of an cleaner way to trigger the creation of the task file on the OSX side, that would be cool. Preferably something that people can create and edit without having to compile.

Download docksync_v01.zip

 

 
Dec
01
Filed Under (OSX, Windows) by Jason on 01-12-2006

All of us who are into the Windows on OSX thing via bootcamp, parallels, VMWare, etc have been hearing of a mysterious ability to actually run windows applications right there on the OSX desktop. How would this be done - will Apple write some sort of API wrapper to run Windows Applications? Will bootcamp mysteriously merge with OSX? What does this all mean?

Well I have seen the future. And it is not quite what I was expecting.

Windows on OSX (Small)

Windows on OSX (Medium)

I’ve been playing around with the latest beta version of Parallels, which is now available for download from the parallels forums. There’s a surprising amount of new feature for a minor version update, but one that I found strange and interesting is a feature called “Coherence Mode.” Coherence mode is supposed to allow you to run windows applications right on the OSX desktop.

As you can see from the screenshot, it really does visually look like you are running a windows application right there on the desktop. Since you can drag your mouse around and grab various windows in either Windows or OSX, it really does somewhat feel like the apps are running in OSX too… kinda! What Parallels seems to have done is basically to have windows running over the top of OSX, but visually hide the actual desktop. So, it is more or less just a visual trick. One wierd thing that you’ll notice from the screenshot is that the windows taskbar is floating just above the OSX dock. I’m sure Apple fanboys will struggle to keep their lunch down at the sight of it! Even I find it a ugly.

In addition to the Coherence Mode feature, Parallels now supports drag-n-drop between the two operating systems. This feature works really great. Though it is again some amount of visual trickery again, since files could be easily copied through the virtual shared directories. You can’t drag a file from a windows app to a mac app - now that would be cool! But, it’s seamless and this is a really nice feature.

All in all, I think they are on the right track. If they can get the drag-n-drop working a little better when in coherence mode, perhaps even dragging and dropping between applications, that would really make it feel like the windows app is truly running in OSX.

 

Close
  • Social Web

NOTE: Email is disabled

E-mail It