e-commerce84
09-06-2010, 01:00
Ciao,
allora, mi trovo nella seguente situazione e sono disperato perchè non ci riesco e stò buttando un sacco di tempo
L'applicazione sicuramente funziona perchè è presa da html.it
l'applicazione è composta da una serie di file .class dentro la directory: /home/andrea/programmazione/esempio1/it/html/spring/report in particolare in questa directory c'è il file ReportClient.class che contiene il metodo main()
Per far girare questa applicazione devo includere nel classpath i seguenti 3 file .jar:
1) org.springframework.beans-3.0.2.RELEASE.jar
2) org.springframework.core-3.0.2.RELEASE.jar
che sono entrambi contenuti nella directory: /home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist
3) commons-logging-1.1.1.jar che si trova nella directory: /home/andrea/programmazione/librerie/commons-logging-1.1.1
Ecco...ora seguendo quello che mi ha detto una persona ho provato a fare così per far partire la mia applicazione (avviando la classe che contiene il metodo main) ma non me l'avvia e mi dà un lungo messaggio d'errore (allegato sotto):
andrea@andrea-laptop:~/programmazione/esempio1$ java -cp .;/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.beans-3.0.2.RELEASE.jar;/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.core-3.0.2.RELEASE.jar;/home/andrea/programmazione/librerie/commons-logging-1.1.1/commons-logging-1.1.1.jar it/html/spring/report/ReportClient >1 2>&1c
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
Failed to load Main-Class manifest attribute from
/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.beans-3.0.2.RELEASE.jar
Failed to load Main-Class manifest attribute from
/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.core-3.0.2.RELEASE.jar
bash: 1c: reindirizzamento ambiguo
andrea@andrea-laptop:~/programmazione/esempio1$
Per favore...è importante...mi sapete aiutare?
Grazie
allora, mi trovo nella seguente situazione e sono disperato perchè non ci riesco e stò buttando un sacco di tempo
L'applicazione sicuramente funziona perchè è presa da html.it
l'applicazione è composta da una serie di file .class dentro la directory: /home/andrea/programmazione/esempio1/it/html/spring/report in particolare in questa directory c'è il file ReportClient.class che contiene il metodo main()
Per far girare questa applicazione devo includere nel classpath i seguenti 3 file .jar:
1) org.springframework.beans-3.0.2.RELEASE.jar
2) org.springframework.core-3.0.2.RELEASE.jar
che sono entrambi contenuti nella directory: /home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist
3) commons-logging-1.1.1.jar che si trova nella directory: /home/andrea/programmazione/librerie/commons-logging-1.1.1
Ecco...ora seguendo quello che mi ha detto una persona ho provato a fare così per far partire la mia applicazione (avviando la classe che contiene il metodo main) ma non me l'avvia e mi dà un lungo messaggio d'errore (allegato sotto):
andrea@andrea-laptop:~/programmazione/esempio1$ java -cp .;/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.beans-3.0.2.RELEASE.jar;/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.core-3.0.2.RELEASE.jar;/home/andrea/programmazione/librerie/commons-logging-1.1.1/commons-logging-1.1.1.jar it/html/spring/report/ReportClient >1 2>&1c
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
Failed to load Main-Class manifest attribute from
/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.beans-3.0.2.RELEASE.jar
Failed to load Main-Class manifest attribute from
/home/andrea/programmazione/spring-framework-3.0.2.RELEASE/dist/org.springframework.core-3.0.2.RELEASE.jar
bash: 1c: reindirizzamento ambiguo
andrea@andrea-laptop:~/programmazione/esempio1$
Per favore...è importante...mi sapete aiutare?
Grazie