or Connect
AVS › AVS Forum › Home Entertainment & Theater Builder › Theater Room Items & Accessories › We need a programmer to develop a new Automated TICKET MAKER!
New Posts  All Forums:Forum Nav:

We need a programmer to develop a new Automated TICKET MAKER! - Page 4

post #91 of 105
I apologize for not getting back to this - it seems some printers under Windows are not working. I just bought a new HP OfficeJet and under Windows XP it did not print correctly. It suffered the same fate that Mopar_Mudder saw with his printer.

Hopefully I'll be able to find some time to look in to it...
post #92 of 105
I just got an intel Mac (OS X Snow Leopard) which has Java SE Runtime Environment 1.6.0 (Java 6). The installer installed the files fine. However, I did not get a run icon nor can I find a file to "run" in the folder. How do I start this app?

Thanks
post #93 of 105
I plan on re-doing the installation programs at some point - the current one I never was able to test on Mac as I don't own one. But it is Unix so I should be able to help.

Most likely at this point you have to run it from a terminal window. Open one up and change to the folder where it was installed:

cd /path/to/install/folder

To be honest I have no clue where that folder might be but hopefully you do. It had to default to something (or you have have changed it) but I'm not sure where it is. After you figure that out:

java -jar bin/felix.jar

And that should launch the program. Again to be honest I'm not up on Macs so I'm not sure how it will look - I mean with the global "File" menu and such. Do they still do that or is my little Mac knowledge dated?

Anyway - I'd also wonder about printing - if there would be problems there...

I would like to hear if you get further...Thanks!!!
post #94 of 105
OK, I was able to get it to work. I opened Terminal and typed:

cd /Applications/TicketMaker

which was the installation folder I created.

Then I typed:

java -jar bin/felix.jar

This opened the app. I created a default ticket and printed it. It prints fine. I'm using an HP Officejet Pro 8500 printer.

Before I posted, I went to the TicketMaker folder and double clicked felix.jar. Nothing started. Clicking on the other .jar files caused an error message to come up as expected.

There has got to be an easier way to open/run this app.

I was a tester for the Excel version of Ticket Maker and added the necessary code for it to work in Excel on a Mac (vba is slightly different). However, I do not know anything about Java. I am willing to beta test any changes to this Ticket Maker on a Mac - just let me know.

In the meantime, is there a better way to start the app?

BTW, this is very impressive. Thanks for the hard work.
post #95 of 105
Perhaps you could make a start script, them make an "Alias" to that? I saw this page:

http://www.techiecorner.com/528/how-...t-in-mac-os-x/

and it talked about doing a shortcut/alias. I think you first need to create a script file and then using it follow those directions.

The script should be something like:
----------------------------------

#!/bin/sh

cd /Applications/TicketMaker
java -jar bin/felix.jar

----------------------------------

The first line might have to be different - I'm not sure what shell is actully on the Mac. You can look in /bin for a "sh" to see if it exists, if not look for "tcsh" or "bash" and use that instead. Most Unix systems will have a /bin/sh, most likely linked to something else.

But give this a try - edit up these few lines and save it to a file - something like startup.sh. Perhaps put it in /Applications/TicketMaker just to keep everything together. You might have to make it executable:

chmod 755 startup.sh

make sure you run that command in the same folder you put the script. First try to run it from a terminal, make sure it works then go onto the "Alias" stuff.
post #96 of 105
Well, I took a little time and played with this. I was unsuccessful. I'll spend some time later this week.

I put the text below in a txt file with a .sh extension

#!/bin/sh
cd /Applications/TicketMaker
java -jar bin/felix.jar

In Applescript I created a script to run the script. However it wouldn't open the app.

Any suggestions? Wasn't sure what to do with "chmod 755 startup.sh" Making the .sh file name that didn't do anything.
post #97 of 105
The chmod command makes the script executable - otherwise it's just a text file. If you want to continue on, open a terminal, cd to the folder that has the text file you made and do:

chmod 755 startup.sh

command. That should make it executable. Then to run it "by hand":

./startup.sh

and you should see the program start. Please remember that my specific knowledge on the Mac OS is limited - this is general Unix stuff but hopefully it will work. If this works then you can make that shortcut/alias thing.
post #98 of 105
djb61230,

I am not sure if you are still around. If so, the links to your java ticket maker do not seem to work any longer.

Does anyone still use/have this java ticket maker file? If so, would you mind posting/sharing?

Thanks!!!
post #99 of 105
Yeah I let that site go away. I still have the source home somewhere and I have been meaning to fold it into to my jflicks media system project, or at least make it available from http://www.jflicks.org

Tonight I'll check on this - hopefully can get it to you soon.
post #100 of 105
Thanks!!!
post #101 of 105
I do have an installation of the program here which I was able to use as the basis to create a new set of installation programs.

Unfortunately I can't seem to find the source code, so making any changes would mean I would have to do quite a bit of work to disassemble some binary files. I'm lousy at making backups and this project I never put in a revision control system on the Internet - my current jflicks project is on github so I don't have to make local backups. Ooops.

Anyway, I made new installation programs for Linux, Windows and Mac. Since the last time I worked on this program, I have been given a license to a terrific program called Install4j. I quickly used this program to generate these new installers.

I was only able to test the Linux version as I don't own a Windows box or mac machine. Hopefully they work. Please let me know if you have success or not.

You can download from here (look at the bottom of the page):

http://www.jflicks.org/downloads/

Doug
post #102 of 105
Thanks Doug. Downloaded the windows installer. It initially was put in c:\\programs, but I remember reading something about you saying not to put it there, so I put it into C:\\. When it installed, I went into the C:\\atm folder and ran the atm.exe file and it produced an error log:

org.osgi.framework.BundleException: Unresolved constraint in bundle atm-ui-view [10]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-ui-view [10]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-swingx [6]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-ui-view [10]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-ui-view [10]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-ui-view [10]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-base [1]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
org.osgi.framework.BundleException: Unresolved constraint in bundle atm-ui-view [10]: package; (package=javax.imageio)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java)
at org.apache.felix.framework.Felix.startBundle(Felix.java)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.j ava)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl .java)
at java.lang.Thread.run(Unknown Source)
ShellTUI: Unable to read from stdin...exiting.

Thanks
post #103 of 105
Probably I have stupid code in there that is not handling spaces in file names. Hence just installing in C:\\.

Looks like you may have an older java installed. I thought it should fail to install if it didn't find java 6 (aka 1.6). If you can check the java version that would help and update to java 6. Or I could build an installer that includes java, in this case I think it is only used by this program. I'll do that as it's easy to do - just be a bigger download.

Like I said I don't do windows much and the mac never.
post #104 of 105
Ok re-download the windows installer and give it a whirl...
post #105 of 105
That did it!!! Awesome. Thank you so much.
New Posts  All Forums:Forum Nav:
  Return Home
AVS › AVS Forum › Home Entertainment & Theater Builder › Theater Room Items & Accessories › We need a programmer to develop a new Automated TICKET MAKER!