Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java AWT on Linux?

573 views
Skip to first unread message

dhboy

unread,
Jul 2, 1997, 3:00:00 AM7/2/97
to

Greetings,

We have installed Linux 2.0.29 and Java 1.1. We can run class files that
do not access the AWT but when we try even simple AWT code we get the
error listed below. We have used ldconfig on the directory
/usr/local/java/lib/i586, but the problem persists. The file
/usr/local/java/lib/i586/libawt.so exists and is not a link.

We are new to Linux (we know Java), can someone help?

[root@sc java]# java Hello
File not found (/usr/local/java/bin/../lib/i586/libawt.so)
java.lang.UnsatisfiedLinkError: no awt in shared library path
at java.lang.Runtime.loadLibrary(Runtime.java)
at java.lang.System.loadLibrary(System.java)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:37)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:199)
at java.awt.Window.getToolkit(Window.java:163)
at java.awt.Frame.addNotify(Frame.java:90)
at java.awt.Window.show(Window.java:114)
at Hello.main(Hello.java:55)
java.lang.UnsatisfiedLinkError: init
at sun.awt.motif.MToolkit.<init>(MToolkit.java:41)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:199)
at java.awt.Window.getToolkit(Window.java:163)
at java.awt.Frame.addNotify(Frame.java:90)
at java.awt.Window.show(Window.java:114)
at Hello.main(Hello.java:55)
--
David Boydston
Solutions Consulting

Nicholas Sydenham

unread,
Jul 3, 1997, 3:00:00 AM7/3/97
to dhboy

Look's like you're trying to use the JDK with shared Motif libraries
when you haven't got Motif installed on your system. Try downloading
the statically linked version.

dhboy wrote:
>
> Greetings,
>
> We have installed Linux 2.0.29 and Java 1.1. We can run class files that
> do not access the AWT but when we try even simple AWT code we get the
> error listed below. We have used ldconfig on the directory
> /usr/local/java/lib/i586, but the problem persists. The file
> /usr/local/java/lib/i586/libawt.so exists and is not a link.

> David Boydston
> Solutions Consulting

--
Nicholas Sydenham <nsyd...@dra.hmg.gb>
DERA Malvern
Subtlety is the art of saying what you think...
and getting out of the way before it is understood.

Nicholas Sydenham

unread,
Jul 3, 1997, 3:00:00 AM7/3/97
to dhboy

Timothy Murphy

unread,
Jul 4, 1997, 3:00:00 AM7/4/97
to

dhboy <da...@sc-systems.com> writes:

>We have installed Linux 2.0.29 and Java 1.1. We can run class files that
>do not access the AWT but when we try even simple AWT code we get the
>error listed below. We have used ldconfig on the directory
>/usr/local/java/lib/i586, but the problem persists. The file
>/usr/local/java/lib/i586/libawt.so exists and is not a link.

I don't know if this is relevant,
but you can set the environment variable LD_LIBRARY_PATH
(in Unix generally).


--
Timothy Murphy
e-mail: t...@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

Manuel J. Galan

unread,
Jul 4, 1997, 3:00:00 AM7/4/97
to

In article <33BAD13E...@sc-systems.com>,
dhboy <da...@sc-systems.com> writes:
> Greetings,

>
> We have installed Linux 2.0.29 and Java 1.1. We can run class files that
> do not access the AWT but when we try even simple AWT code we get the
> error listed below. We have used ldconfig on the directory
> /usr/local/java/lib/i586, but the problem persists. The file
> /usr/local/java/lib/i586/libawt.so exists and is not a link.
>
> We are new to Linux (we know Java), can someone help?
>
> [root@sc java]# java Hello
> File not found (/usr/local/java/bin/../lib/i586/libawt.so)
> java.lang.UnsatisfiedLinkError: no awt in shared library path
> at java.lang.Runtime.loadLibrary(Runtime.java)
> at java.lang.System.loadLibrary(System.java)
> at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:37)
> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:199)
> at java.awt.Window.getToolkit(Window.java:163)
> at java.awt.Frame.addNotify(Frame.java:90)
> at java.awt.Window.show(Window.java:114)
> at Hello.main(Hello.java:55)
> java.lang.UnsatisfiedLinkError: init
> at sun.awt.motif.MToolkit.<init>(MToolkit.java:41)
> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:199)
> at java.awt.Window.getToolkit(Window.java:163)
> at java.awt.Frame.addNotify(Frame.java:90)
> at java.awt.Window.show(Window.java:114)
> at Hello.main(Hello.java:55)
> --
> David Boydston
> Solutions Consulting

Solution:

add '/usr/local/java/lib/i586' to /etc/ld.so.conf and run 'ldconfig'

--
Manuel J. Galan

Message has been deleted

renuka...@gmail.com

unread,
Sep 17, 2013, 5:46:48 AM9/17/13
to
JAVA online TRAINING: Java is that the basement for several applications that area unit currently leaders within the gift market. it's a growing profession, with large opportunities for promotion and high earnings. Java could be a hot topic in IT business and includes a bright future; java training is a perfect platform for anyone to find out java and continue to expertise a lot of advanced options of this technology. online training institutes created java training a simple task.

Learning online saves time and offers flexibility to all or any World Health Organization wish to find out and upgrade their pc skills. Hiring firms have access to all or any the comes that area unit done by students for java training and java certification, for those that secured smart score and affected in an exceedingly personal interview. <a href="http://123trainings.com/it-adv-java-online-training.html">online java training</a> is as helpful and provides an equivalent pattern of learning that's followed in ancient room tutorials. increasing your information of java development and connected technologies nowadays with comprehensive, expert-led training from shalom IT college.

Online training pc courses don't seem to be restricted to the essential pc information only; instead folks area unit abundant interested learning through online for the advanced certified courses like Java. The java could be a platform and means of computing principally supported the ability of networks, and also the concept an equivalent code can run in several sets of computers, client gadgets and alternative devices. there's legion institutes provide java online training, however solely a top quality and licensed training is feasible with Shalom IT college. Shalom IT college with large expertise in online training stands firmly in providing online training for various folks all round the world. Well experience training is our expression, and training fee is cheap and 24/7 online support for the learners. Learning Java training offers a natural progression to spice up your career growth.

Online training pc courses don't seem to be restricted to the essential pc information only; instead folks area unit abundant interested learning through online for the advanced certified courses like Java. The java could be a platform and means of computing principally supported the ability of networks, and also the concept an equivalent code can run in several sets of computers, client gadgets and alternative devices. there's legion institutes provide <a href="http://123trainings.com/it-adv-java-online-training.html">java online training</a>, however solely a top quality and licensed training is feasible with Shalom IT college. Shalom IT college with large expertise in online training stands firmly in providing online training for various folks all round the world. Well experience training is our expression, and training fee is cheap and 24/7 online support for the learners. Learning Java training offers a natural progression to spice up your career growth.
Message has been deleted

Tauno Voipio

unread,
Sep 17, 2013, 6:43:36 AM9/17/13
to
On 17.9.13 12:42 , renuka...@gmail.com wrote:

anitha...@gmail.com

unread,
Sep 25, 2013, 10:12:44 AM9/25/13
to

hi you have gathered a valuable information on Java, I am looking for content like this and i am much impressed with the information and nice course content, thanks a lot for the Information regarding Java Online Training.
0 new messages