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]
|
|
| Ruth Aylett 2004-10-14, 11:15 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
| |
| Ruth Aylett 2004-10-14, 11:15 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 $*
| |
| Joerg Scheurich aka MUFTI 2004-10-15, 7:14 am |
| > 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)
| |
| Joerg Scheurich aka MUFTI 2004-10-17, 4: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)
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|