Linux Matlab Printing Problem | SUSE Communities

Linux Matlab Printing Problem


Problem Description:

When you print from the ‘File->Print’ menu, an error box appear: “There are no properly configured printers on the system”

Another way to view this problem: when typing the command:

javax.print.PrintServiceLookup.lookupDefaultPrintService",  ans=[].

When you print from the menu, Java is used to send the print job whereas the PRINT command interfaces directly with the operating system.

In this case, Java is unable to find the default printer in your system, so printing from the menu fails.


  • Verify Java version (matlab command: version -java)
  • If the java version < 1.6.0_01 than download a new version
  • Verify the java version after the installation
  • Run the script (chmod 754 ; ./ 😉

    The script will add to your profile an alias for matlab:
  • bash (.bashrc): alias matlab=”export MATLAB_JAVA=/usr/java/jre1.6.0_01;export JAVA_JVM_VERSION=1.6;matlab”
  • tcsh (.cshrc): alias matlab=”setenv MATLAB_JAVA /usr/java/jre1.6.0_01;setenv JAVA_JVM_VERSION 1.6;matlab”
  • Check the default printer (matlab command): javax.print.PrintServiceLookup.lookupDefaultPrintService
  • Print from menu
(Visited 1 times, 1 visits today)

Leave a Reply

Your email address will not be published.

No comments yet