Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Subversive error because a newer version is already installed

Subversive error because a newer version is already installed

After a recent update to my Eclipse install every time I restarted the application I kept getting the following screen pop up
Subversive Connector Discovery

The issue was that it didn't matter which connector I installed I got a message stating
Cannot complete the request. See the error log for details.
"Native JavaHL XXX.XXX Implementation (Optional)" will be ignored because a newer version is already installed.
"Subversive SVN Connectors" will be ignored because a newer version is already installed.

After Google not helping me I went through the About Eclipse > Installation Details and removed all references to the connectors. In the screen shot below you can see the last couple of references highlighted
Eclipse Installation Details: Subversive Connectors

With all of them removed I restarted Eclipse and was again presented with the Subversive Connector Discovery screen but this time the selected connectors installed fine.

Comments Comments (1) | Print Print | Send Send | 1483 Views

CFBuilder beta2 slowing down on Mac

After installing CFBuilder beta 2 in standalone mode I noticed that after a period of time the WindowServer service was eating up my CPU.

After a quick mention on twitter I found out @sebduggan was also having the same issue.

For anyone else getting this @sebduggan has posted a bug to the Adobe ColdFusion Bug Tracker (ID: 80249)

For the record I have gotten around the issue by installing CFBuilder as a Pluggin to a fresh copy of Eclipse

Comments Comments (0) | Print Print | Send Send | 291 Views

CFEclipse 1.3.4 released

With the annual release of Eclipse Galileo the CFEclipse team have pushed out its latest release of CFEclipse 1.3.4!.

This update brings compatibility with Eclipse 3.4 and Eclipse 3.5 along with:

  • An updated CF8 Dictionary
  • Some mild updates to the parser
  • Mark occurrences of selected words (tag/variable/method/etc)
  • Integration with Eclipse's DocShare (optional)
  • Preference for modifying the browse url on unit tests to run unit tests
Thats just the tip of the iceberg though, check out the full list here

Available from the update site get it now http://www.cfeclipse.org/update

Comments Comments (2) | Print Print | Send Send | 324 Views

My blog has moved

Please update your bookmarks and feeds for my site.

I now have a Mango Blog at:

http://www.andyjarrett.com/blog

Feed URL: http://feeds.feedburner.com/andyjarrett

Comments Comments (0) | Print Print | Send Send | 1195 Views

Fridays Joke: The Blackboard

Another Friday has come around. Its been a long but good week for me, i've been on a 5 day Mastering IBM Websphere course ... I'm no master yet and my head is ready to blow up with terms, patterns and accronyms flying out buts its good. I think these courses are good, especially for any CF developer as it gives you a great understanding in how a large strongly typed language web project has to come together (and makes you appreciate how easy CF makes it too). Also the Websphere Application Developer (Eclipse based tool) is pretty cool (though it should be for £3000 per seat) but I've had no luck trying to install on a Mac, has anyone out there done it?? I've got the WAS Community Edition server going which I'll post about later. Anyway, the majority of you are here for the joke, enjoy!

One day when the teacher walked to the black board, she noticed someone had written the word 'penis' in tiny small letters. She turned around, scanned the class looking for the guilty face. Finding none, she quickly erased it, and began her class.

The next day she went into the room and she saw, in larger letters, the word 'penis' again on the black board. Again, she looked around in vain for the culprit, but found none, so she proceeded with the day's lesson.

Every morning, for about a week, she went into the classroom and found the same word written on the board, and each day it was written in larger letters.

Finally, one day, she walked in, expecting to be greeted by the same word on the board, but instead, found the words, "The more you rub it, the bigger it gets!"

Comments Comments (1) | Print Print | Send Send | 2531 Views

CFEclipse and Adobe CF Extensions in one download

In the first part of this 2 parter I mentioned the differences between the 2 ColdFusion plugins for Eclipse that are out there. Here I have put them into one zip file for you to download and install, it really couldn't be easier to check out the CF environment "everyone is using"*

Update: After a quick read of the EULA from Adobe, it appears that I was being a little naughty by bundling them together. Hence the quick removal/update of the original post (anyone who got here first was lucky). That doesn't mean that you still can't have a cracking CF dev environment. The zip I produced was files taken from 2 sources: Eclipse 3.3 and the ColdFusion Extensions for Eclipse and the CFEclipse download section of the site.

To download and install CFE follow the instructions here. To install the CF Extensions just:

  1. Download http://www.cfreport.org/eclipse/ColdFusion_Extensions_for_Eclipse.zip and unzip on your desktop
  2. In Eclipse to o Help -> Software Updates -> Find and Install -> Search for new features to install
  3. Click on New Local Site...
  4. Choose the extracted folder on your desktop
  5. Click Select
  6. Click OK and then click Finish
  7. You'll then be asked to select the features you want to install. Select ALL checkboxes and click next
  8. "Obviously" read the Feature Licenses and the accept the terms
  9. The installation page is an overview of the new features you've selected, all you need to do is click 'Finish' to run the update manager
  10. The Adobe features will require you to install a signed feature, just click 'Install all'
  11. Finally, restart

Thats it, you're now up and running. Your next two stops are the CFEclipse and Adobe's ColdFusion Extensions site. Also don't forget the reference section at the bottom of this post, espically Charlie Areharts list of over 70+ bloggers (part 1 and part 2)

References:

*Citation needed :o)

Comments Comments (2) | Print Print | Send Send | 4517 Views

Difference between CFEclipse and CF Extensions

This post is in two parts as I realised it's probably not good to bombard you with one longgggg post. The second part (which is the reason this post even exists) is about a new zip file that I have put together so you can download CFEclipse and Adobe CF Extensions in one go. This post first off covers the difference between them so you know what you are getting and why you want it;

Incase you don't know the CF Extensions are very different to the CFEclipse plugin for Eclipse but both are essential for your CF development environment.

The Adobe CF Extensions is essentially an updated version of the old RDS functionality found in the old CFStudio and Homesite 5+ but also includes a host of new code generation features to make development quicker:

  • Eclipse RDS Support plug-in, which lets you access files and data sources on a ColdFusion server.
  • ColdFusion/Flex Application wizard, which lets you create master and detail pages in an application to create, read, update, and delete records in a database.
  • ColdFusion/Ajax Application wizard, which lets you create master and detail pages that use Ajax elements in an application to create, read, update, and delete records in a database.
  • RDS CRUD wizard, which lets you dynamically create a ColdFusion component (CFC) based on a table that is registered in the ColdFusion Administrator on a ColdFusion server
  • ActionScript to CFC wizard, which lets you create a CFC based on an ActionScript class file.
  • CFC to ActionScript wizard, which lets you create an ActionScript file based on a CFC Value Object
  • Services Browser, which lets you browse CFCs, manage a list of web services, and generate the CFML code to invoke a web service.
  • Log Viewer, it works like the Unix tail function (thanks, hit tip to Ray)

CFEclipse is your ColdFusion IDE for writing your CF markup, it supports

  • Wizard's for common tasks such as creating a CFC
  • Code Insight
  • Code Folding
  • Task List
  • Tag Completion
  • Syntax Highlighting
  • CFComponent, a collapsable tree format of methods and properties in your CFC's
  • Methods View, an overview of the methods in your current CFC
  • Dictionary, get quick access and look-up features to CF[8|7|6|5], Railo, and BlueDragon[7|6] documentation
  • Snippets, create pre-defined code blocks which can be accessed via key triggers
  • CFUnit for unit testing you CFC'c without leaving your development IDE
  • Frameworks Explorer to access and view your xml configurations files

Really you need both together for the complete dev environment. In my next post I have put together both downloads into one zip file to make setting yourself up even easier.

For now checkout the following references:

Comments Comments (1) | Print Print | Send Send | 5807 Views

Eclipse local help system

Update: This appears to be on a different port for others. As Jax pointed out you can go: Eclipse, select Help -> Help contents to get there as well :o)

I was just going into some help files of Aptana when I came across the local address for the Eclipse Help system at: http://127.0.0.1:58041/help/index.jsp

In there was a wealth of information I just didn't know was on my hard drive ... though I suppose it depends on what plug-in's you've got installed but for me I had:

references and getting started tips for Subclipse, plus ColdFusion Documentation, Using CF extensions for Flex builder (including details of RDS support), Java development user guide, plug-in guide and loads more. The Aptana section is indepth as well with documentation covering:

  • Ajax Libraries (including Spry 1.5
  • CSS (elements and properties)
  • HTML
  • Javascript (keywords, DOM, core)
  • and even javascript reference for Adobe AIR(though that seems to actually hit Adobe.com livedoc (which is slicker than the CF ones!))

Check it out

http://127.0.0.1:58041/help/index.jsp

Comments Comments (2) | Print Print | Send Send | 3735 Views

Ant: Passing attributes to Build.xml

Critter on a previous post asked "if you can pass in attributes to the build.xml file?" From the Terminal this is as easy as adding another argument "-D".

-D<property>=<value>
This will update a property in you build.xml file with the value you passed in

For example you would use something similar to

view plain print about
1ant -buildfile ~/desktop/build.xml -DechoMsg=NewEchoMessage

Putting this into practice here is a sample build.xml which I am going to save to my Desktop

view plain print about
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="myProject" default="runEcho" basedir=".">
3
4    <property name="echoMsg" value="I am the original message" />
5
6 <target name="runEcho">
7<!-- Simply echo's a message to the screen -->
8 <echo message="${echoMsg}"/>
9 </target>
10</project>

From the Terminal no run

view plain print about
1ant -buildfile ~/desktop/build.xml -DechoMsg='I overwrite the echo message'

In your terminal window you should see something like

view plain print about
1Buildfile: [PATH TO BUILD FILE]build.xml
2
3runEcho:
4[echo] I overwrite the echo message
5
6BUILD SUCCESSFUL
7Total time: 0 seconds

Comments Comments (3) | Print Print | Send Send | 5457 Views

Installing ANT on Windows and or Mac OS X

I'm gonna try and cover the two OS's here so be kind.

First things first, goto http://ant.apache.org/bindownload.cgi and download the appropriate archive (zip) file: apache-ant-[VERSION NUMBER HERE]-bin.zip

Then for Windows: Extract the .zip to c:\ant. From the command line set the following environment variables:

view plain print about
1set ANT_HOME=c:\ant
2set JAVA_HOME=c:\jdk-1.5.0.05
3set PATH=%PATH%;%ANT_HOME%\bin
For Mac: Unpack the zip file to /usr/local/ant/. Then from the command line set the following environment variables:
view plain print about
1export ANT_HOME=/usr/local/ant
2export PATH=${PATH}:${ANT_HOME}/bin

Now open up the Terminal(Mac)/Command line(Win) and just type "ANT" and hit return. You should see:

view plain print about
1Buildfile: build.xml does not exist!
2Build failed

To demonstrate calling a file we're gonna create a quick build.xml. Create a new text file, enter the following bit of XML and save it as build.xml

view plain print about
1<?xml version="1.0" encoding="UTF-8"?>
2<project name="myProject" default="runEcho" basedir=".">
3    <target name="runEcho">
4        <!-- Simply echo's a message to the screen -->
5        <echo message="Is anybody out there"/>
6    </target>
7</project>

If you are on Windows save this file to the root of c:\ and from the command line run the following

view plain print about
1ant -buildfile c:\build.xml

If you are on Mac then just save this to the desktop and from the Terminal run:
view plain print about
1ant -buildfile ~/desktop/build.xml
You should now see
view plain print about
1Buildfile: {PATH_TO_YOU_BUILD_FILE}build.xml
2
3runEcho:
4[echo] Is anybody out there
5
6BUILD SUCCESSFUL
7Total time: 0 seconds

That's pretty much it, from here you you are now set to run Ant from the Terminal/Command line so in theory you should be able to schedule tasks etc!

Comments Comments (15) | Print Print | Send Send | 9013 Views

More Entries

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .