aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Where do I put my downloaded class libraries so that I may be able to import them. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Where do I put my downloaded class libraries so that I may be able to import them." Watch "Where do I put my downloaded class libraries so that I may be able to import them." New topic
Author

Where do I put my downloaded class libraries so that I may be able to import them.

Shola Onibokun
Greenhorn

Joined: Mar 11, 2013
Posts: 3
I have got to a point in my program where I have to consult other java programmers from around the world. I found out a solution to my problem which is "How to use text to speech in Java". I download the source code bt I dont know where to place these codes in other for me to be able to import the class libraries. Please can someone tell where to put the class libraries on my local disk? I'm using Windows XP to run my Netbeans software.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Welcome to the Ranch.

You need to add the library to the class path. Check out https://www.coderanch.com/how-to/java/HowToSetTheClasspath

Shola Onibokun wrote:I download the source code...

THe JVM requires the class files and not the java (source). Typically the class files will be packaged in a jar file and you need to add this jar to the classpath. If you do not have such a jar, please consult the original side where you downloaded the source code.

On a side note, I have edited your post for the bold text. Please KeepItDown (<= Please click this link for more information)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Shola Onibokun
Greenhorn

Joined: Mar 11, 2013
Posts: 3
Thank you all for the assistance in bringing up my Programming.
However I have some more questions which I will like to ask one after the other. I just got the idea of using my own designed jDialog boxes as Joptionpane in my jFrame form. The problem is that I was unable to retrieve information from the dialog box. Another problem is that I tried to close the jFrame form through the click event of a JButton but i found it difficult to do.
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2318
    
  49
I just got the idea of using my own designed jDialog boxes as Joptionpane in my jFrame form. The problem is that I was unable to retrieve information from the dialog box.

Can you provide an SSCCE so we can see what you mean.

Another problem is that I tried to close the jFrame form through the click event of a JButton but i found it difficult to do.

You would normally only have one JFrame in an application, any other windows you want to open would be JDialogs.
To close either type of window call setVisible(false) and then possibly dispose() to free up resources.
Again though without code it's hard for us to know what/where your problem is.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Welcome to the Ranch

I used to know somebody else in computer sciences called Onibokun.
Shola Onibokun
Greenhorn

Joined: Mar 11, 2013
Posts: 3
Yeah. There may be one of my family members who resides on the website. Moreso,to my humble adminstrator, I will post the code I'm talking abou later.
Thanks.
 
Consider Paul's rocket mass heater.
 
subject: Where do I put my downloaded class libraries so that I may be able to import them.