[pskmail] Re: Aw: Re: jPSKmail2.0.19 on lubuntu10.03

  • From: Jan Bruggeman <jan@xxxxxxxxx>
  • To: pskmail@xxxxxxxxxxxxx
  • Date: Thu, 15 Nov 2012 19:51:50 +0100

Rein,

1) The following screendump says it all ... 
(ran on debian / openJDK 1.6)
=> some system info:
$ uname -a
Linux odyseus 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686
GNU/Linux 
$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)
OpenJDK Server VM (build 14.0-b16, mixed mode)

=> adding AbsoluteLayout.jar to jPSKmail-2.0.19.jar:
$ jar -uf jPSKmail-2.0.19.jar javapskmail/lib/AbsoluteLayout.jar

=> Checking result:
$ jar -tvf jPSKmail-2.0.19.jar | grep .jar
 javapskmail/lib/RXTXcomm.jar
 javapskmail/lib/ws-commons-util-1.0.2.jar
 javapskmail/lib/xmlrpc-client-3.1.2.jar
 javapskmail/lib/xmlrpc-common-3.1.2.jar
 javapskmail/lib/AbsoluteLayout.jar


=> running jPSKmail-2.0.19.jar:
$ java -jar jPSKmail-2.0.19.jar 
Configuration.xml
jPSKmail ends here...
Exception in thread "main" java.lang.NoClassDefFoundError:
org/netbeans/lib/awtextra/AbsoluteLayout
        at javapskmail.mainpskmailui.initComponents(mainpskmailui.java:2867)
        at javapskmail.mainpskmailui.<init>(mainpskmailui.java:169)
        at javapskmail.Main.main(Main.java:379)
Caused by: java.lang.ClassNotFoundException:
org.netbeans.lib.awtextra.AbsoluteLayout
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
        ... 3 more
$ 

2) And also:
* Please note that the folder present in my jPSKmail???.jar files is
javapskmail/lib , not jpskmail/lib as you mention. 

* I've done the same at work on a windows machine, but there I added
AbsoluteLayout.jar using 7zip program. It gave another error, another
class (for handling of serial stuff) not found. But in that situation
the RXTXcomm.jar file was present in the same lib folder, and the .class
not found was present in it !




-- 
mvg,

jan Bruggeman - ON4AIN

mail: jan@xxxxxxxxx
web: http://www.aubine.be


On Wed, 2012-11-14 at 14:32 +0100, Rein Couperus wrote:
> Looks like a packaging problem...
> You could e.g. first install jPSkmail-1.5.10 from the download page, 
> that includes all the necessary libraries. After that you just 
> copy jPSKmail-2.0.x into the jpskmail directory and run from there.
> 
> 
> You can also copy the attached files into ~/jpskmail/lib and try
> again... the jre looks into
> 
> the lib directory when you start from the jpskmail directory...
> 
> 
> Rein PA0R
> 
> 
> 
> 
> Rein,
> 
> I've checked the following files:
> - jPSKmail-2.0.19.jar
> - jPSKmail-2.0.18.jar
> - jPSKmail-2.0.15.jar
> all contain the folder: javapskmail/lib , but no AbsoluteLayout.jar in
> it !
> in there are only RXTXcomm.jar, ws-commons-util-1.0.2.jar,
> xmlrpc-client-3.1.2.jar and xmlrpc-common-3.1.2.jar files, but those
> have no AbsoluteLayout.* file in them.
> 
> I unzipped the .jar files to look into them, but i do not unzip them
> to
> run. afaik that's the way to do it.
> 
> I have installed netBeans IDE, and I do find an AbsoluteLayout.jar in
> that install, but I cannot run the jPSKmail-2.0.1?.jar file from that
> environment.
> 
> -- 
> mvg,
> 
> jan Bruggeman - ON4AIN
> 
> mail: jan@xxxxxxxxx
> web: http://www.aubine.be
> 
> 
> On Wed, 2012-11-14 at 09:29 +0100, Rein Couperus wrote:
> > Does the ~/jpskmail/lib directory contain the AbsoluteLayout.jar
> > file?
> > 
> > 
> > 
> > 'cd ~/jpskmail/lib'
> > 
> > 'ls'
> > 
> > 
> > 
> > Rein PA0R
> > 
> > 
> > Hello,
> > 
> > I've trying to run "java -jar jPSKmail-2.0.19.jar" (and .18.jar ...)
> > And I get:
> > 
> > Configuration.xml
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/netbeans/lib/awtextra/AbsoluteLayout
> > at javapskmail.mainpskmailui.initComponents(mainpskmailui.java:2829)
> > at javapskmail.mainpskmailui.<init>(mainpskmailui.java:165)
> > at javapskmail.Main.main(Main.java:379)
> > Caused by: java.lang.ClassNotFoundException:
> > org.netbeans.lib.awtextra.AbsoluteLayout
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
> > ... 3 more
> > 
> > Both on a debian and a lubuntu machine with java:
> > java -version
> > java version "1.6.0_18"
> > OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0
> +squeeze2)
> > OpenJDK Server VM (build 14.0-b16, mixed mode)
> > 
> > On the lubuntu (10.05 on a geode processor) machine I installed
> > netbeans
> > IDE but I can't run the jPSKmail.jar file from within netbeans, and
> I
> > haven't found out which folders to add to -cp parameter of java
> > command.
> > I did find file containing the AbsoluteLayout class and added it to
> > -cp,
> > but that didn't help.
> > 
> > any idea's ?
> > 
> > -- 
> > mvg,
> > 
> > jan Bruggeman - ON4AIN
> > 
> > mail: jan@xxxxxxxxx
> > web: http://www.aubine.be
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 
> 


Other related posts: