Run AccuTimeCard from Exhedra with WineHQ

Questions about Wine on Linux
Locked
bmalex
Newbie
Newbie
Posts: 3
Joined: Mon Aug 27, 2012 5:07 am

Run AccuTimeCard from Exhedra with WineHQ

Post by bmalex »

Hello to everybody!
I just decided to start using Linux, open-source and free software, and of course, WineHQ for all those Windows applications that have not a Linux version. So, there's a program called AccuTimeCard, created by Exhedra (vWorker) and it has only Windows version. I am sure there's a lot of people that would love to have it running on Linux, so I will start a new post of which purpose is to finally help everyone (if possible) do it.

The application needs Java, so I firstly installed JRE 7. The path is:
Linux real path: home/(user)/.wine/drive_c/Program Files/Java/jre7/bin
Windows virtual path: c:\Program Files\Java\jre7\bin\

Now, I started the AccuTimeCard installer, with Wine. The application is successfully installed at:
Linux real path: home/(user)/.wine/drive_c/users/(user)/Local Settings/Application Data/Exhedta/AccuTimeCard
Windows virtual path: c:\users\(user)\Local Settings\Application Data/Exhedta/AccuTimeCard

A shortcut is created on the desktop. Now comes the hard part, at which point I am stuck, and that's why I need a little bit of guidance from those with more experience in this kind of stuff.
On Windows, the program starts like this: a windows console is shown up, then Java Machines takes the wheel, starting the application.
On Linux, the console is shown up, but an error related to a wrong a javaw.exe path is displayed:

Code: Select all


==============================================================
If the time card application is not starting properly then you 
may need to configure the path to your installation of Java.


1) If you haven't done so already, download and install the time 
   card application. Also download and install the most recent 
   version of Java. You may need to have admin permissions to 
   properly install Java.

2) Once you have finished the installation there should be a 
   desktop icon for the time card application.

3) Right click on the time card desktop icon.
   a. Select "Open file location"
   b. This should open up Windows Explorer and it should 
      already be at the main directory for the time card 
      application. The directory should be similar to 
      C:\Users\<your_name>\AppData\Local\Exhedra\AccuTimeCard

4) Look for a file named TimeCard.bat.
   -If you have the file extensions hidden then look for a file 
    with the name TimeCard and a type of "Windows Batch File".

5) Right click on the batch file and select "Edit"

6) The file should open up in notepad.

7) You should see a line that starts with:
      start javaw.exe

8) Edit the line and add the path to your installation of java. 
   It will probably be one of the following:
      C:\"Program Files (x86)"\Java\jre6\bin\javaw.exe
      C:\"Program Files"\Java\jre6\bin\javaw.exe

9) So the line in the batch file should now look like this: 
      start C:\"Program Files (x86)"\Java\jre6\bin\javaw.exe 
      (don't change any of the parameters following -classpath):

10) The quotes and spaces are important. If any part of the file 
    path has spaces in it, then place that part of the path in 
    quotes. You may have to experiment a little to get this right.

11) Leave everything else in the file exactly the way it was.

12) Save the file and close notepad

13) Go back to Windows Explorer and double click on the 
    TimeCard.bat file.

14) This should start the application running.
==============================================================

C:\users\(user)\Local Settings\Application Data/Exhedta/AccuTimeCard>pause
Press any key to continue...
So, as said above, I open TimeCard.bat (located in the AccuTimeCard folder) and I have this:

Code: Select all

echo Starting AccuTimeCard
start javaw -classpath .;^
resources\jars\org.apache.log4j_1.2.13.v200706111418.jar;^
resources\jars\axis.jar;^
resources\jars\commons-discovery-0.2.jar;^
resources\jars\jaxrpc.jar;^
resources\jars\saaj.jar;^
resources\jars\wsdl4j-1.5.1.jar;^
resources\jars\JMF2_1_1e\lib\jmf.jar;^
resources\jars\forms-1.1.0.jar;^
resources\jars\lti-civil.jar;^
resources\jars\lti-civil-no_s_w_t.jar;^
resources\jars\lti-civil-noutils.jar;^
resources\jars\swt.jar;^
resources\jars\org.apache.commons.logging_1.0.4.v200706111724.jar ^
RacTimeCard

if not %ERRORLEVEL% == 0 goto HelpText
exit


:HelpText
type ReadMe_Setup.txt
pause
As I understand from the help text displayed in the console window, I have to change the Java path to an absolute path. So, I just change javaw.exe by C:\"Program Files"\Java\jre7\bin\javaw.exe (I have jre7 installed)

Code: Select all

echo Starting AccuTimeCard
start C:\"Program Files"\Java\jre7\bin\javaw.exe -classpath .;^
resources\jars\org.apache.log4j_1.2.13.v200706111418.jar;^
resources\jars\axis.jar;^
resources\jars\commons-discovery-0.2.jar;^
resources\jars\jaxrpc.jar;^
resources\jars\saaj.jar;^
resources\jars\wsdl4j-1.5.1.jar;^
resources\jars\JMF2_1_1e\lib\jmf.jar;^
resources\jars\forms-1.1.0.jar;^
resources\jars\lti-civil.jar;^
resources\jars\lti-civil-no_s_w_t.jar;^
resources\jars\lti-civil-noutils.jar;^
resources\jars\swt.jar;^
resources\jars\org.apache.commons.logging_1.0.4.v200706111724.jar ^
RacTimeCard

if not %ERRORLEVEL% == 0 goto HelpText
exit


:HelpText
type ReadMe_Setup.txt
pause
The problem is that I still get the same error when starting AccuTimeCard. It looks like the path is wrong or something. What do you think I am doing wrong? It would be great to be able to use this application on Linux.
If you want to test it, you can download AccuTimeCard from http://www.vworker.com/TimeCardServices ... _Setup.exe and Java from http://www.oracle.com/technetwork/java/ ... 37583.html (Window version, of course). Both of them will be installed correclty by WineHQ.

O.K. Thanks to everybody! :D
bmalex
Newbie
Newbie
Posts: 3
Joined: Mon Aug 27, 2012 5:07 am

Re: Run AccuTimeCard from Exhedra with WineHQ

Post by bmalex »

I think I found a solution at http://devimperium.info/linux/run_accut ... nux_12.htm.
Anyway, sometimes, when close AccuTimer, the screen goes black and the system logs off. Now, that may be a WIneHQ related issue.
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: Run AccuTimeCard from Exhedra with WineHQ

Post by dimesio »

bmalex wrote:Anyway, sometimes, when close AccuTimer, the screen goes black and the system logs off. Now, that may be a WIneHQ related issue.
That means X is crashing. Wine is a user level process and can't do that on its own, but it can trigger bugs in other things that can. Try reinstalling your graphics driver. If that doesn't help, ask your distro for help troubleshooting.
User avatar
André H.
Moderator
Moderator
Posts: 202
Joined: Sun Dec 07, 2008 8:33 am

Re: Run AccuTimeCard from Exhedra with WineHQ

Post by André H. »

Such instruction are ok to be in the forum, but users most likely find them quicker in the AppDB. So you maybe want to add the application there, become a maintainer, add it as howto.
bmalex
Newbie
Newbie
Posts: 3
Joined: Mon Aug 27, 2012 5:07 am

Re: Run AccuTimeCard from Exhedra with WineHQ

Post by bmalex »

André H. wrote:Such instruction are ok to be in the forum, but users most likely find them quicker in the AppDB. So you maybe want to add the application there, become a maintainer, add it as howto.
I will, thanks! I'm just a 2 days Linux user/developer.
Locked