logo       

Re: Dods standalone program: msg#00025

java.enhydra.general

Subject: Re: Dods standalone program

Appears that you haven't set the DODS_HOME and ENHYDRA_HOME environment
variables.

----- Original Message -----
From: "Axel Wilhelm Berle" <axelberle@xxxxxxxx>
To: <enhydra@xxxxxxxxxxx>
Sent: Saturday, November 22, 2003 11:41 AM
Subject: Enhydra: Dods standalone program


> Hi everybody!
>
> I am trying to run a DODS standalone program with
> Netbeans 3.5. It compiles well, but when trying to run
> the program, the compiler says: "JVM can not find
> neither DODS HOME nor ENHYDRA HOME!".
>
> The program that I am trying to run is:
>
> public static void main(String[] args) {
> try {
> String fileName =
> "C:\\dods5.1\\output\\testando.conf";
> DODS.startup(fileName);
> TestDO testDO = TestDO.createVirgin();
> testDO.setEmail("axelberle@xxxxxxxx");
> testDO.setNome("Axel Wilhelm Berle");
> testDO.save();
> }
> catch(Exception e) {
> e.printStackTrace();
> }
> }
>
> Can anybody help?
>
>
> Thanks in advance,
>
> Axel
>
>
>
>
> JVM can not find neither DODS HOME nor ENHYDRA HOME!
> java.lang.Error: File dodsConf.xml not exists on path:
> 'null\build\conf'
> at
> org.enhydra.dods.Common.setConfigDir(Unknown Source)
> at org.enhydra.dods.Common.init(Unknown
> Source)
> at org.enhydra.dods.Common.init(Unknown
> Source)
> at
> org.enhydra.dods.Common.getDodsConfProperty(Unknown
> Source)
> at
>
com.lutris.appserver.server.sql.StandardDatabaseManager.loadLogicalDatabase(
Unknown
> Source)
> at
> com.lutris.appserver.server.sql.StandardDatabaseManager.<init>(Unknown
> Source)
> at
>
com.lutris.appserver.server.sql.StandardDatabaseManager.newInstance(Unknown
> Source)
> at org.enhydra.dods.DODS.startup(Unknown
> Source)
> at Testando.main(Testando.java:12)
> Exception in thread "main"
>
>
>
>
>
>
>
>
> =====
> 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