This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > October 2004 > x3d-edit on OSX?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author x3d-edit on OSX?
Ruth Aylett

2004-10-10, 11:16 pm

Has anyone successfully run x3d-edit on OSX? I'm stuck right now - have
installed but not sure how to run.

When I invoke it using source x3d-edit.sh from a csh terminal window I get:
csh: XEENA_HOME=.: Command not found.
csh: export: Command not found.
csh: PROXY_SETTINGS=-DproxySet=false: Command not found.
csh: export: Command not found.
csh: JAVA_HOME: Undefined variable.

Wrong shell? And how/where do i set the missing environment variabels? Any
hints gratefully accepted.

Ruth
---

--
Ruth Aylett University of Salford
r.s.aylett plus the salford address salford.ac.uk if you want to email me
Josip Almasi

2004-10-11, 7:15 am

Ruth Aylett wrote:
>
> Wrong shell?


Right. Sounds like bourne shell. Get bash from http://www.gnu.org/

Regards...
Joerg Scheurich aka MUFTI

2004-10-11, 12:16 pm

> When I invoke it using source x3d-edit.sh from a csh terminal window I get:
> csh: XEENA_HOME=.: Command not found.
> csh: export: Command not found.
> csh: PROXY_SETTINGS=-DproxySet=false: Command not found.
> csh: export: Command not found.
> csh: JAVA_HOME: Undefined variable.


> Wrong shell? And how/where do i set the missing environment variabels?


In csh you need to set enviroment variables with "setenv"

setenv VARIABLE something

is the same as sh syntax of

VARIABLE=something
export VARIABLE

so long
MUFTI
--
Wenn ich verdopple, klicken Sie im browser, Bilder werden in gesaust.
(aus einem Softwarehandbuch)
Ruth Aylett

2004-10-11, 12:16 pm

OK, now I am using bash and I have successfully invoked Xeena using
xeena.sh at the bottom of this posting.

But then I get the error message:

using java in [/Library/Java/Home/]
Xeena Version 1.2EA1
Brought to you by the IBM Haifa Research Lab, Israel
Please send your feedback to helpmap@il.ibm.com
(C) 1999-2000 IBM Corporation. All Rights Reserved.

java.io.FileNotFoundException:
/www.web3d.org/x3d/content/www.web3D.org/TaskGroups/x3d/translation/x3d-compromise.dtd
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
at java.net.URL.openStream(URL.java:913)
at
com.ibm.hrl.xmleditor.grammar.CXMLEditorGrammar.<init>(CXMLEditorGrammar.java:75)
at com.ibm.hrl.xmleditor.CXMLEditor.<init>(CXMLEditor.java)
at com.ibm.hrl.xmleditor.Xeena.main(Xeena.java:120)
Unable to load:
file://localhost//www.web3d.org/x3d/content/www.web3D.org/TaskGroups/x3d/translation/x3d-compromise.dtd.

I can see that the filename for the dtd has been wrongly concatenated - it
is looking at
/www.web3d.org/x3d/content/www.web3D.org/TaskGroups/x3d/translation/x3d-compromise.dtd
when the dtd is actually at
www.web3D.org/TaskGroups/x3d/transl...-compromise.dtd

But I can't see where this is set in xeena.sh and am not sure where else
to look. Any suggestions?


Contents of xeena.sh
---------------------
#!/bin/sh

# ----------------------------------------------------------------------
# Run Xeena
#
# Xeena is brought to you by the IBM Haifa Research Lab, Israel
# Please send feedback to helpmap@il.ibm.com
# (C) 1999-2000 IBM Corporation. All rights reserved.
# ----------------------------------------------------------------------

# ----------------------------------------------------------------------
# To be able to run Xeena from any directory change XEENA_HOME to point
# to where it is installed.
# ----------------------------------------------------------------------
XEENA_HOME=/Ibm/Xeena
export XEENA_HOME


# ----------------------------------------------------------------------
# To specify a proxy, change the following line to something like this:
# set PROXY_SETTINGS="-DproxySet=true -DproxyHost=proxy.host.name
-DproxyPort=port
# ----------------------------------------------------------------------
PROXY_SETTINGS="-DproxySet=false"
export PROXY_SETTINGS

# ----------------------------------------------------------------------
# Determine JAVA_HOME where JDK is installed
# ----------------------------------------------------------------------
if [ "X" = "X$JAVA_HOME" ]
then
echo Error:
echo Environment variable JAVA_HOME has not been set.
echo XEENA needs to know where JDK or JRE is installed in your host.
echo Please set JAVA_HOME to the full path name of the root directory
echo where JDK or JRE is installed. For example, you can set JAVA_HOME
echo in a korn shell by the following commands:
echo " JAVA_HOME=/usr/jdk1.1.8"
echo " export JAVA_HOME"
echo when JDK is installed in directory /usr/jdk1.1.8
exit
fi
echo using java in [$JAVA_HOME]


# --------------- JAVA/JRE 1.1 -----------------
#unset CLASSPATH
#CP=$XEENA_HOME/lib/xmleditor.jar:$XEENA_HOME/lib/xerces.jar:$XEENA_HOME/lib/#jgl3.1.0.jar:$XEENA_HOME/lib/xalan.jar:$XEENA_HOME/lib/swingall.jar:$JAVA_HOME/classes.zip
#if [ "X" != "X$BML_HOME" ]
# then CP=$CP:$BML_HOME:$BML_HOME/lib/bmlall.jar
#fi
#"$JAVA_HOME/bin/jre" -mx100m -ms30m -Dfile.path.casesensitive=true
-Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel -cp $CP
$PROXY_SETTINGS com.ibm.hrl.xmleditor.Xeena $*



# --------------- JAVA/JRE 2-------------TESTED on Linux !!!! ---------------
unset CLASSPATH
CLASSPATH=$XEENA_HOME/lib/xmleditor.jar:$XEENA_HOME/lib/xerces.jar:$XEENA_HOME/lib/jgl3.1.0.jar:$XEENA_HOME/lib/xalan.jar
if [ "X" != "X$BML_HOME" ]
then CLASSPATH=$CLASSPATH:$BML_HOME:$BML_HOME/lib/bmlall.jar
fi
export CLASSPATH
"$JAVA_HOME/bin/java" -Xmx100m -Xms30m -Dfile.path.casesensitive=true
-Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel
$PROXY_SETTINGS com.ibm.hrl.xmleditor.Xeena $*
Josip Almasi

2004-10-11, 12:16 pm

Ruth Aylett wrote:
>
> But I can't see where this is set in xeena.sh and am not sure where else
> to look. Any suggestions?


Yeah... ask IBM:)
Seems someone malformed an URL.
This

at java.net.URL.openStream(URL.java:913)

means that it tries to open url but supposes it's local file, since it's
not prefixed with http:// - plainly a bug. Don't know how it works on
other OSes though... should end with MalformedURLException. In fact,
this is a usual method to guess protocols: try this, exception, try
that, exception...
Workaround - get that dtd and put it where it's expected.

Regards...
Joerg Scheurich aka MUFTI

2004-10-12, 7:14 am

> file://localhost//www.web3d.org/x3d/content/www.web3D.org/TaskGroups/x3d/translation/x3d-compromise.dtd.

> But I can't see where this is set in xeena.sh and am not sure where else
> to look. Any suggestions?


In the header of the XML file or in the DTD itself ?

xeena do not know anything about web3d...

so long
MUFTI
--
Sie koennen diese gesunden Wirkungen, die WAV Akten benutzt, auch benutzen
(aus einem Softwarehandbuch, Stichworte: sound effect)
Ruth Aylett

2004-10-13, 12:14 pm

Thanks for your help everyone - I've finally got Xeena to load thougb
apparently not with the X3d interface correctly installed yet.

In case any other OSX user wants to get this version working, here are the
changes I made so far:

1.In x3d-edit.sh
a) Add lines defining where java is:
JAVA_HOME=/Library/Java/Home
export JAVA_HOME

b)
Change
source /IBM/Xeena/xeena.sh -root X3D -dtd
www.web3D.org/TaskGroups/x3d/transl...-compromise.dtd

to

source /IBM/Xeena/xeena.sh -root X3D -dtd
/www.web3D.org/TaskGroups/x3d/translation/x3d-3.0.dtd

This is because the original references a dtd that no longer exists.

All the same, I still don't seem to have an X3d interface, so maybe this
still isn't right.

2. In the copy of xeena.sh supplied with Xeena (and not the one in the x3d
tree)
a)Add lines to register location of Xeena:
XEENA_HOME=/Ibm/Xeena
export XEENA_HOME
b) Comment out the lines relating to Java 1.1 and remove comments from the
Java 2 lines below this

Comparing the unix .sh files with the Windows ,bat files supplied, there
are still some other differences and i am assessing these in the hope I
will get the X3d interface correctly loaded into Xeena.

Maybe literally no other Unix user is using X3d-ed - is it orphan software?

Ruth
-----



In article <ckgabb$ss4$2@infosun2.rus.uni-stuttgart.de>, Joerg Scheurich
aka MUFTI <rusmufti@helpdesk.rus.uni-stuttgart.de> wrote:

file://localhost//www.web3d.org/x3d/content/www.web3D.org/TaskGroups/x3d/translation/x3d-compromise.dtd.[color=darkred]
>
>
> In the header of the XML file or in the DTD itself ?
>
> xeena do not know anything about web3d...
>
> so long
> MUFTI
> --
> Sie koennen diese gesunden Wirkungen, die WAV Akten benutzt, auch benutzen
> (aus einem Softwarehandbuch, Stichworte: sound effect)

Joerg Scheurich aka MUFTI

2004-10-14, 7:15 pm

> file://localhost//www.web3d.org/x3d/content/www.web3D.org/TaskGroups/x3d/translation/x3d-compromise.dtd.

> But I can't see where this is set in xeena.sh and am not sure where else
> to look. Any suggestions?


In the header of the XML file or in the DTD itself ?

xeena do not know anything about web3d...

so long
MUFTI
--
Sie koennen diese gesunden Wirkungen, die WAV Akten benutzt, auch benutzen
(aus einem Softwarehandbuch, Stichworte: sound effect)
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews