Posts Tagged ‘windows’

Linux, Runtime.getRuntime().exec(…) and quotes

Monday, November 15th, 2010
String command = "java -jar \"/path/to/some/jar/foo.jar\"";

Here is an interesting problem I ran into while doing some work: why is Runtime.getRuntime().exec(command) reporting that it couldn’t access a jar file I was directly trying to invoke in code on Linux but worked no problem on Windows? The generated command was identical on Windows and Linux and copying the command and running it in a terminal executed as it should. WHY  DO YOU HATE ME JAVA AND LINUX?

Turns out that it was really only Java hating on me. After playing around with the command, I finally figured out that removing the quotes around the jar path fixed it:

String command = "java -jar /path/to/some/jar/foo.jar";

worked but

String command = "java -jar \"/path/to/some/jar/foo.jar\"";

didn’t.

So what is going on?
(more…)

This is not an Upgrade… GOOD NIGHT

Friday, September 5th, 2008

I’ve been looking into picking up a new Dell Latitude Mini 9 now that it is released (Dell if you’re reading this and want to send me a FREE, fully upgraded Ubuntu model, I’ll happily review it for you!) and came across this image from Dell’s website (click for the full size version):

Really?

“Upgrading” from Ubuntu to Windows XP? That is not what I’d call an upgrade. This puts Ubuntu in a really bad light if read by people who don’t know better. This sort of false advertising and misleading the public with opinion rather than fact is pretty bad in this case. I’ll meet you half way on this and won’t say that Ubuntu is an upgrade from Windows (since my personal opinion doesn’t matter here). It’d be more honest if you suggested that Windows is an alternative to Ubuntu, rather than an upgrade.

Moving a Family to Ubuntu – Part 2

Monday, May 5th, 2008

This is part 2 of my quest to convert my family’s PC from Windows to Ubuntu. If you missed the first part, please read it here. I thought that converting my family to an Ubuntu-based PC would be pretty painful, and to be honest, I thought I was going to have to reformat and install Windows. Luckily, so far it has not been the case.

(more…)

Moving a Family to Ubuntu – Part 1

Wednesday, April 23rd, 2008
The Back Story

Since I am the token computer scientist of my family, of course everyone comes to me for all their computer problems, which most of the time is due to spyware/malware. It happens. I get it, despite my best efforts it happens. I tell them to use Firefox, someone slips up and uses Internet Explorer the one day they go to a bad site. Even if they use Firefox, someone downloads something and runs it there-by borking (technical term) their system. Files get deleted, changed, what have you. Things just go wrong. Yes it is ultimately the user’s fault, however I do believe the operating system takes some of the blame for allowing things like this to be done in the first place. Well it has come to that time again for format another laptop and reinstall everything. Fine. I don’t mind it at all. They are family. However I am not going to just reinstall Windows again. It is time for an experiment. This time I am going to install Ubuntu 8.04.

(more…)