Git Product home page Git Product logo

Comments (7)

mopemope avatar mopemope commented on August 18, 2024

I tried build jar, but couldn't reproduce it.
Please check your MANIFEST.MF.

from meghanada-server.

sandric avatar sandric commented on August 18, 2024

@mopemope Hm I don't see any MANIFEST.MF in my local directory, only Manifest.param file. Can you tell me where should I look for it please?

from meghanada-server.

mopemope avatar mopemope commented on August 18, 2024

Please try again shadowJar

./gradlew clean shadowJar

And check following file.

./build/tmp/shadowJar/MANIFEST.MF

from meghanada-server.

sandric avatar sandric commented on August 18, 2024

@mopemope Ok, I recompiled and here's MANIFEST.MF file:

sandric@sandric-mac ~/meghanada-server> cat build/tmp/shadowJar/MANIFEST.MF
Manifest-Version: 1.0
Date: 2016-09-08T16:44:47+0300
Version: 0.1.0-620444b
Main-Class: meghanada.Main

from meghanada-server.

ejemba avatar ejemba commented on August 18, 2024

@mopemope Hi , I have the same issue.
I'm running on linux archlinux.
My manifest looks fine

Manifest-Version: 1.0
Date: 2016-09-09T09:58:49+0900
Version: 0.1.0-f5d3113
Main-Class: meghanada.Main

My java version

java -version 
openjdk version "1.8.0_102"
OpenJDK Runtime Environment (build 1.8.0_102-b14)
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)

The error

java -jar ~/.meghanada/meghanada.jar --help
Exception in thread "main" java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:459)
    at java.util.Properties.setProperty(Properties.java:166)
    at java.lang.System.setProperty(System.java:796)
    at meghanada.Main.main(Main.java:35)

from meghanada-server.

mopemope avatar mopemope commented on August 18, 2024

@ejemba @sandric Hmm. I can't reproduce it ...
Do you use gradle wrapper ?

from meghanada-server.

ejemba avatar ejemba commented on August 18, 2024

@mopemope yes I used gradle wrapper.
I identified the problem I think, with our configuration.

https://github.com/mopemope/meghanada-server/blob/master/src/main/java/meghanada/Main.java#L30

return mainAttributes.getValue("Version");

does return null rather what we found in the Manifest.Mf

I was wondering if the correct key to use shouldn't be : Attributes.Name.MANIFEST_VERSION rather than "Version" ?

from meghanada-server.

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.