[SOLVED] [hdbpp-viewer] Error: Could not find or load main class HDBViewer.MainPanel
|
|
---|---|
Hi, I am trying to compile and run hdbpp-viewer on Debian 9. The release jhdbviewer-1.13 (4408e93) does not compile, so I have tried the latest revision ( 70d61cc). It compiles without errors, but I cannot run the program. Compilation
Now I try to run the program, but it cannot find the main class
Nevertheless, I have uncompressed jhdbviewer-1.14-SNAPSHOT.jar with unzip, and I found that the HDBViewr.MainPanel class is present. I am a newbie in Java, so it would be nice if a seasoned Java developer could give me a hint. Regards, – Sebastien
Sebastien
|
|
|
---|---|
Hi Sébastien, Did you look at the link to the documentation provided in the README? http://www.esrf.eu/computing/cs/tango/tango_doc/hdb_viewer/index.html You need to have a correct CLASSPATH and you can follow the instructions from the "Command line" section of the documentation. Hoping this helps Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |
|
|
---|---|
Hi Reynald, I have tested the instructions in http://www.esrf.eu/computing/cs/tango/tango_doc/hdb_viewer/index.html I have found a typo in the CLASSPATH. A d letter is missing when defining HDBVIEWER variable. HDBVIEWER=$TANGO_JAVA_APPLIS/jhbdviewer.jar After fixing it, I can run hdbpp-viewer. Then I have tried to modify CLASSPATH in this example, to see what happens. If I remove important package like HDB++.jar, ATKCore.jar or ATKWidget.jar, I can reproduce the error that I had. Now I understand that my issue is related to the CLASSPATH variable and that I have misunderstood the error message from java. Java can find the class but it cannot load it because some dependencies are missing. Thank for the tip, now I can continue my investigations. Regards — Sebastien
Sebastien
|
|
|
---|---|
I have found that was wrong: hdbpp-viewer needs the Java HDB++ Extraction Library. It needs also jcalendar.jar and jython.jar, but I think that I can found a way to use the Debian version instead of the ESRF jar files. Many thanks for the tip, now I can run hdbpp-viewer.
Sebastien
|