Hi Daniel,

the compiler settings just tell maven to compile the src to be usable
in java5 enviroments too.

Bye,
Norman

2009/9/14 Daniel Jue <[email protected]>:
>
> FWIW,
> I only have jdk1.6.0_16 and it works. I made sure Eclipse was using
> this specific version, and all other JREs were removed.
>
> Compiler compatibility is set to 1.6, and I didn't change any of the
> defaults in the "Deprecated and restricted API" section --
> specifically the forbidden reference access rule is set to Error.
>
> I have not modified the POM file however, and it still has the 1.5 setting:
>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>                                <artifactId>maven-compiler-plugin</artifactId>
>                                <configuration>
>                                        <source>1.5</source>
>                                        <target>1.5</target>
>                                </configuration>
>                        </plugin>
>
> Here is what my .classpath looks like compared to the original, after
> removing and re-adding the JRE in the build path:
>
> Original:
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
>        <classpathentry kind="src" output="shared/target/classes"
> path="shared/src/main/java"/>
>        <classpathentry kind="src" output="server/war/WEB-INF/classes"
> path="server/src/main/java"/>
>        <classpathentry kind="src" output="server/target/test-classes"
> path="server/src/test/java"/>
>        <classpathentry kind="src" output="widgets/target/classes"
> path="widgets/src/main/java"/>
>        <classpathentry kind="src" output="client/war/WEB-INF/classes"
> path="client/src/main/java"/>
>        <classpathentry excluding="**" kind="src"
> output="client/war/WEB-INF/classes" path="client/src/main/resources"/>
>        <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
>        <classpathentry kind="con" 
> path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
>        <classpathentry kind="con"
> path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
>        <classpathentry kind="output" path="target/classes"/>
> </classpath>
>
> Mine:
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
>        <classpathentry kind="src" output="shared/target/classes"
> path="shared/src/main/java"/>
>        <classpathentry kind="src" output="server/war/WEB-INF/classes"
> path="server/src/main/java"/>
>        <classpathentry kind="src" output="server/target/test-classes"
> path="server/src/test/java"/>
>        <classpathentry kind="src" output="widgets/target/classes"
> path="widgets/src/main/java"/>
>        <classpathentry kind="src" output="client/war/WEB-INF/classes"
> path="client/src/main/java"/>
>        <classpathentry excluding="**" kind="src"
> output="client/war/WEB-INF/classes" path="client/src/main/resources"/>
>        <classpathentry kind="con" 
> path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
>        <classpathentry kind="con"
> path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
>        <classpathentry kind="con" 
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>        <classpathentry kind="output" path="target/classes"/>
> </classpath>
>
>
>
> Hope this helps.
>
>
> On Mon, Sep 14, 2009 at 2:36 AM, Norman Maurer <[email protected]> wrote:
>>
>> HI Daniel,
>>
>> about the DataSource problems.. Eclipse is a bit stupid about this (
>> at least I think its eclipse because it work to compile from cmdline
>> without probs) :-/ You need to use java5 as jdk for hupa to getting
>> rid of this. I had no time to understand how else I could workaround
>> this.
>>
>> Some more info about the same problem in other project:
>>
>> http://markmail.org/message/q6y2c6j3qxqgv2nu#query:java%206%20type%20DataSource%20is%20not%20accessible%20due%20to%20restriction%20on%20required%20library+page:1+mid:tr2c5skr6mpn57y4+state:results
>>
>> And a solution for eclipse:
>>
>> http://lkamal.blogspot.com/2008/09/eclipse-access-restriction-on-library.html
>>
>>
>> Any other solutions are welcome.
>>
>> Thx,
>> Norman
>>
>> Ps: I will update the README.txt file
>> 2009/9/13 Daniel <[email protected]>:
>>>
>>> Could you describe the steps necessary to create the Maven2 hupa
>>> project in Eclipse more explicitly?  I am unable to successfully build
>>> the project as a result of the javax.activation imports throwing the
>>> following error: Access restriction: The type DataSource is not
>>> accessible due to restriction on required library C:\Program Files\Java
>>> \jdk1.6.0_11\jre\lib\rt.jar
>>>
>>> I found a guide to installing third party jars with maven ->
>>> http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html ,
>>> however, I am unsure about how this is done via eclipse.
>>>
>>> Thanks,
>>>
>>> daniel
>>> On Sep 5, 2:30 pm, Norman Maurer <[email protected]> wrote:
>>>> Hi Satish,
>>>>
>>>> I'm no aware of any special steps needed to runHupain eclipse. Just
>>>> make sure you have m2eclipse installed and declareHupaas Maven2
>>>> project with nested modules.
>>>>
>>>> That's all.
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>> 2009/9/5 Satish Puranam <[email protected]>:
>>>>
>>>>
>>>>
>>>> > Norman,
>>>>
>>>> > I am having trouble running ApacheHupain eclipse. No matter what i
>>>> > do i am alway getting these errors:
>>>>
>>>> > Resolving annotation '@GinModules({ClientDispatchModule.class,
>>>> > HupaClientModule.class})'
>>>> > [ERROR]
>>>> > java.lang.ClassNotFoundException:
>>>> > org.apache.hupa.client.gin.HupaClientModule
>>>> > [ERROR] Failure to load module 'hupa'
>>>> > java.lang.NullPointerException: null
>>>>
>>>> > I was wondering if you could post the steps about how should one go
>>>> > about runningHupain eclipse.
>>>>
>>>> > Thanks
>>>>
>>>> > Satish
>>>
>>> >
>>>
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to