Skip to main content

In search of GrinView

No replies
Joined: 2011-12-07
Points: 0


Being new to all of this, I look for any help I can get. But, sometimes it isn't easy.

I had seen mention about a desk top utility for testing GRIN called GrinView. Unfortunately, I apparently missed how to find it and run / use it.

I read E:\hdcookbooka\AuthoringTools\grin\build\grin_javadoc\javase\com\hdcookbook\grin\doc-files\index.html
Some of the links no longer exist.
In the Launching GRIN section: "A test program for the GRIN framework is provided in the package com.hdcookbook.grin.test. Please consult the package documentation for details. You can launch GRIN using Java SE - this is documented in the package documentation for com.hdcookbook.grin.test.bigjdk. Not being familiar with Unix / Java et all, I had no idea how or where to find those 'packages' as there were no files by those names.

I found E:\hdcookbooka\AuthoringTools\grin\jdktools\grinviewer\src\com\hdcookbook\grin\test\bigjdk\package.html
Which contained:

java -cp (dir) com.hdcookbook.grin.test.bigjdk.GrinTestRyan

java -cp (dir) com.hdcookbook.grin.test.bigjdk.GuiGenericMain \
-assets ../test/assets/ ryan_show.txt 6

The first one gave errors (java.lang was not found was one of them).
Switched to e:/hdcookbooka/AutoringTools/grin/jdktools/grinviewer/src/com/hdcookbook/grin/test
and tried again, with the same errors.

Going back to the first link listed above and following the Animation Framework link:
The links at the top were not found.
Hidden in the Optimized Drawing section was:
"The best way to visualize what's going on is to see it for yourself, live. The GrinView program has a function to do this. Run the program grin/scripts/shell/ test, ..."
Using a file finder, looking for grinviewer I found the script in E:/hdcookbooka/build/shell/
Using the Unix command window, switched to that folder and ran it.
Amazing! There is the GRIN show viewer and display windows. Although, I don't know how it found 'test' as that file is not in that folder.

It was only by pure accident I found this in the multiple layered folders. Perhaps I missed a key pointer some where else.

Although I did not find any documentation on how to run the script, looking at it, I finally figured out (I no nothing about shell scripts) that you could enter test, ryan, menu or menu-bin.
Test and ryan ran, however, some actions of ryan didn't appear to work (the up / down counters for two). But then again I may not know how all this works.

Menu had the following error:
$ sh menu
java.lang.NoClassDefFoundError: com/hdcookbook/grin/test/bigjdk/GrinView
Caused by: java.lang.ClassNotFoundException: com.hdcookbook.grin.test.bigjdk.GrinView
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: com.hdcookbook.grin.test.bigjdk.GrinView. Program will exit.
Exception in thread "main"

The setup for menu-bin appeared to work until the following problem:
[] Java version: 1.6.0_29
[] O/S name: Windows 7
[] O/S architecture: x86
[] "show" expected on line 1 of menu.grin
[] at
[] Found, using mosaic.
[] "show" expected on line 1 of menu.grin
[] Error trying to parse menu.grin
[] URL: file:/E: at
[] at com.hdcookbook.grin.test.bigjdk.GenericMain.createSho/hdcookbooka/xlets/hdcookbook_discimage/build/xlets/menuassets/menu.grin
[] w(
[] at com.hdcookbook.grin.test.bigjdk.GenericMain.init(
[] at com.hdcookbook.grin.test.bigjdk.GrinView.main(

E:\hdcookbooka\xlets\hdcookbook_discimage\run_jdktools.xml:68: The following error occurred while executing this line:
E:\hdcookbooka\xlets\hdcookbook_discimage\preset_defs.xml:116: Java returned: 1
menu.grin appears to be in E:\hdcookbooka\xlets\hdcookbook_discimage\build\xlets\menuassets as that is the only one found with file finder.

I can see that this is a great tool. Is there any documentation on how to use it with my files? Or is there a different one for general use?

I'll have to stop now. Those long path names hurt my fingers! Especially in the Unix command window. At least with Windows all you have to do is click.

Thanks for any pointers.

Paul Masters