README.md

December 4, 2022 · View on GitHub

Moblie Java Development Kit

Description

This is a way to have a mobile Java development kit. It is self contained on one cd and will run even if you have no rights on the computer you are logging on to.

More Info

Submitted On
ByRobert Somers
LevelBeginner
User Rating3.8 (15 globes from 4 users)
CompatibilityJava (JDK 1.1), Java (JDK 1.2)
CategoryMiscellaneous
WorldJava
Archive File

Source Code

Items needed:

  1. Java JDK or SDK
  2. Textpad 4.x
  3. CD Burner
  4. (optional) Java documentation
    Java mobile development kit:
    Step 1:
    Download and install your Java development kit (JDK) or SDK. You can optionally download the documentation (it is somewhat useful…). Install this on to your hard drive.
    Step 2:
    Download and install Textpad 4.x. It is shareware and it is probably the best text editor I have seen. I recommend registering this software based on the fact that it is second only to Visual Studio in ease of use and functionality, and it is only $25…
    Step 3:
    Configure Textpad. Go to Configure --> Prerences… and then click on the plus symbol for ‘document classes’. Click on the plus symbol next to Java. Then click on syntax. In the dropdown list select ‘Java.syn’. At this point, you are golden. Then click ‘Tools’ (still in the ‘configure preferences’ property page) and ‘add’. Select ‘jdk commands’.
    Step 4:
    Create a batch file. Write the following code into Textpad and save it as ‘autoOpen.bat’.
    SET jdkRoot=%cd%
    SET PATH=%path%;%jdkroot%\jdk1.3.0_02\bin
    SET CLASSPATH=%jdkroot%\jdk1.3.0_02\lib;%jdkroot%\jdk1.3.0_02\jre\lib;%jdkroot%\jdk1.3.0_02\jre;%jdkroot%\jdk1.3.0_02;
    SET PROMPT=%prompt%LJavaTermLJavaTermG
    start %jdkRoot%\Textpad4\textpad.exe
    pause
    Note:
    If you are using a JDK other than 1.3 you need to specify the correct folder names in the ‘SET PATH’ command and the ‘SET CLASSPATH’ command…
    Step 5:
    Create an Autorun.inf file. Write the following code to it.
    [autorun]
    open=autoOpen.bat
    Step 6:
    Copy the JDK folder ‘jdk1.3.0_02’ in this case and the ‘Textpad 4’ to a common folder. (Preferably to the root of one of your hard drives.) And rename the folder ‘Textpad 4’ to ‘Textpad4’ (remove the space…) Then copy the ‘autoOpen.bat’ and the ‘autorun.inf’ to the same place. So your directory should look like this:
    Jdk1.3.0_02<BR> Jdk1.3\ (this is the documentation folder… optional)
    Textpad4<BR> autoOpen.bat
    autorun.inf
    Step 7:
    Burn these files to a cd. I personally use CDRWin (it’s a geek thing…). Make sure to preserve long filenames in your cd program!!! If you cannot do this use CDRWin… Also make sure the root of your cd looks like the result of step 6!!!
    Now, if the directions were followed correctly, you have a cd that will autorun textpad with the Java syntax highlighting and under tools you should see ‘compile java’; ‘run java application’ and ‘run java applet’. It will also have a command prompt window. It is very important that you do not close this window until you are done developing. The path and classpath statements in the batch file expire when you close this window… This means that the compile and run commands will cease working…
    Anyway, happy coding and have fun with this!!!
    Dagaz