GithubHelp home page GithubHelp logo

Unable to use CFR about cfr HOT 9 CLOSED

leibnitz27 avatar leibnitz27 commented on September 18, 2024
Unable to use CFR

from cfr.

Comments (9)

leibnitz27 avatar leibnitz27 commented on September 18, 2024

That's very odd, there's quite definitely a manifest.

Please check the jar you have matches the md5 on the website.

Also try without a jar file

lee@rick:/mnt/c/Downloads$ java -jar cfr-0.148.jar
CFR 0.148

java -jar CFRJAR.jar class_or_jar_file [method] [options]

Parameter error : Insufficient unqualified parameters - provide at least one filename.

Please specify '--help' to get option list, or '--help optionname' for specifics, eg
   --help pullcodecase
C:\Downloads>java -jar cfr-0.148.jar
CFR 0.148

java -jar CFRJAR.jar class_or_jar_file [method] [options]

Parameter error : Insufficient unqualified parameters - provide at least one filename.

Please specify '--help' to get option list, or '--help optionname' for specifics, eg
   --help pullcodecase

from cfr.

leibnitz27 avatar leibnitz27 commented on September 18, 2024

for ref : 44d5bc109860c486c8d89b58abe853d6

from cfr.

thefourtheye avatar thefourtheye commented on September 18, 2024

I tried without the jar file, the result is still the same

➜  Downloads java -jar cfr-0.148.jar
no main manifest attribute, in cfr-0.148.jar
➜  Downloads java -jar cfr-0.148.jar --help
no main manifest attribute, in cfr-0.148.jar
➜  Downloads java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (Zulu 8.40.0.25-CA-macosx) (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (Zulu 8.40.0.25-CA-macosx) (build 25.222-b10, mixed mode)
➜  Downloads

from cfr.

leibnitz27 avatar leibnitz27 commented on September 18, 2024

What is the md5 & size of the jar you have? can you please check it matches https://www.benf.org/other/cfr/cfr-0.148.jar ?

from cfr.

leibnitz27 avatar leibnitz27 commented on September 18, 2024

You should be able to see the main class in the manifest here:

lee@rick:/mnt/c/Downloads$ unzip -p cfr-0.148.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven 3.6.0
Built-By: Lee
Build-Jdk: 10.0.2
Specification-Title: cfr
Specification-Version: 0.148
Implementation-Title: cfr
Implementation-Version: 0.148
Implementation-Vendor-Id: org.benf
Main-Class: org.benf.cfr.reader.Main

from cfr.

leibnitz27 avatar leibnitz27 commented on September 18, 2024

ping @thefourtheye - tbh I suspect you have a bad jar - would be handy if you can try the above.

from cfr.

leibnitz27 avatar leibnitz27 commented on September 18, 2024

Closing as not reproducible and dead (pls reopen if you have additional info)

from cfr.

thefourtheye avatar thefourtheye commented on September 18, 2024

@leibnitz27 You were right. Looks like the jar file was not correct. I wonder how java managed to parse it.

I should have updated this thread sooner, please accept my sincere apology.

from cfr.

leibnitz27 avatar leibnitz27 commented on September 18, 2024

No problem, thanks for following up!

from cfr.

Related Issues (20)

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.