Re: Dods standalone program (Vladimir Ritz Bossicard)

Axel Wilhelm Berle <[email protected]> Tue, 25 Nov 2003 13:01:10 +0100 (CET)
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
Hi Vldimir!

I am still trying to run the standalone DODS
application in Netbeans 3.5.1. It doesn't work. That's
what I tried:

- set the environment variable DODS_HOME in Windows
XP.
- use of an ant script where I checked the environment
variable DODS_HOME (it seems to be set all right)

Still the same message: JVM can not find neither DODS
HOME nor ENHYDRA HOME!

It seems that the Netbeans script clears any
environment variables before starting. Maybe I should
run netbeans with the java variable switch:
-DDODS_HOME=C:\Dods5.1\ but there is no way to do that
in Windows where Netbeans is started with with an exe
file. There is a ide configuration file (ide.cfg) but
that lets you set only some JVM switches with -J (well
I tried all possible combinations, like:
-J-DDODS_HOME=... or -JDODS_HOME=...).

I am very sad, because it seems impossible to use dods
with windows netbeans...

Axel



Here is my ant script, in case anybody wants to check:


<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="test" name="myapp">
    <target name="compile">
        <javac debug="true" deprecation="true"
destdir="." srcdir=".">
           <classpath>
                <pathelement location="."/>           
   
                <pathelement path="${classpath}"/>    
           
                <fileset dir="C:\dods5.1\lib">
                   <include name="**/*.jar"/>
                </fileset>
            </classpath>
        </javac>
    </target>
    <target depends="compile" description="Try running
it." name="test">
           <property environment="env"/>
           <echo message="Environment variable =
${env.DODS_HOME}"/>
        <java classname="Testando" failonerror="true"
fork="true">
            <classpath>
                <pathelement location="."/>           
   
                <pathelement path="${classpath}"/>    
           
                <fileset dir="C:\dods5.1\lib">
                   <include name="**/*.jar"/>
                </fileset>
            </classpath>
        </java>
    </target>   
</project>


=====
Axel Wilhelm Berle

e-mail: [email protected]
Tel: (office) +55 16 618.0090
     (mobile) +55 16 9964.6343

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de