LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2004, 04:17 AM   #1
jburford
Member
 
Registered: Sep 2002
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
Posts: 106

Rep: Reputation: 15
java error NoClass Def FoundError - SAPGui - dummy help please


I am trying to instal the SAP terminal JavaGUI (PlatinGUI-Linux-630r2) on Mandrake Linux 9.2 on an ASUS S5200N laptop.
I installed the JRE (Sun v1.4.1), installed the Netscape 4 plugin (I wasn't sure which to use, but the NS6 plugin caused an error and NS4 didn't).

When trying to instal by running java -jar PlatinGui-Linux-630r2.jar, I get an error :
java.lang.NoClassDefFoundError: javax/swing/UIManager
at com.sap.platin.install.GuiInstall.main (GuiInstall.java:378)
at java.lang.reflect.Method.invoke0 (Method.java)
at java.lang.reflect.Method.invoke (Method.java:255)
at kaffe.jar.ExecJarName.main (ExecJarName.java:67)
at kaffe.jar.ExecJar.main (ExecJar.java:75)

I assume I have missed a step or stuffed something up, but I have little experience with Java - is this likely to be a path missing, or a glibc version issue or what?!?!!? Any ideas appreciated. I am a bit stuck!

Jim
 
Old 01-20-2004, 06:37 AM   #2
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
This is a lame reply but ... .jar files generally mean that a package will work so long as the Java Runtime Environment is set up. In theory the platform of your computer should not be important.

I think that you may have a problem with your JRE set up & would try obtaining the latest linux JRE and following the steps to install it.

I have looked around the web out of curiousity & found only 'freebsd' instructions for installing this product. Although in theory Java should run on anything, there may be underlying issues which are peculiar to Mandrake that might prevent you from sucessfully working this problem. If (in the unlikely event) you dont get a response from someone who has had direct experience with this, I would suggest posting the problem to a Mandrake specific forum.
 
Old 01-20-2004, 07:30 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
java.lang.NoClassDefFoundError: javax/swing/UIManager

I'm guessing that this line is suggesting that java can't find its classes. Since swing is pretty integral, I'm guessing that you don't have a CLASSPATH environment variable set up. Can you run other java programs?

Try this and see if it helps:

CLASSPATH=/path/to/java/directory
export CLASSPATH


You could also try it with the -classpath flag

java -classpath=./:/path/to/java -jar filename.jar
 
Old 01-20-2004, 06:59 PM   #4
jburford
Member
 
Registered: Sep 2002
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks for the reponses. neillcpp - I am using Suns Java as the SAPGui instructions specify either of two versions of Sun Java, or one version of IBMs Java - very specific, and known problems are listed for each! The instructions for Sun Java are at http://java.sun.com/j2se/1.4.1/install-linux.html

I think you are correct as to the JRE setup - I just don't know whether I have stuffed something, or whether it is a Mandrake/glibc/java incompatibility issue.

Hangdog42 - I did not have CLASSPATH set, but setting this didn't result in any change to the error message - neither did running java with the classpath paramater. However, this sort of omission is likely to be the problem - any other ideas?

thanks

Jim
 
Old 01-20-2004, 09:00 PM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I guess I'd try a couple of things. First, I'd try running a different Java program to see if the problem is with Java or with SAPGui. jEdit is a nice text editor that is written in Java and I bet uses Swing for graphics. If it runs, then the problem is with SAPGui.

However, if jEdit doesn't run, the problem would seem to lie with Java (or maybe SAPGui is just a pain to run). In that case I would be real tempted to try a comparable version of Blackdown Java. For reasons I really don't fully understand, Blackdown Java sometimes works in situations where Sun's Java doesn't. I know that SAPGui suggests very specific versions of Java, but Blackdown Java is a full-fledged version of Java. I think that they've just compilied it in a more linux compatible manner. If you take this route, just be sure to point your PATH and CLASSPATH environment variables to the Blackdown Java directory.
 
Old 01-20-2004, 09:04 PM   #6
jburford
Member
 
Registered: Sep 2002
Distribution: Mandrake 10, IPCOP 1.4, SME Server 6, EvilEntity
Posts: 106

Original Poster
Rep: Reputation: 15
Thanks - I'll try these suggestions. I also found a number of threads regarding problems with java in Mandrake - it looks like there are a number of traps for the unwary noobie.

thanks again

Jim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install utf8.def? max2004 Fedora 1 12-27-2011 08:48 AM
High def TV tuner w/remote cs-cam Linux - General 1 02-09-2005 06:01 PM
Is there any app to convert emacs's syntax highlight def. file to vim's def. file ? cyu021 Linux - Software 0 10-05-2004 11:02 PM
Problem with SAPGui installation solegiallo Linux - Software 0 09-29-2003 09:18 AM
Is this correct DEF for NAT? Thom_Redhat Linux - General 1 09-10-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration