logo       

Re: Re: Dods standalone program (Vladimir Ritz Bossicard): msg#00032

java.enhydra.general

Subject: Re: Re: Dods standalone program (Vladimir Ritz Bossicard)

Axel,

Here's the Windows batch file that I use to generate DODS objects. Note
that it uses ENHYDRA_DIR rather than ENHYDRA_HOME. Maybe the same variables
will work when you run it as an application:

set classpath=c:\enhydra3.1\classes;c:\jdk1.2\lib\tools.jar
java -DENHYDRA_DIR="C:\enhydra3.1" -DDODS_HOME="C:\nf_proj\dods_home_31"
com.lutris.dods.gui.DataObjectApplication

HTH,

Terry



----- Original Message -----
From: "Axel Wilhelm Berle" <axelberle@xxxxxxxx>
To: <enhydra@xxxxxxxxxxx>
Sent: Tuesday, November 25, 2003 7:01 AM
Subject: Enhydra: Re: Dods standalone program (Vladimir Ritz Bossicard)


> 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: axelberle@xxxxxxxx
> 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
> _______________________________________________
> Enhydra mailing list
> Enhydra@xxxxxxxxxxx
> http://www.enhydra.org/mailman/listinfo.cgi/enhydra


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise