Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden. Du solltest ein Upgrade durchführen oder ein alternativer Browser verwenden.
Habe versucht mein erstes Bundle zu schreiben.
Bin soweit auch fertig aber wenn ich versuche die ant build datei auszuführen bekomme ich folgende consolenausgabe:
Code:
Buildfile: X:\Java\simplebundle\build.xml
init:
compile:
[javac] Compiling 2 source files to X:\Java\simplebundle\classes
BUILD FAILED: X:\Java\simplebundle\build.xml:16: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Total time: 3 seconds
Habe den JDK Pfad aber angegeben.
Ich arbeite mit Eclipse
OS= WinXP
weiss nicht was ich noch schreiben soll sry totaler anfänger
also ich will nen bundle für knopflerfish erstellen das dann verschiedene services zur verfügung stellt, das ist aber noch gar nicht in planung, erstmal möchte ich das er das bundle überhaupt erstellt
die build file sieht so aus:
mein altes problem hat sich aber jetzt erledigt, ich habe bei den installierten JRE´s in eclipse das falsche benutzt
er bringt mir jetzt folgenden fehler:
Code:
Buildfile: X:\Java\simplebundle\build.xml
init:
compile:
[javac] Compiling 2 source files to X:\Java\simplebundle\classes
[javac] X:\Java\simplebundle\de\vpe\simplebundle\impl\Activator.java:9: package org.osgi.framework does not exist
[javac] import org.osgi.framework.BundleActivator;
[javac] ^
[javac] X:\Java\simplebundle\de\vpe\simplebundle\impl\Activator.java:10: package org.osgi.framework does not exist
[javac] import org.osgi.framework.BundleContext;
[javac] ^
[javac] X:\Java\simplebundle\de\vpe\simplebundle\impl\Activator.java:19: cannot resolve symbol
[javac] symbol : class BundleActivator
[javac] location: class de.vpe.simplebundle.impl.Activator
[javac] public class Activator implements BundleActivator {
[javac] ^
[javac] X:\Java\simplebundle\de\vpe\simplebundle\impl\Activator.java:21: cannot resolve symbol
[javac] symbol : class BundleContext
[javac] location: class de.vpe.simplebundle.impl.Activator
[javac] public static BundleContext bc = null;
[javac] ^
[javac] X:\Java\simplebundle\de\vpe\simplebundle\impl\Activator.java:25: cannot resolve symbol
[javac] symbol : class BundleContext
[javac] location: class de.vpe.simplebundle.impl.Activator
[javac] public void start(BundleContext bc) throws Exception {
[javac] ^
[javac] X:\Java\simplebundle\de\vpe\simplebundle\impl\Activator.java:32: cannot resolve symbol
[javac] symbol : class BundleContext
[javac] location: class de.vpe.simplebundle.impl.Activator
[javac] public void stop(BundleContext bc) throws Exception {
[javac] ^
[javac] 6 errors
BUILD FAILED: X:\Java\simplebundle\build.xml:16: Compile failed; see the compiler error output for details.
Total time: 12 seconds