Bad MIME type returned from server when accessing resource: http://localhost:8080/teste/configdir/teste.properties - null
Originally posted by Carol Enderlin:
In your runjava target your class Teste isn't in your classpath.
Buildfile: C:\java\eclipse\workspace\testant\build.xml
init:
build:
runjava:
[java] java.lang.NoClassDefFoundError: Teste
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second
Buildfile: C:\java\eclipse\workspace\testant\build.xml
init:
build:
jar:
runjar:
[java] java.lang.NoClassDefFoundError: org/apache/commons/lang/ObjectUtils
[java] at Teste.main(Unknown Source)
[java] Exception in thread "main"
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 1 second
!SESSION Ago 07, 2004 20:15:58.20 ----------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pt_BR
!ENTRY org.eclips e.osgi Ago 07, 2004 20:15:58.20
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:313)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Originally posted by Tony Morris:
There is no such concept as "all the classes in a package", in much the same way as there is no such concept as "all the subclasses of a class". This is because it is dynamic information.
A quick read of the spec. will reveal that you can use reflection to get all the loaded classes of a particular package.
28/07/2004 15:57:58 testalog.launcher.Acao <init>
INFO: Criando ...
28/07/2004 15:57:58 testalog.launcher.LogLauncher execute
INFO: Iniciando ...
28/07/2004 15:57:58 testalog.launcher.Acao execute
INFO: Execute �sWed Jul 28 15:57:58 GMT-03:00 2004
28/07/2004 15:57:58 testalog.launcher.LogLauncher execute
INFO: Terminando ...
28/07/2004 15:58:13 testalog.launcher.Acao <init>
INFO: Criando ...
28/07/2004 15:58:13 testalog.launcher.LogLauncher execute
INFO: Iniciando ...
28/07/2004 15:58:13 testalog.launcher.Acao execute
INFO: Execute �sWed Jul 28 15:58:13 GMT-03:00 2004
28/07/2004 15:58:13 testalog.launcher.LogLauncher execute
INFO: Terminando ...
...
28/07/2004 15:57:58 testalog.launcher.LogLauncher execute
INFO: Iniciando ...
28/07/2004 15:57:58 testalog.launcher.LogLauncher execute
INFO: Terminando ...
28/07/2004 15:58:13 testalog.launcher.LogLauncher execute
INFO: Iniciando ...
28/07/2004 15:58:13 testalog.launcher.LogLauncher execute
INFO: Terminando ...