473,323 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

required libraries in a jar file

112 100+
i have been working on a program to generate and play chords through midi. to do this i got jfugue an awesome jar external library...i included it through jcreator and it worked great...however when i make it into a jar file it no longer works...i had this problem in another of my programs and i strongly believe ive narrowed it down to the fact the libraries i import in jcreator are not being included or not being found when i run the jar file...any help on how to fix this problem?

thanks alot ,
ken
Mar 16 '08 #1
6 1879
BigDaddyLH
1,216 Expert 1GB
i have been working on a program to generate and play chords through midi. to do this i got jfugue an awesome jar external library...i included it through jcreator and it worked great...however when i make it into a jar file it no longer works...i had this problem in another of my programs and i strongly believe ive narrowed it down to the fact the libraries i import in jcreator are not being included or not being found when i run the jar file...any help on how to fix this problem?

thanks alot ,
ken
I don't know from jcreator, but your jar file has a class-path entry in its manifest, which tells your jar where to look for library jars and what jars to look for. This Sun tutorial explains how to do it:

http://java.sun.com/docs/books/tutor...jar/index.html
Mar 17 '08 #2
drsmooth
112 100+
is there a way that the jar library could be included in my executable jar that im making? i kinda wanted this all to fit in one jar file
Mar 17 '08 #3
r035198x
13,262 8TB
is there a way that the jar library could be included in my executable jar that im making? i kinda wanted this all to fit in one jar file
Did you read the tutorial in the link above?
Mar 17 '08 #4
drsmooth
112 100+
yes but im not sure i understood how it is goin to work...should i extract the library jar into my executable jar? or shud i jus add it to the jar as a jar itself?
Mar 17 '08 #5
drsmooth
112 100+
okay, perhaps a part i overlooked...i figured it out thank you very much. turns out it was as simple as adding a line to the manifest.txt


thanks alot,
ken
Mar 17 '08 #6
r035198x
13,262 8TB
okay, perhaps a part i overlooked...i figured it out thank you very much. turns out it was as simple as adding a line to the manifest.txt


thanks alot,
ken
That's good news. I was starting to get worried ...
Mar 18 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sdhyok | last post by:
Recently, I installed many shared libraries to run a program written in Python. Now, I am in the situation to run the same program but on several different machines with the same Linux OS. To...
8
by: noid droid | last post by:
Hi. I posted yesterday asking if C# lived up to the hype. Thus far the feedback has been all positive. (Thanks.) Can anyone suggest GOOD books for learning C# and the Visual Studio .NET IDE? ...
3
by: Vico | last post by:
Hi! I have a windows forms application and , what I basically do is: 1.- Instanciate a DataSet. 2.- Instanciate a XMlDataDocument attaching the DataSet to it. 3.- Load XmlDataDocument with a...
0
by: Nikki Locke | last post by:
Archive-name: C++-faq/libraries/part1 Comp-lang-c++-archive-name: C++-faq/libraries/part1 Available C++ Libraries FAQ =========================== Introduction ~~~~~~~~~~~~ Dos and don'ts -...
5
by: SnaiL | last post by:
I've try to compile simple program which uses boost::program_options and got error like this: LINK : fatal error LNK1104: cannot open file 'libboost_program_options-vc7-mt-s-1_32.lib' I was...
11
by: Saurabh | last post by:
Hi all, I want to know why do we use libraries(static or shared). We can perform that work by including header files too.I also wish to know what exactly is linking and loading. i know these...
3
by: Fernando Chilvarguer | last post by:
Hello! I created a Class Library project in VS2005. Then, using VS, I was able to add a connection string to the project settings, which automaticaly created an app.config file for me. If I try...
6
by: saleemahmad70 | last post by:
Hi.. I am stuck with a problem where I need to extract some information from a File in C++.e.g File size,date of creation, Location on the Disk etc. I haven't been able to find any particular...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.