Skip to main content

Compile errors under Java 5

3 replies [Last post]
willismorse
Offline
Joined: 2004-01-30
Points: 0

There are still some Java6-only API calls:

com/sun/scenario/animation/ShapeEvaluator.java
Error:Error:line (32)cannot find symbol class Path2D
Error:Error:line (594)cannot find symbol variable Path2D
Error:Error:line (609)cannot find symbol variable Path2D
Error:Error:line (624)cannot find symbol variable Path2D

com/sun/scenario/scenegraph/SGText.java
Error:Error:line (560)cannot find symbol constructor FontRenderContext(java.awt.geom.AffineTransform,java.lang.Object,java.lang.Object)
Error:Error:line (772)cannot find symbol variable KEY_TEXT_LCD_CONTRAST
Error:Error:line (782)cannot find symbol variable KEY_TEXT_LCD_CONTRAST
Error:Error:line (789)cannot find symbol variable VALUE_TEXT_ANTIALIAS_GASP

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris Campbell

Our current compromise/solution is that Scenario will continue to run on
JDK 5, but it must be compiled using JDK 6 or above. (We could use
reflection for the cases mentioned below, but it's more trouble than
it's worth.) Is there a reason why you want/need to compile it with JDK 5?

Chris

scenario@javadesktop.org wrote:
> There are still some Java6-only API calls:
>
> com/sun/scenario/animation/ShapeEvaluator.java
> Error:Error:line (32)cannot find symbol class Path2D
> Error:Error:line (594)cannot find symbol variable Path2D
> Error:Error:line (609)cannot find symbol variable Path2D
> Error:Error:line (624)cannot find symbol variable Path2D
>
> com/sun/scenario/scenegraph/SGText.java
> Error:Error:line (560)cannot find symbol constructor FontRenderContext(java.awt.geom.AffineTransform,java.lang.Object,java.lang.Object)
> Error:Error:line (772)cannot find symbol variable KEY_TEXT_LCD_CONTRAST
> Error:Error:line (782)cannot find symbol variable KEY_TEXT_LCD_CONTRAST
> Error:Error:line (789)cannot find symbol variable VALUE_TEXT_ANTIALIAS_GASP
> [Message sent by forum member 'willismorse' (willismorse)]
>
> http://forums.java.net/jive/thread.jspa?messageID=275228
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
> For additional commands, e-mail: dev-help@scenegraph.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@scenegraph.dev.java.net
For additional commands, e-mail: dev-help@scenegraph.dev.java.net

willismorse
Offline
Joined: 2004-01-30
Points: 0

Wow, thanks for the quick response Chris.

We're shipping to mainstream Macs, so we're still stuck on JDK 5. (Maybe, hopefully, that story will change at WWDC this year.)

So we build and test within Java 5 because we need to ensure that our heavily graphic app is tuned best for Java 5 usage.

We could link in jars built under Java 6, but we need the ability to step into source, and I'm not really sure what's going to happen when we step-debug into a Java6 jar inside a Java5 Idea project. I suppose I could try it.

It seems like we'll need to live in the Scenario svn repo world for now, rather than relying on prebuilt jars. So I'll have to find another machine that can handle Java 6 to do the Scenario builds.

All in all, nothing insurmountable. If Scenario works better for us than Piccolo, it will be worth the extra effort. I was under the impression from perusing the mailing lists that you were trying to maintain build compatibility with Java 5, but if that's not the case feel free to ignore this thread.

Thanks,
Willis Morse

mrohrmoser
Offline
Joined: 2005-12-12
Points: 0

> maintain build compatibility with Java 5, but if that's not the case feel free to ignore this thread.

I'd very much regret this, for if not compatible with jdk 1.5 it's not cross platform (mac) and locks out a maybe small but in concern of competing guis relevant user group.

And if you can't build with jdk 1.5 hopes are small to maintain long-term runtime compatibility with jre 1.5, aren't they?