On the server side:

If the web server has been set up for Guacamole, In the file /etc/httpd/conf/httpd.conf, add the lines between the gray bars

<VirtualHost *:80>
    ServerName examplehost.crecom.com.au


    Alias /printers /var/www/html/printers
    <Directory /var/www/html/printers>
        Options Indexes FollowSymLinks MultiViews ExecCGI
        AllowOverride Options
        Order allow,deny
        Allow from all
    </Directory>
    ProxyPassMatch ^/printers !


    Proxypass / http://localhost:8080/guacamole/
    ProxyPassReverse / http://localhost:8080/guacamole/

    ErrorLog logs/guacamole.log
    CustomLog logs/guacamole-access.log combined
</VirtualHost>
<VirtualHost *:80>

If the web server has not been set up for guacamole, add the following to the end of your /etc/httpd/conf/httpd.conf:

    Alias /printers /var/www/html/printers
    <Directory /var/www/html/printers>
        Options Indexes FollowSymLinks MultiViews ExecCGI
        AllowOverride Options
        Order allow,deny
        Allow from all
    </Directory>

Continue here after updating httpd.conf. Uncomment the following line:

AddHandler cgi-script .cgi

Add the following line just after "DocumentRoot"

SetEnv LD_LIBRARY_PATH lib:/usr/lib:/u/ccr.16/lib

Add apache to the "control" group (in /etc/group)

control:3232:apache

Create the following directoriy /var/www/html/printers/

And copy 2 files from sam

/u/ccdev/std/internet/cgi/deviceservice.cgi
/u/ccdev/std/binl/printer

Important: make sure you set the above 2 files to be executable and never use binx11 printer executable

Add a new file .htaccess containing the following:

Options -Indexes

run prnaad and for the "System printer name" you have to specify a directory (start and end with slash). To make things less messy, put them in a subdirectory containing all the printers:

/printers/docket/
/printers/laser/
/printers/label/

Make sure /u/cc is a symbolic link to /cc

ln -s /u/cc /cc

Restart apache:

service httpd restart

Program should automatically create them (below your $CCDIR). If it does not, then you may have to do it yourself.

If this is for a company with many locations, or a server with multiple companies, it might be a good idea to place these under the company directory (and maybe with individual directories for locations).

Once the above is all set, proceed to setting up the client.

Set up DNS.

Go to https://li843-247.members.linode.com:10000

Log in as root, password is funky.

Click on "Servers -> BIND DNS Server"

Click on "creativecomputing.com.au"

Click on "name alias"

Add a new one (on top), under name put a shortcut for the company name, spaces and underscores are NOT allowed.

Put the server's real name under real name "blah-blah.bnl.net.". Make sure you put a dot at the end.

Click on "create". click on "apply zone" then "apply configuration"

test using ping "ping blah.creativecomputing.com.au"

Email template for new customer:

Dear <customer name>

Here are the information needed to set up your printers. Instructions to use these can be found here: https://wiki.crecom.com.au/customer_java_printing

Service URL: http://<customer_name>.creativecomputing.com.au/printers/deviceservice.cgi

Service Env: /u/cc<customer_name>/

Interval: 2

Control Printers:

<customer>-front-laser

<customer>-front-docket

<customer>-ware-laser

<customer>-ware-docket

<customer>-back-laser

<customer>-back-docket

<customer>-store2-front-laser

<customer>-store2-front-docket

On the client side for MAC:

Download 2 files:

http://customers.crecom.com.au/winprint/jre-10.0.2_osx-x64_bin.dmg <-for mac

http://customers.crecom.com.au/winprint/crecomps.zip

Run the jre-installer, follow all the defaults.

Unzip the crecomps.zip into /Library/crecomps/   <-for mac

Run the install.sh file.    <-for mac

Check the logs under c:\crecomps\logs . You should not see any obvious errors.

sudo vi /Library/crecomps/start.sh. Leave everything as is but modify the arguments as follows: (this is last step) <-for mac

start&URL=<URL>&SECS=<INTERVAL>&CENV=<CCDIR>&CP_<CREPRINTERx>=<WINPRINTERNAME>&CP_<CREPRINTERx>=nexa

Where:

Restart the computer and check if the service auto started

Important note for Linux or Mac:

make sure the printer is "shared to network" or java may not see the printer.

Install java printing client on Window:

Download.

http://customers.crecom.com.au/winprint/crecomps_install.exe

double click it to install, say yes to everything.

click on the desktop shortcut created with Control logo and a spaner, fill in the setting.

click on the desktop shortcut created with Control logo and a printer, click start.

or

Download 2 files

http://customers.creativecomputing.com.au/winprint/jre-8u171-windows-i586.exe

http://customers.creativecomputing.com.au/winprint/crecomps_10p.zip

install jave by clicking the jre exe

unzip crecomps_10p.zip under C:/crecomps

use cmd to navigate to the crecomps dir and run the install.bat

after that follow the mac for the parameter entry.

Important note for Window:

java do not see any printer that is shared from other computer, it has to have direct connection.

to set up two sided printer.

Go to "devices and printers" under Control Panel. Right click on your A4 printer and go to Printer Properties -> Advanced -> Printing Defaults. Choose "2 Sided" printing and click Apply.

Go to prnaad and add in the printer options the keyword DSIDE .

If there is no "printing defaults" option, or if 2 sided printing isn't one of those we can set, we have to try other similar drivers and use one that works.

For printing on different try, if their driver does not have it, use microsoft ipp class driver.

For PCL6 mono printer like drb we use HP LaserJet Pro 4001 pcl6 v4 in windows 11 then double sided printing will work.

If printer properties are grayed out:

  1. Go to Printers
  2. Select Printer Properties
  3. in the General Tab, find and click “Change Properties", in the bottom left corner. The Printer Properties box will close and reopen with administrator privileges.
  4. Click on the Advanced or Port Tab, and you will be able to make changes.
  5. Click OK to Save your changes.

important note on window 11

try all possible way still cannot run java printing as service, have to do it in task schedule.

1, add a non microsoft user.

type "other users" in the search box.

add account->click " i dont have this person's sign-in information"

-> click "add a user without a microsoft account"

they you will be able to enter the user name and password and at least 3 security question

I will suggest the user name to be controlerp and the password be funcky control and all the answer to the security question be controlerp

2, download the /u/ccr.17/std/internet/java/crecomps.zip extract it in the usual place which is under c: this is important.

inside it should have a jre-8u471-windows-x64.exe and a cmdstart.bat

please install this x64 java as the command in cmdstart.bat is referencing it.

3, make a copy of any existing parameter string.

4, run uninstall.bat if crecomps was already installed on the computer.

5, right click on the cmdstart.bat to edit it. replace the parameter string at the end with the correct one.

6, at this point if you run the cmdstart.bat it should already be doing all the java printing. and you could see the output in the command line.

7.type "task scheduler" in the search bar

8. right hand tab->create basic task

put "Controlerp Print Service" in the name field.

put in appropriate description. then next

choose "when the computer starts" for trigger.

then choose "start a program"

then browse the location of cmdstart.bat

no need to put in argument or start in then click next

then on the finish screen click "open the property dialog for this task when i click finish" then click finish

in the newly opened property dialog click "change user or group" in the pop up click advance then click find now then choose the new "controlerp" user created in 1.

then click "whether user is logon or not" also click "run with highest privliages" then enter the password set in 1 in the popup.

you have created the task then in the "task scheduler" main interface. you can run/stop/delete the task from the active task dropdown by double clicking it if the task is already running you can also find it from the "display all running task" on the right hand side.

Note: if printing under windows 11 still not working

Make sure to check the printer driver. It has to be a "signed driver" from the manufacturer. Symptoms are, print jobs are deleted immediately after being sent to spooler.

Installing_java_printing (last edited 2025-11-23 23:52:02 by JonCo)