Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / October 2008

Tip: Looking for answers? Try searching our database.

Setting up Java

Thread view: 
David_G - 31 Oct 2008 08:08 GMT
Hi,
I am new to Java.  I am running Windows XP SP3.  I have downloaded and
installed Java jdk-6u10.exe.  I assume that is Java SE, is it?  Mainly
I'm concerned as to how do I run it?  The install doesn't seem to
create menu items on the Programs list, neither does it create a
desktop shortcut.  Could you please offer suggestions?
Thanks

David
Sabine Dinis Blochberger - 31 Oct 2008 10:16 GMT
> Hi,
> I am new to Java.  I am running Windows XP SP3.  I have downloaded and
[quoted text clipped - 5 lines]
>
> David

What do you want to run? the JDK does not come with an IDE per default,
only with the tools to compile and package your source code.

I would recommend you get Netbeans if you want an IDE.
Mark Space - 31 Oct 2008 15:50 GMT
> Hi,
> I am new to Java.  I am running Windows XP SP3.  I have downloaded and
> installed Java jdk-6u10.exe.  I assume that is Java SE, is it?  Mainly
> I'm concerned as to how do I run it?  The install doesn't seem to
> create menu items on the Programs list, neither does it create a
> desktop shortcut.  Could you please offer suggestions?

From the command line usually.  Sun is old school enough that Java runs
first from the command line.  Note that I don't think the default
install process sets up your PATH variable.

As Sabine mentioned your best bet is probably to download an IDE so you
can have an icon to click on when you want to do Java stuff.  NetBeans
is a good IDE.
Knute Johnson - 31 Oct 2008 17:23 GMT
> Hi,
> I am new to Java.  I am running Windows XP SP3.  I have downloaded and
[quoted text clipped - 5 lines]
>
> David

From the command line.  The installer sets up the runtime environment
with a path but not the compiler.  You need to add that yourself.  The
usual path on a Windows system is C:\Program Files\Java\jdk1.6.0_10\bin.
 Every time you install a new JDK you need to set the path for the
compiler.

I use a text editor to create my source files.  They need to have a
.java extension.  You compile them with the following;

javac MyClass.java

The compiler creates the necessary .class files.  You then run your
program with;

java MyClass

Note the absence of the .class extension.  There is a lot more to it
than that but that will get you started.

Signature

Knute Johnson
email s/nospam/knute2008/

Lew - 31 Oct 2008 19:29 GMT
David_G wrote:
>> I am new to Java.  I am running Windows XP SP3.  I have downloaded and

Start with reading the documentation.
<http://java.sun.com/docs/books/tutorial/index.html>

--
Lew
Roedy Green - 31 Oct 2008 20:37 GMT
On Fri, 31 Oct 2008 00:08:09 -0700 (PDT), David_G
<david.goodmanson@gmail.com> wrote, quoted or indirectly quoted
someone who said :

>I am new to Java.  I am running Windows XP SP3.  I have downloaded and
>installed Java jdk-6u10.exe.  I assume that is Java SE, is it?  Mainly
>I'm concerned as to how do I run it?  The install doesn't seem to
>create menu items on the Programs list, neither does it create a
>desktop shortcut.  Could you please offer suggestions?

you run it from the command line, either javac.exe or java.exe.
java.exe will automatically be on the path.

You have to put javac.exe on the path.

See http://mindprod.com/jgloss/javaexe.html
http://mindprod.com/jgloss/javacexe.html
http://mindprod.com/jgloss/jdk.html

Your IDE will automatically invoke Javac.exe and java.exe
see http://mindprod.com/jgloss/ide.html
Signature

Roedy Green Canadian Mind Products
http://mindprod.com
A vote for McCain is fearful clinging to McSame.
A vote for Obama is a shot at Obamalot.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.