TGE Error Viewer
by Edward Smith · 10/02/2003 (12:38 pm) · 4 comments
Download Code File
I thought some may find this useful. If you do say so I may extend it abit to store more things and colour coded etc.
I decided to make this because i hate looking though the console.log file in a normal text editor because its so plain and hard to see, so this cuts out all that you don't need to see :-).
Its a folder with the java files and a .bat you may have to change the .bat file to say where your jvm is eg. C:\java1.4.2\bin
It saves your position of the console.log file after your first use, its in the 'pro.cvx' file which will be in the same folder as the .bat file.
How to use it, if first time, select your console.log in "File->Select Log", then go Check Log, it'll print out all of the found errors in the log.
If you want to search for anything else in the console, just go to "File->Add a key" and type it in and it'll seach for it, the next time around.
Also if anyone finds a standard error which isn't in it, please send a copy of it to me, so I can add it to it. thx.
I use Java 1.4.2 but I'm sure it'll work with a whole range due to its simple code.
And remember its java so anyone can run it! :-D (in theory...)
I thought some may find this useful. If you do say so I may extend it abit to store more things and colour coded etc.
I decided to make this because i hate looking though the console.log file in a normal text editor because its so plain and hard to see, so this cuts out all that you don't need to see :-).
Its a folder with the java files and a .bat you may have to change the .bat file to say where your jvm is eg. C:\java1.4.2\bin
It saves your position of the console.log file after your first use, its in the 'pro.cvx' file which will be in the same folder as the .bat file.
How to use it, if first time, select your console.log in "File->Select Log", then go Check Log, it'll print out all of the found errors in the log.
If you want to search for anything else in the console, just go to "File->Add a key" and type it in and it'll seach for it, the next time around.
Also if anyone finds a standard error which isn't in it, please send a copy of it to me, so I can add it to it. thx.
I use Java 1.4.2 but I'm sure it'll work with a whole range due to its simple code.
And remember its java so anyone can run it! :-D (in theory...)
#2
C:\j2sdk1.4.1_02\bin\java TGEViewer/Main
or if you have it setup to run java from the command line:
java TGEViewer/Main
If you continue to have problems I can give you the source code.
The first time you run it, it will give a FileNotFileException, don't worry about that it will generate one on exit after you have given it the location of the console.log file.
12/06/2003 (6:50 pm)
You can chnage the .bat file to say like so:C:\j2sdk1.4.1_02\bin\java TGEViewer/Main
or if you have it setup to run java from the command line:
java TGEViewer/Main
If you continue to have problems I can give you the source code.
The first time you run it, it will give a FileNotFileException, don't worry about that it will generate one on exit after you have given it the location of the console.log file.
#3
Error:
Exception in thread "main" java.lang.NoClassDefFoundError: main
12/07/2003 (11:16 am)
Still can't get it to run. Same error all the time. Not sure if it my setup or not.Error:
Exception in thread "main" java.lang.NoClassDefFoundError: main
#4
You could put the .bat in to the folder TGEViewer and have it just say.
C:\"location of your j2se install"\bin\java Main
If still problems:
Here is how to set the PATH of your java and javac so you can use the java TGEViewer/Main
This is from sun.java.com If you use anything other then a PC go there and look for the Java Tutorial you will find your answers there.
Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify the full path to the executable every time you run it, such as:
C:> \j2sdk1.4.2_\bin\javac MyClass.java
It's useful to set the PATH permanently so it will persist after rebooting.
How do I set the PATH permanently?
To set the PATH permanently, add the full path of the j2sdk1.4.2_\bin directory to the PATH variable. Typically this full path looks something like C:\j2sdk1.4.2_\bin. Set the PATH as follows, according to whether you are on Microsoft Windows NT or 98/2000/ME.
Microsoft Windows NT, 2000, and XP - To set the PATH permanently:
Choose Start, Settings, Control Panel, and double-click System. On Microsoft Windows NT, select the Environment tab; on Microsoft Windows 2000 select the Advanced tab and then Environment Variables. Look for "Path" in the User Variables and System Variables. If you're not sure where to add the path, add it to the right end of the "Path" in the User Variables. A typical value for PATH is:
C:\j2sdk1.4.2_\bin
Capitalization doesn't matter. Click "Set", "OK" or "Apply".
The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to j2sdk1.4.2_\bin.
The new path takes effect in each new Command Prompt window you open after setting the PATH variable.
Microsoft Windows 98 - To set the PATH permanently, open the AUTOEXEC.BAT file and add or change the PATH statement as follows:
Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT
Look for the PATH statement. (If you don't have one, add one.) If you're not sure where to add the path, add it to the right end of the PATH. For example, in the following PATH statement, we have added the bin directory at the right end:
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\J2SDK1.4.2_\BIN
Capitalization doesn't matter. The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows searches for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to j2sdk1.4.2_.
To make the path take effect in the current Command Prompt window, execute the following:
C:> c:\autoexec.bat
To find out the current value of your PATH, to see if it took effect, at the command prompt, type:
C:> path
Microsoft Windows ME - To set the PATH permanently:
From the start menu, choose programs, accessories, system tools, and system information. This brings up a window titled "Microsoft Help and Support". From here, choose the tools menu, then select the system configuration utility. Click the environment tab, select PATH and press the edit button. Now add the SDK to your path as described in step b above. After you've added the location of the SDK to your PATH, save the changes and reboot your machine when prompted.
12/07/2003 (4:46 pm)
Have you installed your j2sdk1.4.1_02 in C:\ because thats what I assume. If not, change it to your location of your j2sdk1.4.1_02.You could put the .bat in to the folder TGEViewer and have it just say.
C:\"location of your j2se install"\bin\java Main
If still problems:
Here is how to set the PATH of your java and javac so you can use the java TGEViewer/Main
This is from sun.java.com If you use anything other then a PC go there and look for the Java Tutorial you will find your answers there.
Set the PATH variable if you want to be able to conveniently run the Java 2 SDK executables (javac.exe, java.exe, javadoc.exe, etc.) from any directory without having to type the full path of the command. If you don't set the PATH variable, you need to specify the full path to the executable every time you run it, such as:
C:> \j2sdk1.4.2_
It's useful to set the PATH permanently so it will persist after rebooting.
How do I set the PATH permanently?
To set the PATH permanently, add the full path of the j2sdk1.4.2_
Microsoft Windows NT, 2000, and XP - To set the PATH permanently:
Choose Start, Settings, Control Panel, and double-click System. On Microsoft Windows NT, select the Environment tab; on Microsoft Windows 2000 select the Advanced tab and then Environment Variables. Look for "Path" in the User Variables and System Variables. If you're not sure where to add the path, add it to the right end of the "Path" in the User Variables. A typical value for PATH is:
C:\j2sdk1.4.2_
Capitalization doesn't matter. Click "Set", "OK" or "Apply".
The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows looks for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to j2sdk1.4.2_
The new path takes effect in each new Command Prompt window you open after setting the PATH variable.
Microsoft Windows 98 - To set the PATH permanently, open the AUTOEXEC.BAT file and add or change the PATH statement as follows:
Start the system editor. Choose "Start", "Run" and enter sysedit, then click OK. The system editor starts up with several windows showing. Go to the window that is displaying AUTOEXEC.BAT
Look for the PATH statement. (If you don't have one, add one.) If you're not sure where to add the path, add it to the right end of the PATH. For example, in the following PATH statement, we have added the bin directory at the right end:
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\J2SDK1.4.2_
Capitalization doesn't matter. The PATH can be a series of directories separated by semi-colons (;). Microsoft Windows searches for programs in the PATH directories in order, from left to right. You should only have one bin directory for a Java SDK in the path at a time (those following the first are ignored), so if one is already present, you can update it to j2sdk1.4.2_
To make the path take effect in the current Command Prompt window, execute the following:
C:> c:\autoexec.bat
To find out the current value of your PATH, to see if it took effect, at the command prompt, type:
C:> path
Microsoft Windows ME - To set the PATH permanently:
From the start menu, choose programs, accessories, system tools, and system information. This brings up a window titled "Microsoft Help and Support". From here, choose the tools menu, then select the system configuration utility. Click the environment tab, select PATH and press the edit button. Now add the SDK to your path as described in step b above. After you've added the location of the SDK to your PATH, save the changes and reboot your machine when prompted.

Torque Owner Dan -
1 - The .bat file alters the path to "path C:\j2sdk1.4.2\bin" so if thats not where your Java is it wont work.
2 - When I run this program I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: main
I have:
java version "1.4.1_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_05-b01)
Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode)
Could you help me out? I was planing on writting a program just like this.
Thanks,