Git Product home page Git Product logo

Comments (2)

rhaley-starfish avatar rhaley-starfish commented on July 30, 2024 1

Hi Russ,
thanks to you for helpìng to improve JavaPackager!

Shouldn't the main class be com.starfishmedical.sfdq.app.SfdqGui instead of com.company1.app.SfdqGui? (I don't know if you tried to anonymize your message, and your class name is right)

Ha ha! You are correct on both accounts. The class name was incorrect in the pom file and I tried and failed completely to anonymize my message. I knew I was going to stuff that up.

Although the failure is another, you don't have to directly run the executable JAR (SmartCableTool-0.1.13-SNAPSHOT-runnable.jar) from the target directory:

C:\Users\rhaley.SPE\starfish\Sfdq_Java_App_39789\target> java -jar .\SmartCableTool-0.1.13-SNAPSHOT-runnable.jar

because it will look for dependencies in the libs directory, which is not there, but in the generated target\SmartCableTool directory. This directory contains your application as it will be installed on the client. Anyway, you can copy or move the runnable JAR to this folder (target\SmartCableTool) and run it from there.

If a wrong class name is not the problem, you can change headerType property to console and it will print any message when running your EXE (target\SmartCableTool\SmartCableTool.exe). Maybe this will give us some clue.

That's great advice. Perhaps that tidbit could be added to the headerType configuration description in docs/windows-specific-properties.md?

Thank you for your time, your patience in solving my self-inflicted errors is greatly appreciated.

from javapackager.

fvarrui avatar fvarrui commented on July 30, 2024

Hi Russ,
thanks to you for helpìng to improve JavaPackager!

Shouldn't the main class be com.starfishmedical.sfdq.app.SfdqGui instead of com.company1.app.SfdqGui? (I don't know if you tried to anonymize your message, and your class name is right)

Although the failure is another, you don't have to directly run the executable JAR (SmartCableTool-0.1.13-SNAPSHOT-runnable.jar) from the target directory:

C:\Users\rhaley.SPE\starfish\Sfdq_Java_App_39789\target> java -jar .\SmartCableTool-0.1.13-SNAPSHOT-runnable.jar

because it will look for dependencies in the libs directory, which is not there, but in the generated target\SmartCableTool directory. This directory contains your application as it will be installed on the client. Anyway, you can copy or move the runnable JAR to this folder (target\SmartCableTool) and run it from there.

If a wrong class name is not the problem, you can change headerType property to console and it will print any message when running your EXE (target\SmartCableTool\SmartCableTool.exe). Maybe this will give us some clue.

from javapackager.

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.