Skip to main content

SEVERE: Project Looking Glass requires JAI 1.2.2?

12 replies [Last post]
mjanthony
Offline
Joined: 2004-06-29

Hi,

I've followed the instructions on the really helpful 'getting started' page, but I can't get lg to work:

# ./lg3d-dev
/tmp/lg/lg3d/bin /tmp/lg/lg3d/bin
/tmp/lg/lg3d/bin
[1] 18723
SEVERE: Project Looking Glass requires JAI 1.2.2

# cat /tmp/lgserver.log
LGCONFIG file:///tmp/lg/lg3d/bin/../etc/lg3d/lgconfig_1p_nox.xml
JAVA_HOME /usr/java/jdk1.5.0
LGX11HOME /tmp/lg/lg3d/bin/../ext/lg3d-x11
LGCORESRC /tmp/lg/lg3d/bin/../src
X Server Version
release-0-5
/usr/java/jdk1.5.0/bin /usr/java/jdk1.5.0/bin /usr/bin /bin /usr/sbin /usr/local/bin
/tmp/lg/lg3d/bin/../lib/i386:

Any ideas? I can't find 1.2.2 on website:
http://java.sun.com/products/java-media/jai/current.html

-- M.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
paulby
Offline
Joined: 2003-06-13

Before you su to root type 'xhost +'.

XTJ7
Offline
Joined: 2006-02-17

Sorry, forgot to mention that I did this. I really don't know what this could be. I would be very glad to hear any idea how to solve that problem :)
But that's no problem, I can solve this by using sux instead of su.
The point is, that it tells SEVERE: Project Looking Glass requires JAI 1.2.2 where I installed 1.1.2 (what should be correct so far)

btburns
Offline
Joined: 2004-06-29

ok, so as root you're able to display something? i.e. xlogo?

Also, am i right to assume that if you're able to execute lg3d-dev, and you're err-ing on trying to display something. This would indicate that lg3d has verified the JAI dependency?

XTJ7
Offline
Joined: 2006-02-17

Yes, I can display xlogo.
No, lg3d-dev won't run. Whenever I try to run it I get [1] a number (a PID I guess) and it just exists. Then I look into /usr/tmp/lgserver.log and it says:

Java 3D 1.3.2.
Java 3D: Shape3D bounds enabled for transparency sorting
Java 3D: render Graphics2D DrawPixel disabled
Java 3D: background texture is enabled
06.07.2004 00:57:51 org.jdesktop.lg3d.displayserver.AppConnector platformCheck
SEVERE: Project Looking Glass requires JAI 1.2.2
Please check the release notes for details

But everything is installed properly as described within the getting started information and all files are there with all permissions (within ext, so classpath mustn't be set for the jai).

btburns
Offline
Joined: 2004-06-29

yeah it sounds to me that your setup isn't correct. I don't think it may involve your CLASS_PATH env var though. Correct me if i'm wrong, but I think if all of the packages are installed in the same Java 1.5 directory hierarchy, they should be easy for the java executable to find...

I would try removing/or moving the downloaded java1.5 sdk/java3d/JAI, and redownloading the files. Also be sure not to mix the JRE and JDK packages. I stuck with downloading just the JDK packages..

hideya
Offline
Joined: 2003-07-22

Here is one way to check if you have installed JAI correctly . Please do the following:

ls -l /usr/java/jdk1.5.0/jre/lib/ext

and see if the list includes something like the following:

1576539 2003-07-10 19:07 jai_core.jar

Hope this helps.

XTJ7
Offline
Joined: 2006-02-17

btburns: I haven't, but I'll try reinstalling the whole thing.
hideya: It does, jai_core.jar, jai_codec.jar etc.

mjanthony
Offline
Joined: 2004-06-29

Thanks for the advice - got it working now! The problem was that I didn't install the .rpm of Java 1.5.0 b2.

btburns
Offline
Joined: 2004-06-29

mj, for some reason it errs 1.2.2, but i was able to use JAI 1.1.2 linked in the getting started page.

http://java.sun.com/products/java-media/jai/downloads/download-1_1_2.html

you just got to make sure you download the right one. I download the jdk v.1.5beta and jai for jdk 1.1.2

paulby
Offline
Joined: 2003-06-13

This is a typo in the error report, JAI 1.1.2 is required. I've fixed the typo in the source.

Anonymous

Did you follow the instructions exactly? i.e. you used the correct versions? Also, check to see if jre/lib/i386/libmlib_jai.so, jre/lib/ext/jai_core.jar, jre/lib/ext/jai_codec.jar, and jre/lib/ext/mlibwrapper_jai.jar exist under your jdk home (e.g. /usr/java/jdk1.5.0). Let me know if they exist. This will determine whether or not your installation of the advanced imaging api were successful.
Blake
BlakeB395@myrealbox.com

XTJ7
Offline
Joined: 2006-02-17

I can't get it to work.

, Java 3D 1.3.2.
Java 3D: Shape3D bounds enabled for transparency sorting
Java 3D: render Graphics2D DrawPixel disabled
Java 3D: background texture is enabled
05.07.2004 14:42:58 org.jdesktop.lg3d.displayserver.AppConnector platformCheck
SCHWERWIEGEND: Project Looking Glass requires JAI 1.2.2
Please check the release notes for details

That's everything within /usr/tmp/lgserver.log.
SuSE 9.1, GF FX5200.
I checked the files you mentioned in the post above, but all the files were there, with all permissions (0777) for testing purposes.
echo $JAVA_HOME
returns "/usr/java/jdk1.5.0" were the jdk1.5.0 is installed.
echo $PATH
returns "/usr/java/jdk1.5.0/bin:/usr/java/jdk1.5.0:/home/tobi/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin"
I still don't get it. I took care that I installed the versions mentioned in the getting started information and installed exactly those versions. Everything went fine. But why is lg still don't working?

I forgot to mention that I tried to run it as user. If I run lg3d-dev as root I get the following error:

Xlib: connection to ":0.0" refused by server
Xlib: Invalid XDM-AUTHORIZATION-1 key (failed key comparison)
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.(XToolkit.java:96)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:818)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:801)
at javax.media.j3d.MasterControl.loadLibraries(Unknown Source)
at javax.media.j3d.VirtualUniverse.(Unknown Source)
at javax.media.j3d.Canvas3D.(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.jdesktop.lg3d.displayserver.AppConnector.platformCheck(AppConnector.java:177)
at org.jdesktop.lg3d.displayserver.AppConnector.(AppConnector.java:51)
at org.jdesktop.lg3d.displayserver.AppConnector.getAppConnector(AppConnector.java:78)
at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.(ServerHandler.java:73)
at org.jdesktop.lg3d.displayserver.socketconnector.ServerHandler.main(ServerHandler.java:291)

That's all so far.

> Did you follow the instructions exactly? i.e. you
> used the correct versions? Also, check to see if
> jre/lib/i386/libmlib_jai.so,
> jre/lib/ext/jai_core.jar, jre/lib/ext/jai_codec.jar,
> and jre/lib/ext/mlibwrapper_jai.jar exist under your
> jdk home (e.g. /usr/java/jdk1.5.0). Let me know if
> they exist. This will determine whether or not your
> installation of the advanced imaging api were
> successful.
> Blake
> BlakeB395@myrealbox.com

Message was edited by: XTJ7