We need a programmer to develop a new Automated TICKET MAKER! - Page 4 - AVS Forum
Forum Jump: 
 
Thread Tools
Old 02-04-2011, 09:19 AM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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...
djb61230 is offline  
Sponsored Links
Advertisement
 
Old 02-06-2011, 09:26 AM
Advanced Member
 
hdtvluvr's Avatar
 
Join Date: Aug 2002
Location: Tennessee
Posts: 651
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 2 Post(s)
Liked: 15
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
hdtvluvr is offline  
Old 02-06-2011, 10:38 AM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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!!!
djb61230 is offline  
Old 02-06-2011, 11:55 AM
Advanced Member
 
hdtvluvr's Avatar
 
Join Date: Aug 2002
Location: Tennessee
Posts: 651
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 2 Post(s)
Liked: 15
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.
hdtvluvr is offline  
Old 02-06-2011, 12:30 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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.
djb61230 is offline  
Old 02-06-2011, 02:25 PM
Advanced Member
 
hdtvluvr's Avatar
 
Join Date: Aug 2002
Location: Tennessee
Posts: 651
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 2 Post(s)
Liked: 15
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.
hdtvluvr is offline  
Old 02-07-2011, 08:17 AM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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.
djb61230 is offline  
Old 03-07-2012, 11:51 AM
Senior Member
 
rsmclay's Avatar
 
Join Date: Nov 2003
Location: Westland, MI
Posts: 205
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 11
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!!!
rsmclay is offline  
Old 03-07-2012, 12:34 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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.
djb61230 is offline  
Old 03-07-2012, 12:51 PM
Senior Member
 
rsmclay's Avatar
 
Join Date: Nov 2003
Location: Westland, MI
Posts: 205
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 11
Thanks!!!
rsmclay is offline  
Old 03-07-2012, 05:34 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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
djb61230 is offline  
Old 03-07-2012, 05:51 PM
Senior Member
 
rsmclay's Avatar
 
Join Date: Nov 2003
Location: Westland, MI
Posts: 205
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 11
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
rsmclay is offline  
Old 03-07-2012, 06:39 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
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.
djb61230 is offline  
Old 03-07-2012, 06:44 PM
Senior Member
 
djb61230's Avatar
 
Join Date: Dec 2004
Location: Johnstown, NY
Posts: 450
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 3 Post(s)
Liked: 11
Ok re-download the windows installer and give it a whirl...
djb61230 is offline  
Old 03-07-2012, 07:11 PM
Senior Member
 
rsmclay's Avatar
 
Join Date: Nov 2003
Location: Westland, MI
Posts: 205
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 11
That did it!!! Awesome. Thank you so much.
rsmclay is offline  
 
Thread Tools


Forum Jump: 

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off