[Bug 323763] Re: Eclipse did not install AppletViewer
Eme
eman76 at mail.com
Sun Oct 11 15:15:05 UTC 2009
When I compile I added the .jar path by the comand:
javac -classpath <path to .jar> LPex1.java
this command works with no errors, but when I write the following
command:
java -Djava.library.path=<path_to_shared_library> LPex1
I got the error message that I posted earlied. I think there is a
permission problem where the library can not be accessed by the user
account! but since I am new to the linux os I don't really know how to
solve it!
-----Original Message-----
From: Niels Thykier <niels at thykier.net>
To: eman76 at mail.com
Sent: Fri, Oct 9, 2009 2:08 pm
Subject: Re: [Bug 323763] Re: Eclipse did not install AppletViewer
Eme wrote:
Hi All,
I am experiancing similar problem. In my case I am installing Ilog ceplex
nd planning to use the JAVA concert technology. so whe I compile the java file
name: LPex1.java) I have no problem but when I try to run it I got the
ollowing message
Hi Eme
> eman at eman-laptop:~$ java -Djava.library.path=/usr/local/ilog/cplex90/bin/i86_linux2_glibc2.3_gcc3.2
Pex1
Exception in thread "main" java.lang.NoClassDefFoundError: LPex1
at gnu.java.lang.MainThread.run(libgcj.so.90)
Caused by: java.lang.ClassNotFoundException: LPex1 not found in
nu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/ilog/cplex90/lib/cplex.jar],
arent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.90)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at jav
a.lang.ClassLoader.loadClass(libgcj.so.90)
at gnu.java.lang.MainThread.run(libgcj.so.90)
Notice that I am specifying the LD_library Path in the java command
line!
I was serching on the net and I found alot of similar bugs for different
types of lib files and one suggestion was to download the JDK od SUN
which I wasn't sure if it would be the solution of my problem.
Please help if you know the solution.
Your problem is unrelated to eclipse. Your problem is probably that you
o not add any jars or folders to your classpath. You are most likely
issing a "-cp $jar1:$jar2:...:$jarN" in your command besides the
Djava.library.path
Niels
--
clipse did not install AppletViewer
ttps://bugs.launchpad.net/bugs/323763
ou received this bug notification because you are a direct subscriber
f the bug.
Status in “eclipse” package in Ubuntu: Invalid
Bug description:
inary package hint: eclipse
I tried to run the Hello World program and got the following message
Exception in thread "main" java.lang.NoClassDefFoundError: sun.applet.AppletViewer
at gnu.java.lang.MainThread.run(libgcj.so.90)
aused by: java.lang.ClassNotFoundException: sun.applet.AppletViewer not found
n gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/richardson/workspace/Project1/],
arent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at java.lang.ClassLoader.loadClass(libgcj.so.90)
at gnu.java.lang.MainThread.run(libgcj.so.90)
then uninstalled eclipse and tried to install20it again and the install failed
nd I cannot uninstall eclipse--even from the command line. When trying to
ninstall the following occured
Reading package lists... Done
uilding dependency tree
eading state information... Done
he following packages were automatically installed and are no longer required:
libjaxp1.3-java libcommons-pool-java junit4 eclipse-jdt libcommons-modeler-java
ibxerces2-java
linux-headers-2.6.27-7 linux-headers-2.6.27-9 debhelper eclipse-pde zenity
clipse-rcp
libservlet2.4-java antlr libcommons-beanutils-java g++-4.3 junit
ibcommons-launcher-java
libantlr-java-gcj po-debconf libcommons-logging-java g++ intltool-debian
inux-headers-2.6.27-9-generic
libcommons-collections-java libxerces2-java-gcj libtomcat5.5-java
clipse-platform-gcj gettext ant
gcj-4.3 libjsch-java ant-optional gjdoc gappletviewer-4.3 libgcj9-dev
ibcommons-dbcp-java
liblucene-java libantlr-java libcommons-el-java linux-headers-2.6.27-7-generic
clipse-rcp-gcj
build-essential libservlet2.3-java dpkg-dev libstdc++6-4.3-dev eclipse-source
clipse-jdt-gcj
libgcj9-src ant-optional-gcj html2text libcommons-collections3-java patch
clipse-platform
libmail-sendmail-perl ant-gcj libcommons-digester-java java-gcj-compat-dev
ibsys-hostname-long-perl
liblucene-java-doc eclipse-pde-gcj libjaxp1.3-java-gcj
se 'apt-get autoremove' to remove them.
he following packages will be REMOVED:
eclipse
upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
not fully installed or removed.
fter this operation, 434kB disk space will be freed.
o you want to continue [Y/n]? y
pkg: error processing eclipse (--remove):
Package is in a very bad inconsistent
state - you should
reinstall it before attempting a removal.
rrors were encountered while processing:
eclipse
: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
rchitecture: amd64
istroRelease: Ubuntu 8.10
rrorMessage: Package is in a very bad inconsistent state - you should
ackage: eclipse 3.2.2-5ubuntu2
ourcePackage: eclipse
itle: package eclipse 3.2.2-5ubuntu2 failed to install/upgrade: Package is in a
ery bad inconsistent state - you should
name: Linux 2.6.27-11-generic x86_64
--
Eclipse did not install AppletViewer
https://bugs.launchpad.net/bugs/323763
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list