Java



Page updated: 12 May 2004




Java is a programming language. The Java runtime environment also allows your browser to execute Java programs
while your are surfing.
This page contains odd things I've learnt about Java.


Contents List - Click on one or just scroll down



Getting & Installing Java

How to run a Java Program

Setting the 'path' environment variable













Getting & Installing Java

To see/run Java programs in your web browser, you need the Java runtime
environment (JRE) installed.
At present this is j2re-1_4_2_03-windows-i586-p.exe
You can get this from http://www.java.com/en/download/manual.jsp
Click on “Download” opposite “Windows (offline Installation)”,
Save it to D:\Downloaded Apps\Java.
It's 14.5MB.

To develop Java programs you need the Java Software Development Kit (SDK).
There are two versions of this. The Standard Edition (SE) and the Enterprise Edition (EE).
At present this is version j2sdk1.4.2
You can get J2SE from http://java.sun.com/j2se/
It's about 48MB !
You can get J2EE from http://java.sun.com/j2ee/index.jsp
It's about ??MB !
Save it to D:\Downloaded Apps\Java.



How to run a Java Program

If creating a Java program with Eclipse, it can be run from within Eclipse.
If you want to run it stand-alone, then you can run it from a DOS window.
To do this:

1. Create a DOS window shortcut on the desktop.
2. After selecting the 'Shortcut' tab, edit the shortcut properties from:

Start in: %HOMEDRIVE%%HOMEPATH%

which will start the window in C:\Documents and Settings\Fred
which is the default location of “My Documents”.
to:

D:\Data\Fred\My Documents\Programs\Java\<proj name>\classes

3. Select the 'Layout' tab, and select the window size you want, eg 100 wide by 50 high.
4. Run the Java program with:

java <unique id>.<package name>.<program filename>

Note: Don't put .class on the filename.



Setting the 'path' environment variable

Go to Start.Control Panel.Performance and Maintenance.System
Select Advanced
Click on “Environment Variables”
Click on 'path' line
Click on 'edit' and change it, then click OK.











©
2004 https://www.angelfire.com/hi5/neuralnetwriter/

Visits:


HOME

UP