Re: Selftest result OLS
Reply #4 –
[quote author="Sjaak"]
The simplest way to use the new client is to download and extract the BFP_Logic_Analyzer_1.0.zip from the gadgetfactory.com and copy the new analyzer.jar into this extracted directory (in my case D:BFP_Logic_Analyzer_1.0 ). I also renamed the analyser.jar to analyzer2.jar. I run the updated client with this command from a cmd-box:
D:BFP_Logic_Analyzer_1.0>jre1.6.0_14-b08binjava -jar analyzer2.jar
Linux/mac/bsd/* should be simular ( s/\/ //g ).
[/quote]
In looking at the Java code for the SUMP client, I see that there are two places where the specific filename "analyzer.jar" is opened during the process which constructs the menus for the GUI. Basically, the code is going through the Java class files in the jar file and looking for supported devices and also tools (for the Tools menu). So it is not a good idea to rename analyzer.jar unless you also change those two places in the code to correspond. If you don't do this, one of two things will happen: Either SUMP will fail to run correctly and give an exception (java.util.zip.ZipException: error in opening zip file) in which case the menus will fail to work correctly. Or else it will work sort of accidentally when you happen to still have a file named analyzer.jar in your working directory. In that case, you will get some class files from your new jar file and some from the old analyzer.jar file. Needless to say, that is unlikely to be a great idea.
So probably the best advice is to always keep the name analyzer.jar constant unless you are willing to modify the Java code. Use separate working directories if you want to have multiple versions around rather than using different filenames for different versions.