This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
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?
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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 .
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • 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!