#Intellij jar decompiler code#
Public class Person extends implements scala. Sometimes its necessary to see the Java source code corresponding to a. If you compile that file with scalac, you can disassemble the resulting class file into its signature using javap, like this: The most notable change in the new build is a built-in decompiler for Java classes. If you haven’t, it’s a perfect time to do so now. If you’ve already joined IntelliJ IDEA 14 EAP, grab the freshly baked build that we published just now. JD is provided as a GUI tool as well as in the form of plug-ins for the Eclipse and IntelliJ IDEA integ. IntelliJ IDEA 14 EAP 138.1029 is out with a built-in Java decompiler. For example, assume that you’ve created a file named Person.scala that contains the following source code:Ĭlass Person (var name: String, var age: Int) JD is a Decompiler for the Java programming language. Using javapīecause your Scala source code files are compiled into regular Java class files, you can use the javap command to disassemble them.
This is Recipe 14.6, “How to disassemble and decompile Scala code.” Problem This is an excerpt from the Scala Cookbook (partially modified for the internet). If you have a Gradle project, use Gradle to create and run the JAR file. To run a Java application packaged in a JAR, IntelliJ IDEA allows you to create a dedicated run configuration.