Hi, I'm trying to develop my first Visual Panel. It's supposed to be a simple GUI to an SMF service I wrote.
I followed the steps in Stephen's Blog to deploy it: http://blogs.sun.com/talley/entry/creating_a_visual_panel In the Control Class, I use a few Classes from org.opensolaris.os.scf and org.opensolaris.os.smf in order to interface with SMF from my panel. It's mostly based on the example on: http://www.opensolaris.org/os/project/vpanels/javascf/ When trying to start my panel, I get: java.lang.NoClassDefFoundError: org/opensolaris/os/scf/Scope Apparently, when I try to acces SMF through: protected void initComponent() { Handle h = new Handle(); try { h.bind(); Scope s = h.scope(Scope.SCF_SCOPE_LOCAL()); Service svc = s.service(MY_FMRI); SmfService smfsvc = new SmfService(svc); SmfInstance i = smfsvc.getInstance(INSTANCE); getComponent().setAutoScrubEnabled(i.isEnabled()); } catch (ScfException ex) { Logger.getLogger(ZFSAutoScrubControl.class.getName()).log(Level.SEVERE, null, ex); } } It doesn't find the Scope class. This is weird, because it's all in /usr/share/vpanels/scf-core.jar and so it should have been found by the vp command. I also checked the definition and the jar file for the smf visual panel and it doesn't seem to do any special thing to add the SCF/SMF classes it uses to the classpath. Any idea what could be wrong here? Thanks, Constantin -- Constantin Gonzalez Sun Microsystems GmbH, Germany Principal Field Technologist http://blogs.sun.com/constantin Tel.: +49 89/4 60 08-25 91 http://google.com/search?q=constantin+gonzalez Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Haering
