• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Download/Install J2SE SDK for learning

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to get an understanding of JAVA by using the "Head First Java" book. I need to download the J2SE SDK software and am having a problem getting it to run. I think I've downloaded the right software, but then I have to execute it by keing in "% javac" at the cmd line and I get errors. The directions say to add an entry to the PATH envioronment variable that points to the /bin directory inside the main Java directory. Sorry for such a simple newbie question. I am running this on my Windows 2000 laptop.
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You compile your source code using
C:\> javac MyClass.java
at the command line.

Do you get an error when you type this? I think '%' is for a Linux/unix environment.

To execute your class, you need to type
C:\> java MyClass
at the command line.

Do you see something?

Have you seen this page? It might help you get started.
[ April 25, 2005: Message edited by: Marilyn de Queiroz ]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a very general link with no specific instructions so maybe provide more information next time,
 
Marshal
Posts: 65814
250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch
Not only is it very general, but also 9 years old. Bear has given you a link in your other thread.
 
Danger, 10,000 volts, very electic .... tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!