Coder Social home page Coder Social logo

Create a manifest file about iso8583 HOT 14 OPEN

adelbs avatar adelbs commented on July 20, 2024
Create a manifest file

from iso8583.

Comments (14)

adelbs avatar adelbs commented on July 20, 2024

To execute the jar file, run this command:

java -cp ./Adelbs-ISO8583-1.1.1.jar org.adelbs.iso8583.Main

I'll create the manifest as soon as possible.

from iso8583.

bastet77 avatar bastet77 commented on July 20, 2024

from iso8583.

adelbs avatar adelbs commented on July 20, 2024

Hi Ed!

What JDK version did you use to compile it?
What java -version are you using to run it?
What is your operating system?

This line refers to this code:

setIconImage(Toolkit.getDefaultToolkit().getImage(Main.class.getResource("/org/adelbs/iso8583/resource/package.png")));

So, check if inside the generated jar file there is this image: /org/adelbs/iso8583/resource/package.png

If not, there is something wrong with the build.

from iso8583.

bastet77 avatar bastet77 commented on July 20, 2024

from iso8583.

ab4cus avatar ab4cus commented on July 20, 2024

Hi Adelbs

I could already compile with the version of java 1.8 on my Mac osx 10.13.6

> Schmuckes-MacBook-Pro:target schmucke$ java -version
> java version "1.8.0_202"
> Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
> Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
> 

but I had the same error

> Schmuckes-MacBook-Pro:target schmucke$ java -cp ./Adelbs-ISO8583-1.1.1.jar org.adelbs.iso8583.Main
> Exception in thread "main" java.lang.NullPointerException
> 	at sun.awt.SunToolkit.imageCached(SunToolkit.java:899)
> 	at sun.lwawt.macosx.LWCToolkit.getImage(LWCToolkit.java:549)
> 	at org.adelbs.iso8583.Main.<init>(Main.java:50)
> 	at org.adelbs.iso8583.Main.main(Main.java:25)

from iso8583.

ab4cus avatar ab4cus commented on July 20, 2024

verifying and the jar is missing the entire resource folder, unload it, copy the folder and repackage it and it works, something must be missing in the maven

from iso8583.

bastet77 avatar bastet77 commented on July 20, 2024

Hi,
What commands did you use to unload and reload a jar file. I tried to add the file to the jar using zip but then when I executed the java command I got....

c:\ISO8583\ISO8583-master\target>java -cp ./Adelbs-ISO8583-1.1.1.jar org.adelbs.iso8583.Main
Error: Could not find or load main class org.adelbs.iso8583.Main

Clearly I have done something wrong.

from iso8583.

ab4cus avatar ab4cus commented on July 20, 2024

Hi,
use the jar tool to unpack and package, the zip compress and decompress it is not correct.

https://docs.oracle.com/javase/tutorial/deployment/jar/unpack.html

from iso8583.

bastet77 avatar bastet77 commented on July 20, 2024

from iso8583.

bastet77 avatar bastet77 commented on July 20, 2024

from iso8583.

tzifudzi avatar tzifudzi commented on July 20, 2024

Applied @ab4cus suggested fix and managed to succesfuly run the project.

@adelbs May I please take up this issue so I can provide a permanent fix? If so please assign the issue to me.

from iso8583.

 avatar commented on July 20, 2024

@adelbs please accept the pull request, so the issue will be fixed, public still experiencing this issue

from iso8583.

TorgeirFladby avatar TorgeirFladby commented on July 20, 2024

Hi,

Given that no fix has yet been issued, would it be possible to get an explanation on:

  1. The path of the "resources" folder and the path to the destination folder where it should be copied
  2. Intructions on how to correctly repackage the updated repository.

Thank you in advance. :)

Br,

from iso8583.

tiagoms1 avatar tiagoms1 commented on July 20, 2024

Are you guys still having the problem? From here what I did was to use the maven package on eclipse and also to have the JDK instead of the JRE. Please let us know here before we close the issue.

from iso8583.

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.