Categories
Java Web Development WebSphere

RAD 7 – (Small) SNAFU Number Two (with solution)

Class diagrams are great. RAD 7 has them and it generates and updates code based on them. Lovely.
The forward and reverse engineering capabilities, the works.
Now if you refactor the classes and change package names… then you’re in trouble. The class diagram is like, oblivious to the change and being unable to find the classes the diagram is based on it just chokes. So just be aware of this possible problem.

How to fix this:

  1. Open the dnx class file with RAD’s XML editor.
  2. Search for the term “srcfolder” – this is where the diagram looks for your source code
  3. Do a replace all for the value srcfolder is set to – e.g. srcfolder=src%5B (the %5B stands for the URL encoded ‘]’ character – and set the replacement value to the new refactored package name – e.g. srcfolder=src/java%5B

Now open the diagram again using the DNX file viewer and voila – your diagram is back!

Share
Categories
Computing Java WebSphere

RAD 7 – The first snafu

I arrived at work today and meant to fire up Rational Application Developer 7, the truly-so-much-improved-Eclipse-based IDE from IBM that I have to use because the client mandates it.
Really, it is so much better than version 6, run faster, 10 times more stable, everything – seriously better. And I am like, all ‘Go IBM!’ and telling other co-workers using version 6 that 7 is like, just great. And we look at each other and say together – ‘Just wait…’.
So today the wait is over.
RAD refused to start, crashing with a java.lang.VerifyError. Java errors mean the world had just come to an end, and on behalf of Java and the rest of the development team, they wish you all the luck. And yeah, F- you. I looked online – nothing really other than this. I tried starting up RAD with a -clean parameter which did absolutely nothing (that works in Eclipse, normally). I then looked at the eclipse.ini file and the moment I saved it, RAD not only did not start, it popped a window saying “Could Not Start JVM”. Sweet.
Final attempt: renamed eclipse.ini to eclipse-old.ini and wham – everything started again…
I copied another instance of the ini file to my machine and restarted again and it still worked.
Nonetheless, a waste of 3 hours.
So after it gained my faith, I am back feeling a bit shaky with my RAD….

Share
Categories
Computing Java WebSphere

IBM RAD 7.0 and Subversion

Yay. I am moving to Java 1.5, WebSphere 6.1 and most importantly, IBM Rational Application Developer 7.0 for WebSphere (RAD 7.0). Unlike its previous version which bombed when trying to install the Subclipse plug-in, RAD 7 appears to have survived the transplant.

Follow the instructions – note that RAD 7 is appears to be based on Eclipse 3.1 so use the links to that update site and not the ones for the more recent version of Eclipse. Modern, not.

Share
Share