-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error on compile #251
Comments
Hello 63 is java 19. The straightforward fix shoudl be t run JRD in jdk19. What JRD are you using? On what os? java_home will not work, but JAVA_HOME will. Thanx! |
Hello! Have it helped? Main number in this process is bytecode level version. During build, you can affect the output bytecode by -source/-target javac swithces. If not used, the bytecode level of compiling JVM is used If JRD is operating in foreign JVM (where your application is running) it always checks the bytecode level of classes it works with. And is enforcing it. You can manually override it, but if you are njecting freshly compiled code to the running vm, it is bad idea - if class bytecode level is different then original, hotswap fails. Now consier, that both JRD's JVM and target application JVM must understand the bytecode it operates. Usually the process is that JRD is run in same or newer JVM then target. If JRD is running in older VM, it can obtain bytecode it do not understand, or it can not compile into, which seems to be case you are hitting |
no i still have some problem. i compile both targets with jdk 17 fastdebug then run the JRD with jdk 19
error:
|
Now, note, that this is clean "install" using config from untarred location, which may meter.
Which is conencted to the inner class in decompiled file, to the method createUI. But that is different topic. For simpolicity, lets replace
If I edit this code, and comple and upload, the changes are visible. Note, that the changes takes effect, onloy if JVM reads the redefinition of the class (which nearly always, eg for sure when new is called). So in this example, if I change String in Now very major hint. When I was clicking
This is what I guess happened to you. You can fix it by selecting the Two questions to you remain:
I will be happy to help there, But I'm missing some crucial part somwhere. |
Just for record the second exmaple:
Yet again, I see JRD's window with HelloWorld process, which after click contains HelloWorld class, which shows bold 17 when clicked, and which can be edited and compiel dand uploaded right from the box. In cli, it would be:
...edit, compile (JRD's cli compiler have issues with default package (yet again something to fix I guess...)
Yet again, If I unselect the
hth |
I realized I' may be on wrong track. You have already compile issue with wrong bytecode. I was able to reproduce your failure by swapping the compile+runtime with jrd's runtimes:
In that case I got
for compilation, where I had to provide code, as there was nothing decompiled. Can you confirm? |
i really appreciate your sincere attention to my problem. regards. |
hi again. but the UI sample is getting even weirder.
i don't have a clue!!! i tried every jdk combinations. |
I'm starting to be blind. I need really precise steps how to reproduce, otherwise I will just continue to be "cooking from water" as I did until now. But the issues were at least similar to issues I already encoutnered in past, so I was trying to deduct and wrota up what I could.
I do - the #251 (comment) had same trace.
On linux, you can run star.sh as |
i built a executable test jar with jdk 17
java_home is also set
i run my test app and attach the JRD to it.
when i try to recompile i get:
java.lang.IllegalArgumentException: Unsupported class file major version 63 Attempt to compile failed with - java.lang.IllegalArgumentException: Unsupported class file major version 63, you may close dialog
any tips on how to fix this?!
The text was updated successfully, but these errors were encountered: