• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You need to add the library to the class path. Check out https://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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic