aspose file tools*
The moose likes Beginning Java and the fly likes launching the console, getting started Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "launching the console, getting started" Watch "launching the console, getting started" New topic
Author

launching the console, getting started

arvi jeffery
Greenhorn

Joined: Jan 01, 2010
Posts: 2
Hi,

I'm a real rookie with Java. I just downloaded java from the sun site. I performed the test and it gave me a good response. I'm on windows vista. How do I now launch the java console to get started? Thanks, Arv
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11479
    
  16

don't have vista, but on xp you go to start-->run, then type "cmd". that's it.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What, specifically, are you trying to accomplish, and what are you describing when you say 'java console'?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
Welcome to JavaRanch

Try going to "all programs" "accessories" (??"system tools") "command prompt", right-drag that onto the desktop and click "create shortcut". If you try java -version and javac -version, do you get a sensible output with 1.6.**** in or do you get error messages?
arvi jeffery
Greenhorn

Joined: Jan 01, 2010
Posts: 2
Thanks all. I got to a "dos window" and typed in "java". It came back with Usage: java [-options], etc.
I want a Java GUI to come up. How do I launch a Java GUI that allows me to write and run Java code?
Thanks
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11479
    
  16

What do you mean by a "java GUI"? If you mean some kind of integrated development environment (commonly known as an IDE), I would recommend you DON'T use one. Use any plain old text editor. Notepad works just fine, as long as you make sure you don't save it as a .txt file.

Almost everyone here would recommend that beginners do all their coding that way. Using an IDE hides a log of the workings from you. It's much better to understand what's going on first by doing it the 'hard way', so that in the future, when you have problems (and you will), you know whats going on.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: launching the console, getting started