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...
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
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
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!