English 中文(简体)
Unable to run Rational Rhapsody due to "Unable to compile" error
原标题:

I have problems with running the code in rhapsody and my error message is: "

Building ------------  MainDefaultComponent.class   ------------
Executing: "C:UsersolleIBMRationalRhapsody7.5.3Shareetcjdkmake.bat" DefaultComponent.bat build
Unable to compile

Build Done

"

Do anybody know how to make my program to successfully compile?

问题回答

The error is because Rhapsody can t find a java compiler. If you want to generate Java code using Rhapsody you need a JDK installed before you install Rhapsody, not just the JRE.

What JDK did you have installed before you installed Rhapsody, and where did you tell the Rhapsody installer it was located?

Your rhapsody.ini file (C:UsersolleIBMRationalRhapsody7.5.3 hapsody.ini)will contain a line starting JavaLocation=. This needs to match your JDK directory, e.g. C:Program FilesJavajdk1.6.0_24

This value is also hard-coded into jdkmake.bat; you can see this if you open it up in a text editor. So if you update your JDK after installing Rhapsody the build script doesn t pick up the path to the newly installed java compiler, javac.

Putting the path to your javac into jdkmake.bat lines 2 and 3 will fix the issue. Note that you ll need to use 8.3 filename style if there are spaces in the path to your javac.

I got similar errors installing rational rhapsody developer and then installing stuff like MingW, Visual C++ , etc.. the easiest way for me was to do in "control Panel->Software->Rhapsody->Change -> Repair/reinstall" rhapsody after it, so all internal necessary settings were performed by rhapsody itself. hope this helps.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签