• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting started with IJ7

 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having eventually decided to give the new InteliJ a go, I'm now stuck at a really early stage of the process. I'd love to hear from any of you old hands if you can solve my problem.

When I try to create a new project, I am prompted with what is apparently a multi-panel wizard. I say "apparently", because I can't get beyond the first page, labelled "Please select project JDK" with an empty panel to select from.

I have tried selecting every visible directory of several of the half-dozen JDKs I have installed, but always get the following message "The directory selected is not a valid home for JSDK". Best of all, clicking the nice help button gives "Help topic "Reference/Dialogs/newProjectWizardJDKPage.html" not found"

Any hints on what I am missing? I don't remember Eclipse being this tricky to get going
 
Marilyn de Queiroz
Sheriff
Posts: 9068
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a jdk in your path? My IJ picked out 2 possibilities for me to choose from.

To ask the obvious, are you pointing to the root of the jdk (e.g. C:\j2sdk1.4.2_10) and not the bin dir or the jre?
 
Dmitry Jemerov
author
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Frank,

The broken help link is indeed something to be ashamed of. We'll fix this in the next bugfix update.

As for the Java SDK home, you'll need to select the top-level installation directory of a JDK. I just verified that it works correctly for me. Which OS are you using, by the way?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the responses.

The box in question runs Windows XP. In the "C:\Program Files\Java" directory I have a slew of Java versions, and I tried selecting directories at every level.

I think I may have found the problem, though. It seems that all bar one of the Java versions are actually just JREs. When I selected one which was a "full fat" JDK with the compiler and stuff, I got a bit further. I guess it would have been nice for the error message to explain what in particular was wrong, rather than leaving me unsure whether I had chosen a directory at the wrong level, or was looking in the wrong place altogether.

Would it be at feasible for IJ to search in likely locations for plausible candidate JDK installations, and show them in the initial list, so save all this trial-and-error poking around? I have used other Java software which seemed to do this with reasonable effectiveness. This is becoming more and more of an issue with Sun now automatically pushing out updated JREs every few months.

I'm still also slightly puzzled by the offered option of using an IDEA JDK. It's tantalisingly there in the options, but would never let me choose it (I'm afraid I am on a different machine, so I can't quote the particular error right now)

Can anyone explain what this is for?

Thanks.
 
Dmitry Jemerov
author
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Frank,

Thanks for your feedback! We'll try to improve the diagnostics to make this less confusing.

As for the IntelliJ IDEA JDK, this JDK type is used for developing IntelliJ IDEA plugins. It includes the IntelliJ IDEA OpenAPI libraries in additional to regular JRE/JDK jars.
 
dhjdhj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to get up to speed with JAVA and I'm hoping to use IntelliJIDEA to help me.
Just installed it on my Mac, ran it and tried to create a new project so I can do my first Hello World.

I'm also stuck at the "Please select project JDK" dialog...not only do I not know which one of these things (JSDK or IntelliJIDEA) I'm supposed to pick but even if I pick one, I've absolutely no idea where I'm supposed to find it.

I see someone has already suggested the obvious, i.e, have the dialog present me with all possible JDKs) but until that happens, could somebody please tell me where I"m supposed to find whatever this thing wants?

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"dhjdhj", please check your private messages for an important administrative matter.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic