IBM Support

javax.microedition.io error when building the RTJava TargetRTS model

Troubleshooting


Problem

The following error occurs when recompiling the RTJava TargetRTS model. !> Compiling RTcompileAll com/rational/rosert/ObserverPipeKvm.java:13: cannot resolve symbol symbol : class StreamConnection location: package io private javax.microedition.io.StreamConnection streamConnection; ^ See below for full error output.

Cause

The javax.microedition.io package is found in the J2ME (micro edition). If you have the Standard Edition, this package does not exist.

Resolving The Problem

An example of the full error output on Windows looks like this:

!> Compiling RTcompileAll
com/rational/rosert/ObserverPipeKvm.java:13: cannot resolve symbol
symbol  : class StreamConnection  
location: package io
private javax.microedition.io.
StreamConnection streamConnection;
^

com/rational/rosert/ObserverPipeKvm.java:16: cannot resolve symbol
symbol  : class StreamConnectionNotifier  
location: package io
private javax.microedition.io.StreamConnectionNotifier notifier;
^
com/rational/rosert/ObserverPipeKvm.java:19: cannot resolve symbol
symbol  : class StreamConnection  
location: package io
public ObserverPipeKvm( javax.microedition.io.StreamConnection streamConnection )
^
com/rational/rosert/ObserverPipeKvm.java:84: cannot resolve symbol
symbol  : class StreamConnectionNotifier  
location: package io
notifier = (javax.microedition.io.StreamConnectionNotifier)javax.microedition.io.Connector.open( "serversocket://:" + portNr );
^
com/rational/rosert/ObserverPipeKvm.java:84: cannot resolve symbol
symbol  : class Connector  
location: package io
notifier = (javax.microedition.io.StreamConnectionNotifier)javax.microedition.io.Connector.open( "serversocket://:" + portNr );
^
com/rational/rosert/ObserverPipeKvm.java:86: cannot resolve symbol
symbol  : class StreamConnection  
location: package io
javax.microedition.io.StreamConnection connection = notifier.acceptAndOpen();
^
6 errors
NMAKE : fatal error U1077: 'rtperl' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\nmake.exe"' : return code '0x2'
Stop.
Error: Compile failed status 2

Build failed.


Workarounds

Standard Edition:

Make a copy of the $ROSERT_HOME/RTJava/TargetRTS.rtmdl model. Open the original TargetRTS.rtmdl and delete the class
Logical View::com::rational::rosert::Debug::ObserverPipeKvm

You should be able to rebuild the RTJava TargetRTS model now.


J2ME:

If you are using J2ME you may have to add the location of the Java classes to your CLASSPATH. The classes can be indicated by adding to the $CLASSPATH symbol using File >Edit Path Map... something like:
C:\j2me_cldc\api\classes

The exact value added will depend on where the Java classes are located on your workstation.







[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"2002;2003","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

21985

Document Information

More support for:
Rational Rose RealTime

Software version:
2002, 2003

Document number:
74899

Modified date:
16 June 2018

UID

swg21123140