This Question is Answered

1 "helpful" answer available (2 pts)
6 Replies Last post: Dec 8, 2011 8:04 PM by Felix Krause  
Felix Krause Newbie 8 posts since
Dec 7, 2011
Currently Being Moderated

Dec 7, 2011 4:43 PM

Bundled XSLT Debugger plugin in IDEA 11: JDK 1.6 only?

I just downloaded IDEA 11, and my overall impression is very positive. I initially was pleased to hear that the XSLT Debugger plugin comes now bundled with IDEA. This plugin is vital for my current work.

 

Now there's one severe problem for me: The bundled XSLT Debugger plugin does only work on a 1.6 JDK. When I try to use it with the 1.5 JDK I develop for, I get an UnsupportedClassVersionError on org/intellij/plugins/xsltDebugger/rt/XSLTDebuggerMain. However, using a 1.6 JDK isn't an option.

 

Is it somehow possible to run this new plugin version on a JDK 1.5, or do I have to stay with IDEA 10?

 

Thanks.

Sascha Weinreuter IDEA Plugin Contest Winner 1,212 posts since
Aug 19, 2002
Currently Being Moderated
Dec 8, 2011 1:14 PM in response to: Felix Krause
Re: Bundled XSLT Debugger plugin in IDEA 11: JDK 1.6 only?

Hello Felix,

 

unfortunately, the runtime classes of the debugger have been compiled with Java 1.6, so the currently released version will only with 1.6 or later. I'm investigating how to change this for the next release.

 

If it's really important for you, I can send you a locally built version that should run with Java 1.5 as well.

 

BTW: Why can't you just run the debugged stylesheets with a JDK 1.5 (can be changed in the xslt run configuration's Advanced tab)? Do you use custom extensions or java functions from your stylesheets?

Cheers,

Sascha

Sascha Weinreuter IDEA Plugin Contest Winner 1,212 posts since
Aug 19, 2002
Currently Being Moderated
Dec 8, 2011 5:26 PM in response to: Felix Krause
Re: Bundled XSLT Debugger plugin in IDEA 11: JDK 1.6 only?

Hello Felix,

 

I'm sorry, of course I meant to explicitly switch to JDK 1.6 in the advanced tab if your project's JDK is 1.5.

 

Selecting a JDK would not work if you're using code from your project's or module's classpath in the stylesheet. However, since you already selected a "plain" JDK (1.5), I think you should be able to select 1.6 for the XSLT runner without problems.

 

Cheers,

Sascha

Sascha Weinreuter IDEA Plugin Contest Winner 1,212 posts since
Aug 19, 2002
Currently Being Moderated
Dec 8, 2011 6:44 PM in response to: Felix Krause
Re: Bundled XSLT Debugger plugin in IDEA 11: JDK 1.6 only?

OK, I see. Maybe you can try to set the system property java.endorsed.dirs (as JVM argument on the Advanced tab) to a directory that contains the version of Xalan you depend on. That way you should be able to select a "normal" JDK 1.6 and still use the fixed version of Xalan (as long as this doesn't depend on any IBM-specific stuff).

 

Cheers,

Sascha

More Like This

  • Retrieving data ...