04-22-2017, 08:32 PM
- %HOMEDRIVE%%HOMEPATH%\.jrebel
- delete the file
jrebel.pref and jrebel.lic - and create instead a folder with the name
[b]jrebel.pref - start Java NetBeans (Eclipse, IntelliJ) or what ever you're using jrebel on.
Now jrebel should complain:
Press Ok - remove/rename the folder
'jrebel.pref'
Next time you start NetBeans you're ready to sign in for a new 14-days jrebel trial.
Tested on NB 8.1 with Jrebel 7.0.7.
Anyway that stack dump tells much about what to look for in the Java Decompilier
[b]isTrialFootstepDetected
Code:
java.io.FileNotFoundException: C:\<blah>\.jrebel\jrebel.prefs (Zugriff verweigert)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.zeroturnaround.javarebel.preferences.FileStore.toByteArray(FileStore.java:263)
at org.zeroturnaround.javarebel.preferences.FileStore.update(FileStore.java:166)
at org.zeroturnaround.javarebel.preferences.FileStore.access$100(FileStore.java:28)
at org.zeroturnaround.javarebel.preferences.FileStore$6.run(FileStore.java:124)
Caused: java.lang.RuntimeException
at org.zeroturnaround.javarebel.preferences.FileStore$6.run(FileStore.java:135)
at org.zeroturnaround.javarebel.preferences.FileStore$6.run(FileStore.java:118)
at java.security.AccessController.doPrivileged(Native Method)
at org.zeroturnaround.javarebel.preferences.FileStore.runTransaction(FileStore.java:118)
at org.zeroturnaround.javarebel.preferences.FileStore.get(FileStore.java:60)
at org.zeroturnaround.javarebel.preferences.PreferencesBridge.getBytes(PreferencesBridge.java:129)
at org.zeroturnaround.javarebel.preferences.PreferencesBridge.get(PreferencesBridge.java:115)
at org.zeroturnaround.javarebel.preferences.PreferencesBridge.get(PreferencesBridge.java:124)
at com.zeroturnaround.javarebel.bf.c(JRebel:173)
at com.zeroturnaround.javarebel.SDKLicensingImpl.wasEvalHere(JRebel:227)
at org.zeroturnaround.jrebel.client.licensing.JRebelLicensingCLI.isTrialFootstepDetected(JRebelLicensingCLI.java:251)
at org.zeroturnaround.jrebel.client.licensing.JRebelLicensing.isTrialFootstepDetected(JRebelLicensing.java:123)
at org.zeroturnaround.jrebel.ide.common.utils.LicenseUtils.hasFootstepOfTrial(LicenseUtils.java:59)
Btw a glace on jrebel,jar in JD (Jave Decompiler) shows that this cryptic 'com.zeroturnaround.javarebel.bf.c' tries some ".get("evalString", null)" on the file and gets 'surprised' by some unexpected exception.