Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Shola Onibokun
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Shola Onibokun
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2953
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I used to know somebody else in computer sciences called Onibokun.
 
Shola Onibokun
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic