How to convert a folder into jar file




















Show 1 more comment. Active Oldest Votes. Improve this answer. Sugoi Reed Sugoi Reed 3 3 silver badges 3 3 bronze badges. Add a comment. Original answer before OP clarified: Is there something wrong with: jar cf my-application. Community Bot 1 1 1 silver badge. Jason C Jason C No need for a search; just click the tutorial link in my post! I need to turn a folder into a jar file, not manually though, i need to do it using code, as i am making an installer for a modification i made to the jar.

So make your code run jar cf output. Virtually every language I know of that has the capability to automate an installation also has the capability to run a command line tool. JasonC: jar comes with the JDK. Most people don't have the JDK installed. Only the JRE. Fortunately, the standard Java API has support for zip and jar files manipulation.

Show 2 more comments. Then open the cmd in current folder directory type "mv foldername. Dici VijayVishnu VijayVishnu 1 1 gold badge 11 11 silver badges 33 33 bronze badges. CGK 2, 20 20 silver badges 24 24 bronze badges. Rahul Gupta Rahul Gupta 21 1 1 bronze badge. Following command worked for me in Windows 10 and jdk-8u jar cf my-application. I would recommend Convert zip to jar I hope it helps. I hope this helps.

Codemaster Codemaster 1 1 1 bronze badge. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Article Summary. Part 1. Make sure that you have the Java Developer's Kit installed.

If you don't have the JDK installed on your computer, download and install it on your Windows or Mac computer before continuing. Open the Eclipse website. If you already have Eclipse installed on your computer, skip to the next part. It's a teal button near the top of the page. This orange button is near the top of the following page. Doing so will prompt Eclipse to download to your computer. Wait for Eclipse to finish downloading.

The download may take a few minutes. Install the Eclipse installer. To do so: Windows - Double-click the Eclipse setup file, then click Yes when prompted. Open the Eclipse installer. Double-click the purple Eclipse icon when it appears. This will open the Eclipse installer. If so, skip ahead to the "Click Browse " step. It's the top option in the Eclipse installer.

This yellow button is near the bottom of the page. Doing so will prompt Eclipse to begin installing onto your computer. You can first change the installation folder by clicking the folder icon to the right of the "Installation Folder" field and then selecting a specific folder on your computer.

This green button is at the bottom of the installer window. Clicking it will open Eclipse. Click Browse…. It's on the right side of the window. Select a workspace folder. Click a folder that you want to use on the left side of the screen. This is where your Eclipse project files will be stored. Click Select Folder. It's in the bottom-right corner of the window. Click Launch.

You'll find this at the bottom of the window. Eclipse's main page will open. Part 2. Place all of your files in one folder. The files that you want to bundle into your JAR file all have to be in the same folder before you can continue.

Click File. Now all I need to do is change the folder back into a. How would I do this? Jar files are almost zip files in most cases, but I would use the jar cf command for best results. You could just use OS X compression and then rename the zip file as. It's hard to tell without the exact files in hand. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. How do I turn a folder into a. Ask Question. Asked 9 years ago. Active 7 years ago. Viewed 63k times. Improve this question.



0コメント

  • 1000 / 1000