Doesn't WPF6.1 support jre1.5 ?

来源:互联网 发布:派克练字钢笔推荐 知乎 编辑:程序博客网 时间:2024/05/29 13:20
garychenyang

Posts: 6
Registered: Jan 17, 2007 09:39:34 PM
Doesn't WPF6.1 support jre1.5 ?
Posted: Aug 25, 2008 05:16:59 AM  
Click to report abuse...  Click to reply to this thread Reply
Icreate a customer builder with the "Builder Skeleton" builder call, Ineed import some classes in the coordinator class which need jre1.5. SoI change the project facets(project Properties->ProjectFacets->Java 5.0). When I add this customer builder to other model,it is blank in the Builder Call Editor. If I reset the Project Facetsto Java 1.4 or don't check the "Generation Coordinator" check-box inthe customer builder, I can add the customer builder(the builder calldisplays in the Builder Call Editor) but the it can't run successfullybecause the java version not matched. Why? Doesn't WPF6.1 supportjre1.5 or other reason ?
garychenyang

Posts: 6
Registered: Jan 17, 2007 09:39:34 PM
Re: Doesn't WPF6.1 support jre1.5 ?
Posted: Aug 25, 2008 05:34:31 AM   in response to: garychenyang in response to: garychenyang's post  
Click to report abuse...  Click to reply to this thread Reply
I installed jdk1.5 and add the jre1.5 to the Preferences->Installed JREs and checked.
tom.b

Posts: 482
Registered: Aug 25, 2006 08:17:19 AM
Re: Doesn't WPF6.1 support jre1.5 ?
Posted: Aug 25, 2008 08:26:18 AM   in response to: garychenyang in response to: garychenyang's post
Click to report abuse...  Click to reply to this thread Reply
Youmay want to verify that you are starting Eclipse with Java 1.5. IfEclipse is using 1.4, and your Coordinator class requires 1.5 you mayhave a problem.

Tom

garychenyang

Posts: 6
Registered: Jan 17, 2007 09:39:34 PM
Re: Doesn't WPF6.1 support jre1.5 ?
Posted: Aug 26, 2008 01:23:40 AM   in response to: tom.b in response to: tom.b's post  
Click to report abuse...  Click to reply to this thread Reply
Accordingto your idea, I can solve the problem with adding the -vmc:/java1.5/bin/javaw.exe in the eclipse.ini file. But I'm confused withanother test, don't add the -vm in the eclipse.ini, set the project jreand and compiler to 5.0, create a test class that contains jdk1.5character like generic and it works well. Then, I add a simple BuilderSkeleton builder call with coordinator class which don't need java1.5.The Builder Call Editor is still blank when I add this customer builderto a model. Why it still doesn't work although there is no java1.5need?And the test class containing jdk1.5 character can work.
tom.b

Posts: 482
Registered: Aug 25, 2006 08:17:19 AM
Re: Doesn't WPF6.1 support jre1.5 ?
Posted: Aug 26, 2008 02:52:37 PM   in response to: garychenyang in response to: garychenyang's post
Click to report abuse...  Click to reply to this thread Reply
I’mnot 100% sure I follow you, but it sounds like in your failure caseyour are compiling with 1.5, but trying to run the class with 1.4. Whenthe Coordinator is displayed its class is run, and if you compiled itwith 1.5, and then run it with 1.4 (which is what your Eclipse is setto) then you may have problems.

The Project JRE has no relationship with the Coordinator when it runs. The Coordinator is loaded by the JRE running Eclipse.

Tom

garychenyang

Posts: 6
Registered: Jan 17, 2007 09:39:34 PM
Re: Doesn't WPF6.1 support jre1.5 ?
Posted: Sep 02, 2008 02:46:09 AM   in response to: tom.b in response to: tom.b's post  
Click to report abuse...  Click to reply to this thread Reply
It make sense if the Coordinator runs on the eclipse launched JRE instead of the project set JRE. Thanks Tom.
原创粉丝点击