• Post Reply Bookmark Topic Watch Topic
  • New Topic

java ide  RSS feed

 
andy cook
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i'm a total novice to java and am looking to get hold of a compiler. I have been on the java web site and have managed to download Java(TM) Development kit 6. I cant seem to launch a compiler though?? All i want to do is get familiarised with the IDE and buy some books and start coding!! I'm using windows Vista basic, can someone help me get up and running with a compiler (freeware) or give me a clue as to how i go about aquiring/installing it.


help appreciatied
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andy,

The Java Development Kit isn't an IDE, but does have a Java Compiler - javac.exe - designed for command-line compiling. you should read this tutorial for a quick how-to on using the command-line tools: Java "Hello World" for Windows Command Line

When you first get started I could continue to use the command line tools you get with the JDK at least until you are comfortable with how to use packages, and understand how it works.

Once you have the basics on how compiling and running is done, you will be able to find many free Java IDEs which will make your workflow easier, such as Eclipse, and NetBeans, and some simple code highlighting editors like NotePad++.
 
Arthur Donting
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use Eclipse and so far I love it!! it's really great as java editor. And if you've downloaded JDK you already have a compiler located in C:\Program Files\Java\jdk1.6.0_12\bin or what ever your installation directory is. you just have to initialize it through command line.
 
andy cook
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

thanks for that information. Now im at the command line and Windows can't find the javac compiler. I have a file: HelloWorldApp.java located on my C drive in a folder named Java. I installed the jdk on the following path: C:\Users\Cookson\Downloads\jdk-6-windows-i586.exe and i type this path into the command line prompt preceeding HelloWorldApp but get a message: 'the directory name is invalid'

help please
 
Arthur Donting
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your path. For me it doesn't seem valid as the path should contain \bin directory. You probably added your installation source directory.
I had this problem on my pc too. I tried a lot of solutions, but non of them worked for me. I guess it's Vista problem.
To come around this problem I just created .bat file like this:

"C:\Program Files\Java\jdk1.6.0_12\bin\javac" C:\java\HelloWorldApp.java
"C:\Program Files\Java\jdk1.6.0_12\bin\java" C:\java\HelloWorldApp
pause


First line compiles java code, second one launches the application.
Just change the path to your path (I believe only the version of the JDK should differ so instead of jdk1.6.0_12 there will be jdk1.6.****)
 
andy cook
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, i am using the installation source directory: C:\Users\Cookson\Downloads\jdk-6-windows-i586.exe and clearly something is wrong. What does \bin mean exactly and where do i include it??

 
Arthur Donting
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry, I had other thing in mind when I said "installation source". By this I meant file you've installed JDK FROM. And by the path I meant the place where you've installed JDK. Sorry for confusion...

and about this \bin... it's the name of sub folder where java aplications are located (such as javac.exe or java.exe). this folder is located in your JDK installation directory.
 
andy cook
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arthur Donting wrote:sorry, I had other thing in mind when I said "installation source". By this I meant file you've installed JDK FROM. And by the path I meant the place where you've installed JDK. Sorry for confusion...

and about this \bin... it's the name of sub folder where java aplications are located (such as javac.exe or java.exe). this folder is located in your JDK installation directory.



oh, i aint havin much luck with this, i tried downloading eclipse and that gives me probs as well...
 
ozhan kaya
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Control Panel - System - Advanced System Settings - 'Environment Variables' button .. scroll down until you see path and click the edit button.Add path which location you installed Java(Be careful not installation file.).For me i set below text to my PATH.

 
andy cook
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys...i successfully downloaded eclipse, i needed the JRE to accomplish this. Although its a little daunting i'm more comfortable with an IDE than a command line prompt!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!