public license(String s, int i, int j, int k, int l, int i1, int j1)
{
say("HACK licence:" + s + ":" + i + ":" + j + ":" + k + ":" + l + ":" + i1 + ":" + j1);
}
public int checkout(int i, String s, String s1, int j, String s2)
{
say("HACK checkout:" + i + ":" + s + ":" + s1 + ":" + j + ":" + s2);
return 0;
}
public void checkin()
{
say("HACK checkin: last");
}
public int heartbeat(int ai[], int i)
{
say("HACK hartbeat: ok");
return 0;
}
public boolean ok()
{
say("HACK ok: ok");
return true;
}
public String get_errstring()
{
return null;
}
public String warning()
{
return null;
}
public int get_major_errcode()
{
return 0;
}
public int get_minor_errcode()
{
return 0;
}
public String getUsername()
{
return "JavaUser";
}
public String getHostname()
{
return "JavaHost";
}
To patch Togethersoft "Together Control Center 6.0" do the following:
0. download http://downloads.togethersoft.com/1968v9/windows/vm/together_1968v9.exe
1. compile this file and will create "flexlm\license.class"
2. Copy TGH\lib\together.jar to TGH\lib\together.jar.original
3. Open TGH\lib\together.jar in WINZIP
4. Select "flexlm" directory and drag-n-drop it in winzip window
This will add the file flexlm\license.class to the together.jar
5. Modify TGH\config\flexlm.config to point to a license server "localhost"
and the feature TogetherControlCenterFloating
6. Modify TGH\config\server.config to enable flexlm
license.use_flexlm = true
7. Start together.exe, together.bat, together.sh
8. If the program gives an error that it cannot find a license/license manager
then it means that the patch was not installed correctly and together.jar does
not contain now the flexlm\license.class file as well.
Note that a another version different from 6.0 may not work with this fix.
For the enthusiast the patch works by replacing the class that calls into the
license manager, flexlm server in this case. It modifies all the methods that
connecto to the server and do checks to return the OK result. You can start
the program from together.bat file to see messages printed on the console when
the license checks are performed.
Have amy question please E-mail:lu_xiangdong(at)hotmail.com