About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
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;
^
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.
Related Information
[{"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
Was this topic helpful?
Document Information
More support for:
Rational Rose RealTime
Software version:
2002, 2003
Document number:
74899
Modified date:
16 June 2018
UID
swg21123140