<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Got it!<br>
I defined JAVA_HOME:<br>
$ export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.10<br>
<br>
and ran:<br>
$ sh ArcExplorer.sh<br>
Exception in thread "main" java.lang.NoClassDefFoundError:
com/esri/ae/AE<br>
Caused by: java.lang.ClassNotFoundException: com.esri.ae.AE<br>
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br>
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)<br>
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)<br>
Could not find the main class: com.esri.ae.AE. Program will exit.<br>
<br>
I googled the error and found the solution and ran:<br>
$ sudo mv /usr/lib/jvm/java-6-openjdk/lib/ext
/home/ubuntu/Downloads/ArcExplorer/lib<br>
b$ sudo chown -R ubuntu /home/ubuntu/Downloads/ArcExplorer/lib/ext<br>
<br>
edited ubuntu /home/ubuntu/Downloads/ArcExplorer/lib/ext<br>
as per the post:<br>
ArcExplorer/bin/aejava
<br>
change the line:
<br>
JARHOME=$AEJHOME/lib
<br>
to:
<br>
JARHOME=$AEJHOME/lib/ext
<br>
Save it and now you should able to run the:
<br>
~/Downloads/ArcExplorer/ArcExplorer.sh <br>
<br>
And it runs!!<br>
<br>
Thanks everyone. I couldn't have figured out the variables, much less
running the darn thing!<br>
If anyone wants the post with the fix, after setting the env variables,
it's: <a class="moz-txt-link-freetext" href="http://forums.esri.com/Thread.asp?c=24&f=199&t=208888">http://forums.esri.com/Thread.asp?c=24&f=199&t=208888</a><br>
<br>
<br>
<br>
<br>
<br>
BrianO'Keefe wrote:
<blockquote cite="mid:49DBEBC3.608@cybermesa.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Something is weird.....<br>
I seem to have gotten the variables right. the documentation for
ArcExplorer says to start the program by running "aejava" and here's
what happens:<br>
<br>
$ aejava<br>
bash: aejava: command not found<br>
ubuntu@ubuntu:~/Downloads/ArcExplorer$ ls<br>
ArcExplorer.sh bin Disk1 fonts Help lib UninstallerData Xenv<br>
<br>
So I run:<br>
<br>
ubuntu@ubuntu:~/Downloads/ArcExplorer$ sh ArcExplorer.sh<br>
<br>
** JAVA_HOME must be defined<br>
<br>
This is after installing the software by running the installer that the
download included:<br>
sudo sh SetupArcExplorer.sh<br>
<br>
(I run as sudo as I need to have write capability to my jre directory)<br>
<br>
I don't know-too much for me<br>
<br>
<br>
<br>
<br>
BrianO'Keefe wrote:
<blockquote cite="mid:49DBE2CF.6020407@cybermesa.com" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
Oh yeah, missed that little slash!!<br>
<br>
Nick Frost wrote:
<blockquote cite="mid:49DBDEBC.2040506@nickorama.com" type="cite">
<pre wrap="">BrianO'Keefe wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks Brendan. I'm pasting the syntax corrections as I understand you
(which is a stretch given my experience with this!). Is this correct?
export AEJHOME=home/ubuntu/Downloads/aej90exe
export LD_LIBRARY_PATH=$AEJHOME/lib
export PATH=$PATH:/usr/local/aejhome/bin
</pre>
</blockquote>
<pre wrap=""><!---->If I am not mistaken, your entry for AEJHOME appears incorrect, in that
I believe you want to prepend a "/", e.g.
export AEJHOME=/home/ubuntu/Downloads/aej90exe
for what is called and "absolute path" instead of a relative path.
-Nick
</pre>
<blockquote type="cite">
<pre wrap="">
Brendan wrote:
</pre>
<blockquote type="cite">
<pre wrap="">BrianO'Keefe wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks Nick. I added the variables from your last email as best I could:
export AEJHOME home/ubuntu/Downloads/aej90exe
export LD_LIBRARY_PATH $AEJHOME/lib
export PATH= $PATH:/usr/local/aejhome/bin
</pre>
</blockquote>
<pre wrap="">The syntax is "export NAME=value". Note there's an = between the name
and the value, and there is no space at all. Add = signs, remove your
spaces and try again.
FWIW, you could switch your shell to csh or tcsh if you have that
installed. Use the chsh command to change shells.
-Brendan
_______________________________________________
nmglug mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:nmglug@nmglug.org">nmglug@nmglug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://nmglug.org/mailman/listinfo/nmglug">https://nmglug.org/mailman/listinfo/nmglug</a>
</pre>
</blockquote>
<pre wrap="">------------------------------------------------------------------------
_______________________________________________
nmglug mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:nmglug@nmglug.org">nmglug@nmglug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://nmglug.org/mailman/listinfo/nmglug">https://nmglug.org/mailman/listinfo/nmglug</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
nmglug mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:nmglug@nmglug.org">nmglug@nmglug.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://nmglug.org/mailman/listinfo/nmglug">https://nmglug.org/mailman/listinfo/nmglug</a>
</pre>
</blockquote>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
nmglug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nmglug@nmglug.org">nmglug@nmglug.org</a>
<a class="moz-txt-link-freetext" href="https://nmglug.org/mailman/listinfo/nmglug">https://nmglug.org/mailman/listinfo/nmglug</a>
</pre>
</blockquote>
</body>
</html>