Order of classpath and Intellij IDEA 5.1

244 views
Skip to first unread message

hugob

unread,
May 18, 2006, 1:51:19 PM5/18/06
to Google Web Toolkit
It looks like the order of the classpath is important (can someone
confirm this?).
If you want to debug in "hosted mode" with Intellij IDEA 5.1:

Application Configuration
- Main class: com.google.gwt.dev.GWTShell
- Program parameters: com.foo.TestApp/TestApp.html (adjust..)

In "Project Settings -> Modules" do the following:
- Add src and bin to your classpath under the tab "Libraries
(classpath)"
- I suppose you already added gwt-user.jar and gwt-dev-windows.jar
- Under the tab "Order/Export", rearrange the entries into the
following order:
jdk 1.5.x
src
<Module source>
bin
gwt-user.jar
gwt-dev-windows.jar

If you do not fix the order, debugging will open the html page but you
may get the error that your class cannot be found.

Hugo

pper...@gmail.com

unread,
May 18, 2006, 2:36:27 PM5/18/06
to Google Web Toolkit
I also got the sample app to work in Intellij IDEA 5.1 by adding src to
the classpath and setting it as the first classpath entry.

bwste...@gmail.com

unread,
Jun 1, 2006, 8:19:57 PM6/1/06
to Google Web Toolkit
I was able to run my test app through IDEA 4.5 by following these
instructions.

However, when I try to set breakpoints in the Java code, they show up
with red Xs and the message "Breakpoint is invalid : Breakpoint does
not belong to any class." And of course the breakpoints are not hit
when I actually execute the code.

Any ideas?

bwste...@gmail.com

unread,
Jun 1, 2006, 8:39:11 PM6/1/06
to Google Web Toolkit
Nevermind - I just got it to work. I had something wrong with my
classpath or source path. I removed and added them again and now it is
stopping at breakpoints!

Reply all
Reply to author
Forward
0 new messages