You are not logged in.

#1 2013-08-18 11:27:28

kaira
Banned
Registered: 2010-09-30
Posts: 24

[Solved]Problem with opening .jar application

Hello
I hope, that my problem will be trivial for people with more java knowledge than me. I download java program with linux support (Lucid3.3). Installation program which is also an .jar application run just fine, but all the installed programs close with errors. I open each of those file with command:

java -r path_to_file

After opening program i'm getting error code:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/BasicConfigurator
	at com.cbit.lucid.builder.application.LucidBuilder.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.BasicConfigurator
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 1 more

After googling and searching forum i found the information, that propably it is coused with lack or wrong linking to library files. The configuration file created by installation seems to look fine:

#!/bin/bash

VM_OPTS="-Xmx512M";
VM_ARGS="-Djava.library.path=libs/jdic -Dswing.metalTheme=steel";

CLASSPATH="${CLASSPATH}:libs/jdic/jdic.jar";
CLASSPATH="${CLASSPATH}:libs/log4j/log4j-1.2.13.jar";
CLASSPATH="${CLASSPATH}:libs/xerces/resolver.jar:libs/xerces/xercesImpl.jar:libs/xerces/xml-apis.jar";
CLASSPATH="${CLASSPATH}:libs/xmlbeans/jsr173_1.0_api.jar:libs/xmlbeans/resolver.jar:libs/xmlbeans/xbean.jar";
CLASSPATH="${CLASSPATH}:libs/xmlbeans/xbean_xpath.jar:libs/xmlbeans/xmlpublic.jar:libs/xmlbeans/xmlbeans_sdd11_trunk.jar";
CLASSPATH="${CLASSPATH}:./Lucid3Builder.jar";

MAIN_CLASS="com.cbit.lucid.builder.application.LucidBuilder";

java $VM_OPTS $VM_ARGS -cp $CLASSPATH $MAIN_CLASS

I think, that i have all needed packages, especially that installation and uninstallation programs executes as charm.
pacman -Q |grep java:

ca-certificates-java 20121112+nmu2-2
icedtea-web-java7 1.4-2

pacman -Q |grep jd:

jdk7-openjdk 7.u40_2.4.1-2
jre7-openjdk 7.u40_2.4.1-2
jre7-openjdk-headless 7.u40_2.4.1-2

I'm afraid, that without a help i won't solve it.
Many thanks in advance

Last edited by kaira (2013-08-18 15:06:09)

Offline

#2 2013-08-18 14:56:15

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [Solved]Problem with opening .jar application

Where did you download it from? Searching is throwing up way too many hits for Ubuntu's Lucid release and without knowing anything about the programme, I can't track it down without trawling pages of search results.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-08-18 15:05:23

kaira
Banned
Registered: 2010-09-30
Posts: 24

Re: [Solved]Problem with opening .jar application

I downloaded it from this site: http://www.lucidcentral.com/Software/Lu … Offer.aspx
Fortunetly, after couple hours of frustration i realize the mistake i made. After borrowing from a friend laptop with windows and checking if windows program was working i saw that i was starting the program wrong way. Executing the sh file with ./Lucid3Builder.sh informed system about right paths and started program without any hiccups. Yet again i'm happy "only linux" user.
Cheers

Offline

Board footer

Powered by FluxBB