I am trying to use a java extension package (javax.swing) so I can import the JOptionPane GUI. The compiler doesn't locate it and I've tried changing the path to directories where I have all the libraries. I am not sure how to search for it since it doesn't have a standard file format (javax.swing.JOptionPane). Any suggetions? "Give up" is not acceptable SS
Tom Ben
Ranch Hand
Joined: Aug 17, 2001
Posts: 109
posted
0
How are you trying to access it in your code? Can you paste a copy of your program or atleast the portion that you are having an issue with?
Originally posted by Shawn Stroud: I am trying to use a java extension package (javax.swing) so I can import the JOptionPane GUI. The compiler doesn't locate it and I've tried changing the path to directories where I have all the libraries. I am not sure how to search for it since it doesn't have a standard file format (javax.swing.JOptionPane). Any suggetions? "Give up" is not acceptable SS
------------------ Sun Certified Programmer on the Java 2 Platform
Sun Certified Programmer on the Java 2 Platform
Shawn Stroud
Greenhorn
Joined: Dec 12, 2001
Posts: 3
posted
0
The code for my JOptionPane looks like this - doesn't seem complicated. I've compiled at the C prompt before but not using swing package. import javax.swing.JOptionPane; public class Analysis {public static void main ( String args [] ) {int attempts = 0, goalsmissed=0, player=1 result; String input, output;
Tom Ben
Ranch Hand
Joined: Aug 17, 2001
Posts: 109
posted
0
I created and compiled a class ok with just importing the JOptionPane. What version of the jdk are you using?
Originally posted by Shawn Stroud: The code for my JOptionPane looks like this - doesn't seem complicated. I've compiled at the C prompt before but not using swing package. import javax.swing.JOptionPane; public class Analysis {public static void main ( String args [] ) {int attempts = 0, goalsmissed=0, player=1 result; String input, output;
Shawn Stroud
Greenhorn
Joined: Dec 12, 2001
Posts: 3
posted
0
Im using 1.3.1 and also have the Java2 platform. I have classes and libraries in the following directories: C:\CoreJava C:\InstantJavaBook C:\JavaByExampleBook C:\JDK1.3.1 C:\JustJavaBook ALL that and I can't find javax.swing!... Shawn