tinyMediaManager-5.0.4激活遇到的问题及解决方法

Debug调试了一下tinyMediaManager-5.0.4版本的启动,始皇之前tinyMediaManager4.x版本的power配置和激活码都是对的,RSA验证都通过了,最后发现是5.x新版本启动时把-javaagent参数给抹掉了,没有完全按照launcher.yml里的参数进行设置,而且还强制增加了下面两个参数:

-XX:+DisableAttachMechanism -XX:-EnableDynamicAgentLoading

解决办法:

方法一:

简单写个shell脚本,用自己的java参数命令启动

#/bin/bash
cd /Applications/tinyMediaManager.app/Contents/Resources/Java/
./jre/bin/java -Xms64m -Xmx512m -Xss512k \
  -XX:+IgnoreUnrecognizedVMOptions \
  -XX:+UseG1GC \
  -XX:+UseStringDeduplication \
  -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine \
  -Djava.net.preferIPv4Stack=true \
  -Dfile.encoding=UTF-8 \
  -Dsun.jnu.encoding=UTF-8 \
  -Djna.nosys=true \
  -Dtmm.consoleloglevel=INFO \
  -Dapple.awt.graphics.UseQuartz=true \
  -Xdock:name=tinyMediaManager \
  -Dapple.awt.application.name=tinyMediaManager \
  -Dapple.awt.application.appearance=system \
  -Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS \
  --add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
  --add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED \
  -javaagent:/xxx/ja-netfilter.jar \
  #-Dtmm.contentfolder="/Users/xxx/Library/Application Support/tinyMediaManager" \
  -classpath "tmm.jar:./lib/*" org.tinymediamanager.TinyMediaManager

方法二:

直接把启动程序/Applications/tinyMediaManager.app/Contents/MacOS/tinyMediaManager换成4.x版本的,主程序都是java的,功能上感觉应该影响不大

20 个赞

收藏关注,要用的时候来看看

好滴

试了不行。

jetbra 240218版本

激活码: ```
LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQoKbmFtZT1uZW8KdmFsaWRVbnRpbD0yMDk5LTEyLTMxCndlYnNpdGU9aHR0cHM6Ly96aGlsZS5pbwotLS0tLUJFR0lOIFBHUCBTSUdOQVRVUkUtLS0tLQoKd3NCY0JBQUJDQUFRQlFKZlJtOWpDUkR6ZW9adU9nVVluUUFBVmtvSUFFUmVaNlBwM1NpbVlLYkgrSkh6d1c4cQpMaVdlUUlQTmF0RndEUUhnRDRpcFQ5YVhNYU9iblhYbDgzS1VRNWxQeDhCdzc3QnhQYXJwVWJ0Q1JOVHJXb1U1ClhaMWlrZnF6bWVWRUpyazRZc05LRGlCcHZqYnlGODZGOEtTa1hod2RMV1NtMWU2eWVtblhLY1RIZzJMMTNBaVMKNlRJcVhYYmNSbUZGN1JUTzREUXJqaXJhMllZbFc4ZUhQSWNDbU9xMFlqUjRRcHorUi8rM0JsZlYyVEFjTC9zZApTZUtBY3pndmRQNkNTNmJlMXJQQTBubGd3OVQ4NTNCcGdxcGxRVk0zMHBVaFZsbmk3Z2ExWVJ6RU5tNlFpYzVBCnVFYm1QeXVuaW0yV0h5dFB1TFFxK0JRdkFxK1dycjJraU03RGh5dllGaWhETmRGV1c2N1krZlNsZ1B4T2kvOD0KPVFLcGMKLS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0t

哪种方法启动的?看下应用目录里的data文件夹有没有tmm.lic文件,第一种方法里的-Dtmm.contentfolder参数可以去掉。

噢 原来已经成功了。

显示了注册版本。 就是粘贴注册码进去提示无效

并且需要pro才能用的刮削器依旧不能用0.0

Java下面没有data和cache目录噢

5.x版本第一次注册时会有个无效提示,文件保存进去实际是成功的。如果是从旧版本迁移过来的数据,就没这个问题了。

刮削器多点几次,会成功的,偶尔会报错,不知道是注册的问题还是软件就是不稳定



I have been messing with TMM and this idea for a while and finally got it working on Windows.

install both v4 and v5.
C:\Users\<USER>\AppData\Local\Programs\tinyMediaManagerV5 belongs to v5 and
C:\Users\<USER>\AppData\Local\Programs\tinyMediaManager belongs to v4

activate v4 with the following method: Power插件应用:搞定tinyMediaManager – 知了

then to activate v5,
Edit launcher.yml In the folder of v4 and replace classpath with:

classpath:
  - /../tinyMediaManagerV5/tmm.jar
  - /../tinyMediaManagerV5/lib/*
  - /../tinyMediaManagerV5/addons/*
Full launcher.yml
javaHome: jre
mainClass: org.tinymediamanager.TinyMediaManager
classpath:
  - /../tinyMediaManagerV5/tmm.jar
  - /../tinyMediaManagerV5/lib/*
  - /../tinyMediaManagerV5/addons/*
jvmOpts:
  - '-Xms64m'
  - '-Xmx512m'
  - '-Xss512k'
  - '-XX:+IgnoreUnrecognizedVMOptions'
  - '-XX:+UseG1GC'
  - '-XX:+UseStringDeduplication'
  - '-Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine'
  - '-splash:splashscreen.png'
  - '-Djava.net.preferIPv4Stack=true'
  - '-Dfile.encoding=UTF-8'
  - '-Dsun.jnu.encoding=UTF-8'
  - '-Djna.nosys=true'
  - '-Dtmm.consoleloglevel=NONE'
  - '[macos] -Dapple.awt.graphics.UseQuartz=true'
  - '[macos] -Xdock:name=tinyMediaManager'
  - '[macos] -Dapple.eawt.quitStrategy=CLOSE_ALL_WINDOWS'
  - '[linux] -Dawt.useSystemAAFontSettings=on'
  - '[linux] -Dswing.aatext=true'
env:
  - '[macos] LC_ALL=en_US.UTF-8'

That’s it. Now by opening C:\Users\<USER>\AppData\Local\Programs\tinyMediaManager\tinyMediaManager.exe it will open v5 as licensed.

However, I am not sure if this method guarantees that you get all the changes and advantages of v5

1 个赞

确实如您所说,不确定是否有v5版本全部的功能,但是因为要支持跨平台,所有主程序都是java代码开发的,我直接用java命令的方式启动,使用上都是正常的,所以理论上功能是全的。exe应该只是个外壳启动程序。

Indeed as you said, not sure if it has all the features of the v5 version, but it is support cross-platform, all the main programs are developed in java code, and since I start it directly by means of java commands, and it’s all working fine in terms of usage, it’s theoretically full-featured. the exe should just be a shell launcher.

Mark

输入注册码,显示输入了无效的许可证代码,但是又成功了。下次重新打开又要重新注册是什么原因?

应该召唤一下佬

是用方法二,重启再打开注册信息就掉了。你这个有这个现象吗?是用 4.3.16 版本/Applications/tinyMediaManager.app/Contents/MacOS/tinyMediaManager 覆盖 5.0.9 可以启动进入,但是重启之后注册信息就掉了。你有这个现象吗?

From 软件开发 to 开发调优

没有 已解决

这个软件有几个月没有用了,刚刚打开看了一下,注册还在,没有掉