English 中文(简体)
how to use java jar in c/c++?
原标题:
  • 时间:2009-11-30 03:35:53
  •  标签:
  • swing
  • jar
  • exe

i am a new developer of java swing. i want to pack the GUI program. With the help of neatbeans, i get a file of java jar. But i want to convert the jar to exe file, although i know exe4j, but i need the exe file include the jar and other files. Maybe using jar in c/c++ is a solution ?

问题回答

Are those "other files" just data used by the Java app? If so then you can just include them in the JAR. If you have other executables written in some non-Java language then you might need some other sort of packaging solution.

A JAR file is basically the same as a ZIP file. You can see inside it and edit it easily by renaming its extension to .ZIP and opening it with any program that deals with ZIP files (e.g. 7-zip, or the basic filesystem window on most modern OSes). There are JAR-specific tools but I prefer to just use standard ZIP tools. (Change the extension back to .JAR when you re done, of course.)

The JAR is just a compressed form of the directory structure that you need to run your Java app, plus a Manifest file to give information about what s inside.





相关问题
auto abbreviating JLabel

Anyone written a JLabel (extension/util/??) that automatically abbreviates the contents depending on it s preferred/visible size? much appreciated.

how can install swing/matisse on eclipse?

i tried this link: http://downloads.myeclipseide.com/downloads/products/eworkbench/discovery-6.0/ but i m fail how is this?

Java JTextField with input hint

I would like to add a hint value to my javax.swing.JTextField. It should look like Firefox rendering of <input type="text" title="bla">. This creates an edit field with the text bla in the ...

Swing Generator

I need to develop some java gui using swing. A few years ago I did develop a bit with swing. But it was pretty exhausting, you see, back than there weren t much tools to help you. But I do believe ...

Create a ImageIcon that is the mirror of another one

I ll like to know if there is a way to create a ImageIcon that is the mirror of another ImageIcon. Searching on Google, I found how to do it by using many AWT libraries. Is there a way to do it with ...

热门标签