Portál AbcLinuxu, 13. května 2025 23:03
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/java/j2re1.4.2_08/lib/i386/libawt.so: /usr/local/java/j2re1.4.2_08/lib/i386/libawt.so: cannot restore segment prot after reloc: Permission denied at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at sun.security.action.LoadLibraryAction.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.NativeLibLoader.loadLibraries(Unknown Source) at sun.awt.DebugHelper.(clini)(Unknown Source) at java.awt.Component.(clinit)(Unknown Source)Nevím co s tím mám dělat. Dost nutně potřebuji tu javu rozchodit, protože mám v javě program, který nutně potřebuji. Pokud někdo víte kde by mohl být zakopaný pes, budu vděčný za radu...
pridam trochu technologie pouzivane u me. pouzivam tu 1.5 na vyvoj cehokoli a 1.4.2 na compiera. kazdy uzivatel ma sanci mit svoji javu a ja tu i testuji ruzne verse javy na pouzitelnost(1.6.x), atd. mam tu politiku, ze kazdy uzivatel, co potrebuje javu, tak ji ma a muze si take pouzivat ruzne nastaveni terminalu a kodovani cehokoli.
mozna to pomuze Vasemu problemu. neco z meho ~/.bash_profile ################################ export JAVA_HOME="/opt/app/java" export COMPIERE_HOME="/users/home/compiere/Compiere" export ORACLE_HOME="/users/home/oracle/ORACLE" PATH=".:/opt/app/java/bin:\ /usr/local/bin:\ /usr/bin:\ /bin:\ /usr/bin/X11:\ /usr/games:\ /usr/share/tomcat4/bin:\ /opt/app/java/jre/bin" export PATH CLASSPATH=".:/opt/app/java/lib:\ /opt/app/java/jre/lib:\ /opt/app/java/lib:\ /usr/share/tomcat4/common/lib/:\ /opt/app/java/lib/pgjdbc2.jar:\ /opt/app/javalib/jtds.jar:\ /opt/app/java/lib/mysql-connector-java-3.1.10-bin.jar:\ /opt/app/java/lib/xalan.jar:\ /opt/app/java/lib/xerces2.jar:\ /opt/app/javalib/Tidy.jar:\ /opt/app/javalib/dom4j.jar:\ /opt/app/javalib/jaxen-full.jar:\ /opt/app/javalib/saxpath.jar" export CLASSPATH export LD_PATH=".:/opt/app/java/jre/lib" ################################ kde: ls -lad /opt/app/java lrwxrwxrwx 1 root root 16 2005-10-03 01:56 /opt/app/java -> /opt/app/jdk1.5.0_05 a neni problem mit pro jineho uzivatele export JAVA_HOME=/opt/app/java1.4.2 kde: ls -lad /opt/app/java1.4.2 drwxrwxr-x 9 root root 4096 2005-06-04 16:31 /opt/app/java1.4.2/ /* - cesty a promenne si upravte - u zkontrolujte si taktez nastaveni systemovych promennych - lomitka "\" za kazdou tridou ci knihovnou jsem dal zamerne, at to prezije zdejsi "redakcni" system - nevim, jak bude vypadat formatovani, delam ted ve w3m-ku. - cesty si pojmenujte podle sebe */snad to pomuze k reseni, i kdyz jsem zde poskytl asi dost informaci navic. je to dost site na miru moji osobe a mozna dost neciste. distro: debian testing. bye gf
ls -lad /opt/java1.4.2 lrwxrwxrwx 1 root root 13 2005-07-03 02:45 /opt/java1.4.2 -> j2sdk1.4.2_08bye gf
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.