no (capable) printers found, please install a printer

I also had the same problem you describe on Mac.
The only solution I found was to force Java application to run with J2SE 1.4 rather than J2SE 5.0.
To do this you can go in /Applications/Utilities/Java/J2SE 5.0/Java preferences.
There you can choose the default java version use to launch application.
This trick works well to use a printer on mac with servoy client , but can’t be used to use developer version… Lot of problem of window repainting.

gautier:
There you can choose the default java version use to launch application.
This trick works well to use a printer on mac with servoy client , but can’t be used to use developer version… Lot of problem of window repainting.

Servoy 3 requires Java 1.5, I’m afraid…
I don’t feel at ease in making customers using it with java 1.4

Servoy 3.0 runs fine on 1.4 when setting a policy file (see Servoy 3.0.0 release notes)

Found the solution to this for anyone interested…

On the Mac, delete the following files

com.apple.print.favorites.plist
com.apple.print.custompresets.plist
com.apple.print.PrintCenter.plist
com.apple.print.PrintingPrefs.plist
com.apple.print.PrinterProxy.plist

from ~/Library/Preferences/

Job done…

Thanks for the replies

Thunder:
Found the solution to this for anyone interested…

On the Mac, delete the following files

com.apple.print.favorites.plist
com.apple.print.custompresets.plist
com.apple.print.PrintCenter.plist
com.apple.print.PrintingPrefs.plist
com.apple.print.PrinterProxy.plist

from ~/Library/Preferences/

Job done…

Thanks for the replies

Not working for me :cry:

Hey Ric

My solution was to log in on the machine as a new user. This worked (printing worked). I therefore knew that the problem was in the user folder rather than specific to the machine… I then deleted the printer stuff which brought back printing but with the preference for “use system print dialog” was UNticked. I then ticked it, deleted and re-added the printer and bingo. This worked on two different machines in the same location.

Best

Bevil

Thunder:
Hey Ric

My solution was to log in on the machine as a new user. This worked (printing worked). I therefore knew that the problem was in the user folder rather than specific to the machine… I then deleted the printer stuff which brought back printing but with the preference for “use system print dialog” was UNticked. I then ticked it, deleted and re-added the printer and bingo. This worked on two different machines in the same location.

Best

Bevil

Uhm: I’m having this problem on new account, too.
I’ll try to perform the delete-add printer procedure, and see if it works.

Thanks, Bevil

Riccardino:

Thunder:
Hey Ric

My solution was to log in on the machine as a new user. This worked (printing worked). I therefore knew that the problem was in the user folder rather than specific to the machine… I then deleted the printer stuff which brought back printing but with the preference for “use system print dialog” was UNticked. I then ticked it, deleted and re-added the printer and bingo. This worked on two different machines in the same location.

Best

Bevil

Uhm: I’m having this problem on new account, too.
I’ll try to perform the delete-add printer procedure, and see if it works.

Thanks, Bevil

Niet. :(

I tried the whole remove .plist files and reinstalled the printers and nothing happened. I still had the same problem. Is there anything new on this front?

Does this problem exsist on Servoy 3.02? I started to notice after I updated to 3.1.3. But it may have been there and I have not noticed it.

elyod_72:
I tried the whole remove .plist files and reinstalled the printers and nothing happened. I still had the same problem. Is there anything new on this front?

Does this problem exsist on Servoy 3.02? I started to notice after I updated to 3.1.3. But it may have been there and I have not noticed it.

Seems to happen on Servoy 3+ with Java 1.5. But only on certain machines…

I’ve become quite skilled at removing this problem now… I can even talk end users through the process.

It is always to do with printer preferences. It is curious that removing the prefs doesn’t solve the problem for some but its worth remembering that there are two locations for printer preferences in Mac OS X, ~/Library/Preferences/[all the com.apple. print preference files you can find] and /Library/Preferences/[all the com.apple. printer preference files you can find]

For good measure, also remove the files/folders from the ~/Library/Printers/ and /Library/Printers/ (although these will mean you need to re-add your printers).

For me, the problem is some java / apple printer preference corruption issue which clearing these preferences and printer PPDs fixes. I don’t have the problem so much any more although it is odd that when it does happen, it is always with a few particular machines.

You guys rock! I can finally print from my Developer license again! Coool! Thanks for all your help.

Thunder:
I’ve become quite skilled at removing this problem now… I can even talk end users through the process.

It is always to do with printer preferences. It is curious that removing the prefs doesn’t solve the problem for some but its worth remembering that there are two locations for printer preferences in Mac OS X, ~/Library/Preferences/[all the com.apple. print preference files you can find] and /Library/Preferences/[all the com.apple. printer preference files you can find]

For good measure, also remove the files/folders from the ~/Library/Printers/ and /Library/Printers/ (although these will mean you need to re-add your printers).

I finally got it.
Removing the prefs didn’t help, same for emptying the Printer folder on both Libraries.
But finally, manually removing all the printers from the Printer Setup Utility and re-adding a network laser printer did the trick.
I’m very happy, now :-)

I’m going to visit a site tomorrow where one of my Mac end users reports the “No (capable) printer available” error.
He’s trying to connect to a network printer (ethernet) using Bonjour. All other applications can print OK. Do you think this is the same problem, or is there something else with Bonjour I should be considering?

THanks in advance.

I am running Bonjour and whether I accessed printers from it or not didn’t seem to make any difference. It wasn’t until I cleared out all of the printer preference files that I could print again. I would say, clear out those files and see what happens after that.

I had a call last night from a Mac site with the “No (capable) printer available” error. Armed with Thunder’s advice I thought it would be a quick fix. We failed (even logging in as a different user didn’t work). But then… we found a different and quicker fix. This is on OSX 10.4.10, Java 5.0

Open System Prefs
Open Print & Fax
Select the printer and click Printer Setup
Under ‘Printer Setup Utility’ on the menubar click Reset Printing System,
Click Reset

Worked like a dream

Do any of you still have this printing problem with Java 1.5.0_07-87?
I have a customer who uses Java 1.5.0_06-64 and after resetting the printing system (by the IT dep.) as described in this thread things work until you reboot the computer.
This is of course NOT workable.

So my question is will upgrading to 1.5.0_07-87 fix this?
They use Servoy 3.1.6.

Thanks

It seems upgrading did the trick although I found another problem that might bite others in the butt as well.

At my client when printing during the day it suddenly stopped working. Printing to PDF mostly worked (via the OS print dialog) but printing to a printer didn’t.
Nothing showed up in the printer queue either. No logs, no error messages. A mystery.

Turned out that the client maxed out during the day in it’s RAM usage. So when it maxed out the whole code that was running went up in smoke. No messages, nothing. Servoy client keeps running though.
Upping the RAM settings (in the Servoy Admin pages) fixed it.

So the moral of this story is when weird things happen always check the RAM usage in the about window.

Hope this helps.

The problem seems to be Bonjour. Avoid it like the plague. Even if you have a Bonjour printer in the list and are trying to print to a NON bonjour printer (like PDF), it won’t work. Make sure all printers are added via tcp/ip and there is no problem. While sorting it, it is usually a combination of removing printers, removing preferences, resetting the printing (in Printer setup utility), and re-adding everything via IP.

Recent HP laserjets don’t have Appletalk so it is easy to let them get added via bonjour, Servoy stops printing in these cases. TCP/IP no problem.

Thunder:
The problem seems to be Bonjour.

I have also a printing problem on Mac OS X 10.4.11 with the error dialog: ‘No (capable) printers found, please install a printer’. But it’s not only by set printers with Bonjour. I set my HP Color LaserJet over TCP/IP and this will not work! For this I would to get my printer in globale variable with:

var vPrinters = application.getPrinters();

var vResult1 = vPrinters[0];
var vResult2 = vPrinters[1];

if (vResult1)
{
globals.gPrinters = vResult1 + ‘\n’ + vResult2;
}

Sometimes vPrinters = [HP Color LaserJet,Epson Stylus Color] and sometimes vPrinters = .

Thomas