Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Gradle
.gradle/
build/
myj2c/build/
annotations/build/

# IDE files
.idea/
*.iml
*.iws

# OS-specific
.DS_Store
Thumbs.db
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,18 @@ This open source version is the official open source, open source the old versio



#### 介绍
OpenMYJ2C将编译的Java的Class字节码转换为C语言代码。交叉编译(您不用自己配置编译环境,OpenMYJ2C自动完成)可以生成Windows,Linux,Mac系统X86,ARM平台的动态链接库文件后,通过Java Native Interface 重新链接到原始程序。在此过程结束时,包含原始方法的.class文件的字节码中不会保留原始方法的信息。
#### introduce
OpenMYJ2C converts compiled Java class bytecode into C code. Cross-compilation (OpenMYJ2C automatically performs this for you, without configuring the compilation environment) generates dynamic link libraries for Windows, Linux, Mac, X86, and ARM platforms, which are then relinked to the original program via the Java Native Interface. At the end of this process, the bytecode of the .class files containing the original methods no longer retains the original method information.



编译前
Before compilation
```
public class App {
public static void main(String args[]) {
System.out.println("Hello, world!");
}
}
```
编译后
After compilation

```
public class App {
Expand Down
10 changes: 5 additions & 5 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Empty file modified gradlew
100644 → 100755
Empty file.
Loading