Windows98 does not provide an interface to modifying Path and Claspath, you can modify autoexec.bat
specific method
If it is Win95 / 98, add the following 3-line statement at the last side of /autoexec.bat: java_home = c: /j2sdk1.4.1 (this path should be modified according to your JDK installation path)
PATH =% java_home% / bin;% PATH% (note the middle is a semicolon)
ClassPath =.;% Java_home% / lib;% java_home% / lib / dt.jar;% java_home% / lib / Tools.jar ;;% java_home% / jre / rt.jar (note the most in front of one point, one point number)