Originally Posted by
rfbtgn
k alls gone well until i type:
java HexEdit2
once i press enter this error code comes up:
Exception in thread "main" java.lang.NoClassDefFoundError: HexEdit2
ny help?
Code:
Installation
You must have the Java run-time environment (JRE) installed on your computer. HexEdit was developed with Java 1.4 and should run on later versions. It may also run on earlier versions, but this has not been tested. For Macintosh computers, the version of Java is determined by your version of MacOS. For Windows, Linux, and Solaris, you can download the JRE from Sun Microsystems:
Sun Java
JRE for end users: https://www.jav*****m/getjava/
SDK for programmers: https://developers.sun.com/downloads/
IDE for programmers: https://www.netbeans.org/
Once Java is installed, you need to put the program files for HexEdit into a folder (directory) on your hard drive. The name of the folder and the location are your choice, except it is easier if the name does not include spaces. Assume that files will go into a C:\JAVA folder. Then create the folder and unpack the Java *.class files into this folder (if you received the program as a ZIP file). The files look something like this:
GnuPublicLicense3.txt (36 KB, legal notice)
HexEdit2.class (31 KB, executable program)
HexEdit2.doc (44 KB, this documentation in Microsoft Word format)
HexEdit2.gif (21 KB, sample program image)
HexEdit2.ico (3 KB, icon for Windows)
HexEdit2.java (171 KB, source code)
HexEdit2.pdf (85 KB, this documentation in Adobe Acrobat format)
HexEdit2Data.class (4 KB, helper class for main program)
HexEdit2Text.class (14 KB)
HexEdit2User.class (2 KB)
RunJavaPrograms.pdf (85 KB, more notes about running Java)
To run the program on Windows, start a DOS command prompt, which is Start button, Programs, Accessories, Command Prompt on Windows 2000/XP. Change to the folder with the program files and run the program with a “java” command:
c:
cd \java
java HexEdit2
The program name “HexEdit2” must appear exactly as shown;
uppercase and lowercase letters are different in Java names.
Should you find this program to be popular, you can create
a Start menu item or desktop shortcut on Windows 2000/XP
with a target of “java HexEdit2” starting in the
“c:\java” folder. One complication may arise when trying to
run this program. Java looks for an environment variable called
CLASSPATH. If it finds this variable, then that is a list of folders
where it looks for *.class files. It won’t look anywhere else,
not even in the current directory, unless the path contains
“.” as one of the choices. The symptom is an error message
that says:
Exception in thread "main" java.lang.NoClassDefFoundError: HexEdit2
To find out if your system has a CLASSPATH variable defined,
type the following command in a DOS window:
set CLASSPATH
To temporarily change the CLASSPATH variable to the current
directory, use the following command line:
java -cp . HexEdit2
To permanently change the CLASSPATH, you must find where
it is being set. This may be in an old AUTOEXEC.* file in the
root directory of your system disk (usually the C:\ folder), or
it may be in Control Panel, System, Advanced, Environment
Variables on Windows 2000/XP.
I've Highlighted That Specific Passage From The Wordpad File Inside The .RAR Downloaded From This Thread
Keep In Mind That The Help File This Was Taken From Tells You To Name The Folder "java" Instead Of "HERE"