EMDK for Java - symbol.Audio

R Ralf Weber 2 years 11 months ago
0 0 0

Hello,
 
currently I am trying to build a little commandline tool which is able to trigger a signal on the device (MT2070).
I downloaded the EMDK for Java and found the JAR-Files und samples.
 
I now have the following code: 
 
// TriggerBeep.java
import symbol.Audio
 
public class TriggerBeep
{
public static void main( String[] args )
{
  int iVersion = 1;
  System.out.println( "TriggerBeep commandline tool" );
  iVersion = symbol.Audio.getVersion();
}
}
 
compiled with:  javac -cp symbolclasses.jar TriggerBeep.java
executed with:  java TriggerBeep
 
Exception in thread "main" java.lang.NoClassDefFoundError: symbol/Audio
        at TriggerBeep.main(TriggerBeep.java:9)
Caused by: java.lang.ClassNotFoundException: symbol.Audio
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 1 more
 
Is there more to add to the option 'cp' to get this code run?
What to change to solve this problem?
 
Thanks in advance!
 
greetings from Germany, Ralf...

CONTACT
Can’t find what you’re looking for?