The image path is correct, to prove this i right clicked the image in 
project explorer and clicked properties then copied and pasted the path. 
Managed to get the path to change by creating a new project, but the image 
still wont show in browser. Once the applet is running in Chrome i can see 
an icon image where the image should be displayed, if i right click the 
icon and select open in new tab i get the following message,

HTTP ERROR 404

Problem accessing /NewProject/images/1.jpg. Reason:

    Not Found

------------------------------

*Powered by Jetty://*
which is the same message the console outputted, when i change the path and 
save i get the same message with a diffrent image path.



On Thursday, April 17, 2014 7:06:49 AM UTC+1, Davide Micheletti wrote:
>
> when you run MyProject look at the HTML code and see the url of the 
> image.. So you can see where is the problem in the path.. However i've a 
> project with images and i put the image in war/Images/1.jpg and in the code 
> i've 
>>
>> ...
>> ...
>
> Image img = new Image();
>
> img.setUrl("Images/1.jpg"); 
>
> Panel p = new Panel();
>>
> p.add(img); 
>
> ...
>> ... 
>
>
>
> On Wed, Apr 16, 2014 at 10:51 PM, Adam <adam.t...@googlemail.com<javascript:>
> > wrote:
>
>> Hi, i'm new to gwt programming, for some reason the image wont show in 
>> any browsers, any idea's? Also the path seems to be stuck 
>> on"/myproject//MyProject/images/1.jpg"
>>
>> Image img = new Image("/MyProject/images/12345.jpg");
>>  vPanel.add(img);
>>
>> [WARN] Server class 'org.eclipse.jetty.servlet.listener.ELContextCleaner' 
>> could not be found in the web app, but was found on the system classpath
>>    [WARN] Adding classpath entry 
>> 'file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/gwt-dev.jar'
>>  
>> to the web app classpath for this session
>>    For additional info see: 
>> file:/C:/eclipse%20se/plugins/com.google.gwt.eclipse.sdkbundle_2.6.0/gwt-2.6.0/doc/helpInfo/webAppClassPath.html
>> [WARN] 404 - GET /myproject//MyProject/images/1.jpg (127.0.0.1) 1398 bytes
>>    Request headers
>>       Host: 127.0.0.1:8888
>>       Connection: keep-alive
>>       Accept: image/webp,*/*;q=0.8
>>       User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, 
>> like Gecko) Chrome/34.0.1847.116 Safari/537.36
>>       Referer: 
>> http://127.0.0.1:8888/MyProject.html?gwt.codesvr=127.0.0.1:9997
>>       Accept-Encoding: gzip,deflate,sdch
>>       Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
>>    Response headers
>>       Content-Type: text/html;charset=ISO-8859-1
>>       Cache-Control: must-revalidate,no-cache,no-store
>>       Content-Length: 1398
>>  
>>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to