Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-01

Any use notes for javapp

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jon Foster

So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool?

- Jon

Jon Foster JF Possibilities, Inc.

Reply by email

Jonas Maebe
to Jon Foster
Jon Foster wrote
So does anyone have any hints, tips, use notes, instructions, ... for how to use the "javapp" tool?

I had accidentally disabled my subscription when you sent your previous question about this. At first sight, the problem is that javapp does not work right now if the classes are not packed in a jar. Can you try putting everything in a jar and trying again?

Also note that javapp is based on javap from JRE 1.6, so if you use classes compiled for later JRE versions, you may get errors.

Jonas

Reply by email

Jon Foster
to Jonas Maebe
Jonas Maebe wrote 11 lines
On 27/01/17 02:34, Jon Foster wrote: > So does anyone have any hints, tips, use notes, instructions, ... for > how to use the "javapp" tool? I had accidentally disabled my subscription when you sent your previous question about this. At first sight, the problem is that javapp does not work right now if the classes are not packed in a jar. Can you try putting everything in a jar and trying again? Also note that javapp is based on javap from JRE 1.6, so if you use classes compiled for later JRE versions, you may get errors.

Thanks Jonas!

I used "javac" to compile a file and "jar" to put it in a jar and passed the jar to javapp via the "-classpath" switch and I'm now getting a set of files with the expected output. Thanks for the help!

I was thinking to use "javapp" to convert an Android "aapt" generated "R.java" file into a "resources.pas" file but its way too verbose... I think I'll just whip up a pas program to perform some simple string transforms on the R.java file.

THX - Jon

Jon Foster JF Possibilities, Inc.

Reply by email