Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHi,
The root of your problems is this one:java.lang.NoClassDefFoundError: com/altera/service/Service This indicates that java couldn't find a jar file providing this class. When it's looking for classes java checks all the jars on the class path and load the class from the first jar file it sees it in. A class might refer to another class, in which case java will search again and load the second class from the appropriate jar. It looks like you need to add some jars to your class path. The matlab Java API lets you see what the class path is by running the `javaclasspath` command. If you are still stuck then please post the results of running this command. You may be able to solve the problem yourself by adding plausible looking jars to the class path yourself. You can extend the classpath in two ways:- You can `edit classpath.txt` and add the full paths to the jars you need. After editing classpath.txt you will need to restart matlab - the jars should then be on the static classpath
- You can use the command `javaaddpath('full/path/to.jar')` to add jars to the dynamic class path. You don't need to restart matlab to see changes to the dynamic class path, but any changes you make are lost on a restart so you might want to store your commands in startup.m or somewhere like that