[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: java from sun: installation problem




do you have the library libstdc++2.9-glibc2.1 installed?

cheers, rodrigo



On Tue, 2002-12-10 at 16:07, Jan Krupa wrote:
> 
> I have debian3.0 (woody) installed).
> 
> I run gnome.
> 
> I tried to install j2se from
>  http://java.sun.com/j2se/1.4/download.htmdownloaded the Linux self-extracting file:
>  j2sdk-1_4_0_01-linux-i586.bin
> 
> 
> then (as root) cd /usr/local/java/
> and  run ./j2sdk-1_4_0_01-linux-i586.
> 
> then I run:
> update-alternatives --install /usr/bin/java java /usr/local/java/j2sdk1.1_01/bin/java 120
> update-alternatives --install /usr/bin/javac javac /usr/local/java/j2sdk1.4.1_01/bin/javac 120
> 
> I also put in /etc/profile:
> export JAVA_HOME=/usr/local/java/j2sdk1.4.1_01
> export PATH=$PATH:/usr/local/java/j2sdk1.4.1_01/bin
> export CLASSPATH=.:/usr/local/java/j2sdk1.4.1_01/lib:/usr/local/java/j2sdk1.4.1_01/jre/lib
> 
> 
> 
> Now I tested the installation:
> 
> /* Name of file HelloWorldApp.java
>  * T HelloWorldApp class implements an application that
>  * simply displays "Hello World!" to the standard output.
>  */
> class HelloWorldApp {
>     public static void main(String[] args) {
>         System.out.println("Hello World!"); //Display the string.
>     }
> }
> 
> javac HelloWorldApp.java
> then
> java HelloWorldApp      
> Hello World!
> 
> Soit seems to work but:
> 
> another test:
> I created one file:
> /*Name of file:
> * HelloWorld.java
> */
> import java.applet.Applet;
> import java.awt.Graphics;
> 
> public class Herld extends Applet {
>     public void paint(Graphics g) {
>         g.drawString("Hello world!", 50, 25);
>     }
> }
> 
> 
> and another Hello.html
> --
> 
> <HTML>
> <HEAD>
> <TITLE>The Hello World Applet/TITLE>
> </HEAD>
> <BODY>
> <APPLET CODE="HelloWorld.class" WIDTH=150 HEIGHT=25>
> </APPLET>
> </BODY>
> <HTML>
> 
> 
> I run
> javac HelloWorld.java 
> then
> appletviewer Hello.html 
> and got the following messages:
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/java/j2sdk1.4.1_01/jre/lib/i386/libfontmanager.so: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
> 	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> 	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
> 	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1389)
> 	at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> 	at java.lang.System.loadLibrary(System.java:832)
> 	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.awt.font.NativeFontWrapper.<clinit>(NativeFontWrapper.java:42)
> 	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> 	at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:125)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:140)
> 	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
> 	at java.awt.Window.init(Window.java:223)
> 	at java.awt.Window.<init>(Window.java:267)
> 	at java.awt.Frame.<init>(Frame.java:398)
> 	at java.awt.Frame.<init>(Frame.java:363)
> 	at sun.applet.AppletViewer.<init>(AppletViewer.java:139)
> 	at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:80)
> 	at sun.applet.AppletViewer.parse(AppletViewer.java:1062)
> 	at sun.applet.AppletViewer.parse(AppletViewer.java:996)
> 	at sun.applet.Main.run(Main.java:138)
> 	at sun.applet.Main.main(Main.java:80)
> 
> 
> Could someone please  help to set up the j2sdk under debian?
> Maybe j2re would be enough?
> 
> Jan
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 




Reply to: