• Post Reply Bookmark Topic Watch Topic
  • New Topic

Class Not Found Exception in Jrun intall on rh8 for javax.swing.JDialog  RSS feed

 
Greg Neef
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In trying to install Jrun, the installer is getting the the above mentioned class not found exception for javax.swing.JDialog.
In looking in my Sun 1.4.2 SDK installation this class is not in my ../lib/tools.jar and nor in my ../dt.jar/javax/swing folder. It source is in the source.jar however and in trying to compile it I learned that that JDialog is depreciated.
This problem is apparently consistant for RH 8/9 and Jrun and I have not found any threads indicating anyone found the answer. Anyone have any suggestions?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDialog is not deprecated. The class file (like all the Java API classes) is in JAVA_HOME/jre/lib/rt.jar .
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, Ernest is right... JDialog isn't deprecated.

You might want to look at your path (and run java -version) to make sure that you are running the version of Java you think you're running. I'm not sure about the newer versions of Red Hat, but I know earlier versions came with Kaffe, an open source version of Java 1.1 (which doesn't have Swing, and thus wouldn't find JDialog). When you installed the Sun JDK, you'd have to update your path to make sure you are running the newer JVM.
 
Greg Neef
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
etc/profile has:
JAVA_HOME=/opt/j2sdk_nb/j2sdk1.4.2
JRE_HOME=/usr/local/blackdown_jre/j2re1.4.1
(I am using blackdown's jre to get the java plugin working with Mozilla Firebird)
$ java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
I certainly see the JDialog.class in the rt.jar in the JRE.
Apparently many people have had the same problem with RH8/9 and Jrun but I have not seen any solutions posted
I got the idea it was depreciated because I tried compiling JDialog.java in the SDK and got that warning.
[ October 29, 2003: Message edited by: Greg Neef ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!