pgManage

Gregor Gorjanc gregor at mrcina.bfro.uni-lj.si
Tue Nov 25 01:45:03 CET 2003


Zdravo!

Pred kratkim so za pgmanage odprli kodo. Jaz sem si zadevo potegnil dol
in posuksal zadevo zgraditi. Spodaj je rezime vsega kar sem pocel. Pri prevajanju 
sem dobil ene warninge, a mislim, da ni nic hujsega. Ko pa zelim aplikacijo
pognati se pa ustavi (glej cisto spodaj). Hvala za pomoc.

[root at orion tmp]# tar xzvf pgmanage.tar.gz 
[root at orion tmp]# cd pgmanage-src/ 
# prebral README in pognal 
[root at orion pgmanage-src]# ant all 
Buildfile: build.xml 

all: 

prepare_full: 

prepare: 

compile: 
    [javac] Compiling 8 source files to /root/tmp/pgmanage-src/build 
    [javac] /root/tmp/pgmanage-src/pgManage/pgManage.java:42: package org.postgresql does not exist 
    [javac]             Context.getInstance().setVariable("Root","JDBCDriverVersion",org.postgresql.Driver.getVersion()); 
    [javac]                                                                                        ^ 
    [javac] 1 error 

BUILD FAILED 
file:/root/tmp/pgmanage-src/build.xml:72: Compile failed; see the compiler error output for details. 

Total time: 28 seconds 
# Imel tezave, ker ni nasel package org.postgresql. Zato definiral CLASSPATH. 
[root at orion pgmanage-src]# export CLASSPATH=${CLASSPATH}:/usr/local/pgsql/share/java/postgresql.jar 
[root at orion pgmanage-src]# ant all 
Buildfile: build.xml 

all: 

prepare_full: 

prepare: 

compile: 
    [javac] Compiling 8 source files to /root/tmp/pgmanage-src/build 
    [javac] /root/tmp/pgmanage-src/pgManage/Actions/FileAction.java:143: warning: finally clause cannot complete normally 
    [javac]                     } 
    [javac]                     ^ 
    [javac] /root/tmp/pgmanage-src/pgManage/Actions/FileAction.java:181: warning: finally clause cannot complete normally 
    [javac]                     } 
    [javac]                     ^ 
    [javac] /root/tmp/pgmanage-src/pgManage/Actions/FolderAction.java:104: warning: finally clause cannot complete normally 
    [javac]                         } 
    [javac]                         ^ 
    [javac] /root/tmp/pgmanage-src/pgManage/Actions/FolderAction.java:124: warning: finally clause cannot complete normally 
    [javac]                         } 
    [javac]                         ^ 
    [javac] 4 warnings 

jar: 
      [jar] JARs are never empty, they contain at least a manifest file 
      [jar] Building jar: /root/tmp/pgmanage-src/jars/pgManage.jar 

prepare: 

compile: 

prepare_trial: 
   [delete] Deleting: /root/tmp/pgmanage-src/build/pgManage/Constants.class 
     [copy] Copying 1 file to /root/tmp/pgmanage-src/build/pgManage 

jar-trial: 
      [jar] JARs are never empty, they contain at least a manifest file 
      [jar] Building jar: /root/tmp/pgmanage-src/jars/pgManage-trial.jar 

BUILD SUCCESSFUL 
Total time: 28 seconds 
# Upam, da je ok. 

[root at orion pgmanage-src]# cd .. 
[root at orion tmp]# mv pgmanage-src/ /usr/local/pgmanage 
# Potem pa nisem mogel zadeve pognati :( 
[root at orion pgmanage]# java -cp mammoth-postgresql.jar:pgManage.jar pgManage.pgManage 
Exception in thread "main" java.lang.NoClassDefFoundError: pgManage/pgManage 
[root at orion pgmanage]# java mammoth-postgresql.jar:pgManage.jar pgManage.pgManage 
Exception in thread "main" java.lang.NoClassDefFoundError: mammoth-postgresql/jar:pgManage/jar 
[root at orion pgmanage]# java ./mammoth-postgresql.jar:pgManage.jar pgManage.pgManage 
Exception in thread "main" java.lang.NoClassDefFoundError: //mammoth-postgresql/jar:pgManage/jar 
-- 
Lep pozdrav,
           Gregor GORJANC



More information about the lugos-list mailing list