aspose file tools*
The moose likes Java in General and the fly likes Where can we use Real-Time Java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Where can we use Real-Time Java ?" Watch "Where can we use Real-Time Java ?" New topic
Author

Where can we use Real-Time Java ?

Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 784

Hello Eric & Greg,
Where can we use Real-time Java ? Can we use it for legacy code ? Legacy code means the code which is already written for application software(code of old application software).

Message edited to clear the meaning of legacy code.


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
Please define "legacy code". That phrase can have various meanings, and it's not clear from your question which one you mean.


Ping & DNS - updated with new look and Ping home screen widget
Tibi Kiss
Ranch Hand

Joined: Jun 11, 2009
Posts: 47
Hi!

Sometimes ago I was busy finding a microcontroller platform which performs well runing realtime Java applications. Since I couldn't find one, I give up with the idea to write Java applications for embedded devices.
I have a microcontroller board based on AT91SAM7XC. Looks like there is one model which has some Java extension. There are more microcontrollers, but I don't know if that model can be used in Java RTS environment.

If I could find a solution to use Realtime Java on these tiny microcontrollers, I would try it. Anybody has some information, knows any microcontroller model good for Realtime Java?
The best it would be that my AT91SAM7XC would be able to cope with a Java RTS environment.
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Ninad Kulkarni wrote:Hello Eric & Greg,
Where can we use Real-time Java ? Can we use it for legacy code ?

Not that I'm the authors, but....

If I recall correctly from having played with RT-Java at JavaOne in '07 (which was, mind you, a lot of fun) - I think that you need an operating system that supports realtime operations. I think there's a version of Solaris that fits the requirements, and an extension to the Linux kernel, but I think it's fairly limited the types of systems on which you're able to use RTJ.

If I'm wrong, I hope someone will correct me (and here's hoping I'm wrong....)


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
Java RTS will run on a stock Solaris 10 system (x86/x64 or SPARC) with at least 1GB of RAM. Also, it supports Red Hat MRG and SUSE Linux Enterprise Real-time.
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 784

Thanks Eric, Theodore, and Tibi
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
So it cannot be run on Windows, Mac?


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Kengkaj Sathianpantarit wrote:So it cannot be run on Windows, Mac?

Maybe you can use VirtualBox to run Solaris 10 or one of the supported Linuxes. It's not perfect, but at least you could get some experience with Java RTS.
Burk


SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
That's correct. In fact, that's how I do development on my Mac. I run Solaris in VirtualBox. Remember, unless Solaris is running natively on the hardware, you cannot be guaranteed of real-time behavior. But it's good enough for easy development. The moment you want to measure your software's ability to meet its deadlines in time-critical situations, you cannot test in a virtual environment. You will need dedicated hardware to do it.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Eric Bruno wrote:That's correct. In fact, that's how I do development on my Mac. I run Solaris in VirtualBox. Remember, unless Solaris is running natively on the hardware, you cannot be guaranteed of real-time behavior. But it's good enough for easy development. The moment you want to measure your software's ability to meet its deadlines in time-critical situations, you cannot test in a virtual environment. You will need dedicated hardware to do it.

Dang. So I'd need to set up a dual-boot on my Mac or PC to really see Java RTS in action. Seems like a lot of work for a 90 day trial.

I guess it's another example of TANSTAAFL - There Ain't No Such Thing As A Free Lunch.

Thanks for the info,
Burk
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
No, VirtualBox is like VMWare or Paralells. You run it on your host OS and then install Solaris 10 inside it. See this post for a screenshot of how I do this:

http://www.coderanch.com/t/449916/Java-General-intermediate/java/Ability-test-RTSJ-non-RT

Then go download VirtualBox from virtualbox.org. It's open-source and won't cost you anything.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
So you're saying I can run Solaris/Linux in VirtualBox and get the guaranteed real-time behavior? If so, that's way cool!
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
No, please review my post above. You won't get real-time behavior in a virtual environment, but it works well enough to develop on.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Eric Bruno wrote:No, please review my post above. You won't get real-time behavior in a virtual environment, but it works well enough to develop on.

OK, let me make sure I've got this right. I can use VirtualBox and work with Java RTS, but to actually see the real-time behavior I do need to have Solaris/Linux running natively - which means a dual boot on Mac or PC currently running Windows. Is that right?
Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
Yes.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Great! That's what I thought I wrote, or at least what I meant to write, the first time.

Thanks for being patient
Burk
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
Thanks for info, Burk, Eric.
Burk Hufnagel
Ranch Hand

Joined: Oct 01, 2001
Posts: 814
    
    3
Kengkaj Sathianpantarit wrote:Thanks for info, Burk, Eric.

You're welcome. That's part of why JavaRanch exists, right?

Burk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where can we use Real-Time Java ?
 
Similar Threads
what are sockets?
JSF outcome across contexts
Legacy to Web Migration - The OO approach
which senario we use abstract and interface in java
Legacy Connectivity ....thanx John and Amanda