aspose file tools*
The moose likes Java in General and the fly likes Ability to test RTSJ on non-RT systems? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Ability to test RTSJ on non-RT systems?" Watch "Ability to test RTSJ on non-RT systems?" New topic
Author

Ability to test RTSJ on non-RT systems?

Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

I've wondered this for a while, but figured I'd ask this here since I've never actually tried it.

I remember from JavaOne in 07 (the slot car challenge) that it's entirely possible to write an application using RTSJ on a non real-time system (I was coding using Netbeans on my Vista laptop), but I don't recall actually trying to test the code I'd written on my obviously non-real-time system. Is it possible to test-run RTSJ code on a non real-time system, or will it be down the road, at least to validate that it functions, or does that require transferring the byte code to the destination system?

(I suppose the major impetus for asking is evaluating it for use in a project later this year for the students on the robotics team I mentor...)

Thanks!


Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
No, it will only run on Solaris 10 or Linux with the proper kernel and real-time patches installed. However, I develop on a Mac and deploy and run on Linux running within VirtualBox. There is a NetBeans plugin that allows you to remotely deploy.
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Thanks for the quick response. Hmm. Me thinks I need to talk my team's school into letting me run a Linux box....
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
What are you using now? You can download and install VirtualBox from virtualbox.org and then install Ubuntu Linux inside of it. When you launch Linux, execute the following command:

apt-get RT-PREEMPT

Make sure you choose the right kernel (with the rt-preempt in the name) when you start Ubuntu within VirtualBox. Then you can develop on your host, and copy it (via FTP) to Linux virtual OS and test all on one physical computer. This is exactly how I do it. Take a look at the screen shot attached. It shows NetBeans 6.5 running within Ubuntu on my Mac.


[Thumbnail for screen-capture.jpg]

Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

I need them to get me new machines anyway - we're doing our coding, at the moment, on some fairly ancient Windows machines.

I'm not opposed to the VirtualBox solution, it's more a matter of getting approval to use it - the school board is not quite the most.. technologically up-to-date or knowledgeable group. But since we're likely transitioning the team to using Java for software this year (I have to train a wholly new programming team, as my former programmers were graduated this year), I figured it'd be a good opportunity to investigate.

I'll definitely have to look into the software you mentioned, though. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ability to test RTSJ on non-RT systems?