I think felix implemented with java 1.2,1.3,1.4 compatibiliy at
sourcecode level in mind.
Not sure if it is required by the OSGi R4.
You get the "warning" because it's unsafe (of cause) there is a solution
for that since Java 5.
Don't worry about the "warning", everything is fine.
It think you can disable the warnings with a javac switch, but I won't
do raw compiles with javac that often (instead of using eclipse or ant
or maven ..)
Is that what you mean by "suggestion"?
regards,
Toni
Thanh NGUYEN schrieb:
Firstly, thanks for your quick answer. I'm sorry to zap it from the
documentation.
I also tried to make a custom launcher Felix as shown in the
documentation and got this issue :
$ javac -Xlint:unchecked -d . -classpath
lib/org.apache.felix.framework-0.8.0-SNAPSHOT.jar:lib/org.osgi.core-0.8.0-SNAPSHOT.jar
src/example/Main.java
src/example/Main.java:22: warning: [unchecked] unchecked call to
put(K,V) as a member of the raw type java.util.Map
configMap.put(Constants.FRAMEWORK_SYSTEMPACKAGES,
^
src/example/Main.java:27: warning: [unchecked] unchecked call to
put(K,V) as a member of the raw type java.util.Map
configMap.put(BundleCache.CACHE_PROFILE_DIR_PROP, "cache");
^
2 warnings
It happened because the raw Map type's lack of specific type information
for its entries makes this call unsafe, and so the compiler reports the
warning. I use Sun JDK 1.5.
Does anyone have suggestion for it please?
Thanks.
Le lundi 20 novembre 2006 à 11:42 +0100, Karl Pauls a écrit :
Hello Thanh,
it is possible to specify the profile name via a property hence,
java -Dfelix.cache.profiledir=<profile-location> -jar felix.jar
should do the trick. Additionally, you could look into using the
config.properties file to configure this.
regards,
Karl
On 11/20/06, Thanh NGUYEN <[EMAIL PROTECTED]> wrote:
Hi all,
I would like to know if there is anyway to start Felix automatically at
boot as daemon with a given Felix profile, instead of typing java -jar
bin/felix.jar and entering the profile each time.
Thanks a lot for your advices.
NT
--
Toni Menzel
http://www.tonit.com
mailto:[EMAIL PROTECTED]