Edit classpath and JDK module

Hello everyone,

I am new to Intellij (8.1.3) and I was wondering if you could assist me.  I am coming from Visual Studio and I am trying to get sued to debugging in a different IDE.  I have successfully setup several debugging configurations, however, I am having some trouble with setting up an application configuration using "GWT Hosted Mode".  I have everything setup except for the correct classpath.  The only instructions I have are for Eclipse:

Classpath: Add the appropriate OS jar (gwt-dev-windows.jar or gwt-dev-linux.jar, which are both in lib/build-support/gwt*.*/) and move it to the top, then under Advanced, choose Add Folders and add /gen-src and /src (move them to the bottom)

I'm not sure how to translate that to Intellij.  I don't have any options except the default option in the drop-down to select from.  Any help would be greatly appreciated.

Thanks!

0
3 comments
Avatar
Permanently deleted user

Ok, I think I'm getting closer.  I have created a new module that points to the correct GWT jar, however, I am receiving this error message:

gwt1.5.3\swt-win32-3235.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

Is this solvable by a newer GWT jar?

0
Avatar
Permanently deleted user

After some google searching I found this:

http://code.google.com/p/google-web-toolkit/issues/detail?id=135

There is a comment from:

fredsa, Sep 12, 2008

That has directions about fixing this prblem, but the directions are for Eclipse.  Can anyone assist with an IntelliJ translation?

0

> Can anyone assist with an IntelliJ translation?

just do the same

1. Also install a 32-bit JVM; you can download directly from Sun and install
somewhere on your system
    http://java.sun.com/javase/downloads/index.jsp

it's idea/eclipse independent

2. Register this JVM with Eclipse:
     Windows -> Preferences
     Java -> Installed JREs
     Add... -> (Use a name like "jdk1.6.0_07 32-bit")


actually you don't need this step in IDEA if you planning to use other jre only to run programs, not to compile them

ctrl+alt+shift+s (or File->Project Structure) -> add new jdk

3. Modify your *.launch files to explicitly use a 32-bit JRE
    Run -> Run Configurations...
    Java Application -> (Your launch config)
    JRE -> Alternate JRE -> (select 32-bit JVM setup in previous step)

modify your run/debug configuration
select: "Use alternative JRE"


or modify your project settings to compile (and thus run) with new jdk

4. Modify your "*-shell" scripts to explicitly use the 32-bit JVM. Your "*-compile"
scripts can continue to use the default 64-bit Java

3. Modify your *.launch files to explicitly use a 32-bit JRE
    Run -> Run Configurations...
    Java Application -> (Your launch config)
    JRE -> Alternate JRE -> (select 32-bit JVM setup in previous step)

it's idea/eclipse independent
0

Please sign in to leave a comment.