0

I am very new to Realtime system development in Java. I create Java files in OpenSuse and compile it. I get an error:

The import javax.realtime cannot be resolved.

I have been searching for RealTime JAR file. I tried many website such as FindJar.com, Oracle website (Sun), etc. I cannot find it.

Any idea how to resolve this?

Piotr Nowicki
  • 17,914
  • 8
  • 63
  • 82
alvin8866
  • 65
  • 2
  • 9
  • 1
    possible duplicate of [Eclipse cannot import javax.realtime](http://stackoverflow.com/questions/8222590/eclipse-cannot-import-javax-realtime) – Dave Newton Nov 24 '11 at 00:36

5 Answers5

5

Realtime behavior is not something you can add to a VM by just adding a Jar file. The way priorities and synchronization are handled is completely different in a realtime JVM. You can download the personal edition of JamaicaVM to try out the RTSJ: "http://www.aicas.com/jamaica-pe.html". JamaicaVM does not just provide the javax.realtime package, but also provides realtime garbage collection.

1

Check out http://java.sun.com/javase/technologies/realtime/rts/ . There is a evaluation download and academic license if that meets your demands

jontro
  • 10,241
  • 6
  • 46
  • 71
  • I tried. I get this message: "The Java Real-Time System evaluation program is closed at this time." I tried to contact them yesterday. I do not receive any response yet. – alvin8866 Nov 23 '11 at 12:21
  • Check out this: http://stackoverflow.com/questions/8222590/eclipse-cannot-import-javax-realtime – jontro Nov 23 '11 at 14:05
  • Dude, I checked the thread before creating this thread. However, I'm unable to find javax.realtime package. – alvin8866 Nov 23 '11 at 18:38
1

You could try: http://www.timesys.com/java/ (RTSJ Reference Implementation from timesys) . The copy's for Research Purpose though.

LapFoong
  • 11
  • 1
0

I have found out that the Javolution-Core package contains javax.realtime.RealtimeThread class https://mvnrepository.com/artifact/org.javolution/javolution-core-java/6.0.0. However, the essential dependencies like javax.realtime.SchedulingParameters and javax.realtime.ReleaseParameters are still missing from this package.

Václav
  • 430
  • 1
  • 7
  • 22
0

I think you can download a RT implementation from IBM for Java 8 here.

Also, if you want more find more information check this answer.

Teocci
  • 7,189
  • 1
  • 50
  • 48