Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: How to import the Java packages into Rhapsoday
Topic Summary:
Created On: 4-Apr-2006 14:53
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 4-Apr-2006 14:53
User is offline View Users Profile Print this message


June Liu

Posts: 1
Joined: 15-Mar-2006

I want to use Java classes as types for some of my class attributes. How can I import certain Java package into the Rhaposdy, so that I can use the class types when I define my classes. e.g., I need to use the classs defined in java.net package.
Report this to a Moderator Report this to a Moderator
 4-May-2006 05:51
User is offline View Users Profile Print this message


Eldad Palachi

Posts: 56
Joined: 7-Oct-2005

You download the JDK source files and reverse engineer them as external packages.
Report this to a Moderator Report this to a Moderator
 28-Jan-2007 06:22
User is offline View Users Profile Print this message


Dietmar Berg

Posts: 23
Joined: 5-Jul-2005

The answer sounds too good to be true...
When you try to reverse engineer java.net, you get nondescript error messages like those below. Unfortunately, this also happens for a lot of our own existing code, giving the impression that Rhapsody (7.0MR2 on Windows) is still not ready for Java prime time :-(
Any hints how to get this working or at least get more useful diagnostics?

Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/Authenticator.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/CacheResponse.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/CookieHandler.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/DatagramSocketImpl.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/HttpURLConnection.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/MulticastSocket.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/NetworkInterface.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/Proxy.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/ProxySelector.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/ResponseCache.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/SecureCacheResponse.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/Socket.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/URI.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/URLClassLoader.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/URLConnection.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/URLDecoder.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/URLEncoder.java.
Fatal Error. Skipping the current file: C:/Tools/Java/jdk1.5.0_06/src/java/net/URLStreamHandler.java.
Report this to a Moderator Report this to a Moderator
 30-Jan-2007 17:09
User is offline View Users Profile Print this message


Dietmar Berg

Posts: 23
Joined: 5-Jul-2005

eldad's answer sounds easy in theory, but reality is disappointing...

I have tried to reverse engineer the java.net package into Rhapsody 7.0MR2, but it fails on ~15 classes with "Fatal error..." (not a really useful diagnostic message!). Same thing happens with some of our own classes or those generated by jaxb.

IMHO, if a tool claims to support the Java world, it should either include the JDK-libraries as reference models or it has at least be able to import them!

Rhapsody not [yet] ready for Java prime time?
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.