Intellij and GWT

Hi there,

Bascially, After programming with JavaScript for quite a while now, I want to try and get away from this as far as possible to be honest, hence why I am now trying to depict whether GWT would be a better practise for myself!

I have found a great website that shows introductions to GWT, and I have followed it to the finest detail, although, what I do not understand is why when im using Intellij Idea, within the index.html file where the program needs to access this line of code:

]]>

although, I simply cannot get the src file to work...like the website tutorial states (http://developerlife.com/tutorials/?p=193), the first part, sampleApp is the folder is should be in, and SampleApp should be the file....but all Intellif says is that there is no such file....I have tried many many different methods, but it is something to do with the nocache part...I don't quite understand what this is for. Bearing in mind the actual file path for this file it tells me to give is: src/sampleApp/client/SampleApp.java. I have even tried just creating a simple GWT module, but once again, where the html file locate the src to look up, it just says there is no such file!?!? But all I can manage to understand is that this file is created after compilation I think?!?! So how do I get this to work??

If anyone can please help me out into getting this working, I will be really thankful!

Regards,

Ben

1 comment
Comment actions Permalink

Hello,

This ...nocache.js is indeed generated by GWT compiler. What do you need
it for? You can run GWT application in hosted mode using GWT run
configuration (Run -> Edit configurations -> '+' -> GWT configuration).

Hi there,

Bascially, After programming with JavaScript for quite a while now, I want to try and get away from this as far as possible to be honest, hence why I am now trying to depict whether GWT would be a better practise for myself!

I have found a great website that shows introductions to GWT, and I have followed it to the finest detail, although, what I do not understand is why when im using Intellij Idea, within the index.html file where the program needs to access this line of code:

<script type=”text/javascript” language=”JavaScript” src="sampleApp.SampleApp.nocache.js"></script>

although, I simply cannot get the src file to work...like the website tutorial states (http://developerlife.com/tutorials/?p=193), the first part, sampleApp is the folder is should be in, and SampleApp should be the file....but all Intellif says is that there is no such file....I have tried many many different methods, but it is something to do with the nocache part...I don't quite understand what this is for. Bearing in mind the actual file path for this file it tells me to give is: src/sampleApp/client/SampleApp.java. I have even tried just creating a simple GWT module, but once again, where the html file locate the src to look up, it just says there is no such file!?!? But all I can manage to understand is that this file is created after compilation I think?!?! So how do I get this to work??

If anyone can please help me out into getting this working, I will be really thankful!

Regards,

Ben



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.