This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Swing on Linux...problem!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing on Linux...problem!!!!!" Watch "Swing on Linux...problem!!!!!" New topic

Swing on Linux...problem!!!!!

Jyothsna Sri Y
Ranch Hand

Joined: Sep 25, 2003
Posts: 35
Hi everyone,
I've written a piece of code which uses swing and Java Media Framework. it works fine on Windows. But it's giving errors on linux. I've installed j2sdk1.4.2 and JMF2.1 on linux 9.0. But javac is not able to locate javax.swing and is unable to import the package
Can some one tell me what's wrong?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

At the command line type :

I'll bet that the version that shows up isn't the version you think you have installed.

You'll need to put the version of Java you want on the PATH, and make sure that the JMF.JAR file is on the CLASSPATH.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Swing on Linux...problem!!!!!
Similar Threads
Jar file on linux ?
JBoss as a prod. server.
swing platform independent?
NX: Java in Linux