Exception in thread "main" java.lang.​NoClassDef​FoundError​: makesqr/Class1 at getmagic.m​ain(getmag​ic.java:44​) at runtime in LINUX.

2 views (last 30 days)
i have created JAVA_PACKAGE from MAT LAB and integrate it in Java program. on windows it is running perfectly but when i tried to run it on another system with Ubuntu OS it is giving bellow error at runtime ..
{arcadian@arcadian-desktop:~/makesqr/for_testing$ java -classpath .:"/home/arcadian/Documents/MATLAB_Runtime_Install/v85/toolbox/javabuilder/jar/javabuilder.jar":.\makesqr.jar getmagic 5
finnaly:
Exception in thread "main" java.lang.NoClassDefFoundError: makesqr/Class1
at getmagic.main(getmagic.java:44)
Caused by: java.lang.ClassNotFoundException: makesqr.Class1
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
}
Please provide any posible suggestion.

Answers (0)

Categories

Find more on Java Package Integration in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!