File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in javax.swing.*

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i installed java in linux i am new to Linux
i have a application in java which use javax.swing.*,
if i run that its giving ClassNotFoundExecption for JFrame.
i think its classpath problem
can you help how can i fix this.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which version of which Linux distribution are you using, and which version of Java are you using?

Swing has been a part of Java SE for a very long time (since Java 1.2), so it shouldn't be missing.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GCJ, the default Java implementation for many Linux distributions, does not implement Swing.
Consult your distribution's documentation for instructions on how to install Sun Java.
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
red hat linux 9
which is working before that.
i reinstalled the Linux,jre1.6,j2se 1.5
now its giving this error
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Red Hat Linux 9 is one of those distributions that uses GCJ as the default. Follow that link for some pointers on how to enable other Java installs.
By the way, Red Hat Linux 9 has been unsupported for four years now. You may want to upgrade to a supported operating system to keep current with bug and security updates.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic