Git Product home page Git Product logo

classpy's People

Contributors

c19354837 avatar feifeiiiiiiiiiii avatar glavo avatar hgaol avatar yuanhao97 avatar zxh0 avatar zxh404 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

classpy's Issues

classpy 无法执行

我使用java 1.8、gradle 3.1构建的项目;当执行build/scripts/classpy文件的时候出现
Error: Could not find or load main class com.github.zxh.classpy.gui.ClasspyApp

按照quickstart方法操作完了报错

classpy HelloWorld.class
错误: 找不到或无法加载主类 com.github.zxh.classpy.gui.ClasspyApp
原因: java.lang.NoClassDefFoundError: javafx/application/Application

Not working on macOS

brew tap guxingke/repo && brew install classpy

$ java --version
java 15.0.1 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)

$ classpy hello.class
Error: Could not find or load main class com.github.zxh.classpy.gui.ClasspyApp
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

Menu font displayed incorrectly built by source

Java Environment

openjdk 15.0.2 2021-01-19
OpenJDK Runtime Environment Corretto-15.0.2.7.1 (build 15.0.2+7)
OpenJDK 64-Bit Server VM Corretto-15.0.2.7.1 (build 15.0.2+7, mixed mode, sharing)

After following the command to build and run

cd path/to/classpy
./gradlew fatJar

./gradlew run 

The GUI menu font not displayed correctly.
image

Seems like the font style is not set, after I set the scene style in ClasspyApp.java, it works.

        scene.getRoot().setStyle("-fx-font-family: 'serif'");

brew安装报错

执行 brew tap guxingke/repo && brew install classpy

Error: classpy: /usr/local/Homebrew/Library/Taps/guxingke/homebrew-repo/Formula/classpy.rb:10:@8' is not allowed as an instance variable name
/usr/local/Homebrew/Library/Taps/guxingke/homebrew-repo/Formula/classpy.rb:10: syntax error, unexpected end-of-input, expecting end
depends_on :openjdk@8
`

  1. brew doctor 检查没有错误
  2. 系统版本11.5.1

Can't work on MacOS.

When I try Command:
brew tap guxingke/repo

It shows:

==> Tapping guxingke/repo
Cloning into '/usr/local/Homebrew/Library/Taps/guxingke/homebrew-repo'...
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 44 (delta 0), reused 2 (delta 0), pack-reused 40
Unpacking objects: 100% (44/44), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/guxingke/homebrew-repo/Formula/classpy.rb
classpy: /usr/local/Homebrew/Library/Taps/guxingke/homebrew-repo/Formula/classpy.rb:10: `@8' is not allowed as an instance variable name
/usr/local/Homebrew/Library/Taps/guxingke/homebrew-repo/Formula/classpy.rb:10: syntax error, unexpected end-of-input, expecting end
depends_on :openjdk@8
^
Error: Cannot tap guxingke/repo: invalid syntax in tap!

exe

why not simplify the run operation? like a .exe

对Class文件中的Long类型解析错误

如题,Java源码如下所示:

package jvmgo.book.ch03;

public class ClassFileTest {
    
    public static final boolean FLAG = true;
    public static final byte BYTE = 123;
    public static final char X = 'X';
    public static final short SHORT = 12345;
    public static final int INT = 123456789;
    public static final long LONG = 12345678901L;
    public static final float PI = 3.14f;
    public static final double E = 2.71828;
    
    public static void main(String[] args) throws RuntimeException {
        System.out.println("Hello, World!");
    }
    
}

对于其中的public static final long LONG = 12345678901L;进行解析是,在常量池中,这个12345678901L解析出现错误。错误截图如下所示:
Snipaste_2020-05-04_17-28-36
javap -v的结果如下所示:
Snipaste_2020-05-04_17-30-20

几点用户体验上的优化建议

  1. 提前编译, 提供分发包.
  2. 提供从命令行启动的命令
  3. 提供命令行参数, 用来快速打开指定文件.

如有需要,乐意效劳.

compile failed

 ./gradlew fatJar
Downloading https://services.gradle.org/distributions/gradle-6.7-bin.zip
.........10%..........20%..........30%..........40%..........50%.........60%..........70%..........80%..........90%..........100%

Welcome to Gradle 6.7!

Here are the highlights of this release:
 - File system watching is ready for production use
 - Declare the version of Java your build requires
 - Java 15 support

For more details see https://docs.gradle.org/6.7/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.UnsupportedClassVersionError: org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
> org/openjfx/gradle/JavaFXPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 40s

build不成功

build与run都不成功,提示“程序包javafx.scene.image不存在”,是不是与我使用的是openJDK有关?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.