[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [equinox-dev] org.osgi.framework.system.packages.extrasystem variable

Thanks Darin! That worked perfectly. I will use the runtime variable as
well so I should be all set now.

  - Chris


 
 
 
 
THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.
 
-----Original Message-----
 
 

From: equinox-dev-bounces@xxxxxxxxxxx
[mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Darin Wright
Sent: Tuesday, June 30, 2009 12:18 PM
To: Equinox development mailing list
Subject: RE: [equinox-dev]
org.osgi.framework.system.packages.extrasystem variable

By default, the "com.sun.java.swing.plaf.windows" package is not
exported 
by the system library. You can add an access rule to your system library

to make the package accessible. You can do this on the "Libraries" tab
of 
the "Java Build Path" project properties. Add an "Accessible" rule for 
"com/sun/java/swing/plaf/windows/*". You'll likely need to use the  
org.osgi.framework.system.packages.extra system property to make the 
package visible at runtime to.

Darin Wright



From:
Thomas Watson <tjwatson@xxxxxxxxxx>
To:
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
Date:
06/30/2009 11:03 AM
Subject:
RE: [equinox-dev]       org.osgi.framework.system.packages.extrasystem 
variable
Sent by:
equinox-dev-bounces@xxxxxxxxxxx



The org.osgi.framework.system.packages.extra property is a configuration

option to the framework. It cannot be set by using a windows environment

variable. Try placing the property in your config.ini. Or if you are 
launching an instance of Equinox from PDE you can specify this as a VM 
system property (-Dorg.osgi.framework.system.packages.extra=...).

But doing this only makes the package available for import (using 
Import-Package) at runtime. You still need to get PDE to have a bundle 
that exports this package. PDE does not use the system.packages.extra 
property. Chris or other PDE guys my have some suggestions to get that
to 
work in PDE.

Tom


"Chris Hopkins" ---06/30/2009 10:43:21 AM---Thanks Tom and BJ for quick 
answers. I should have been clearer...sorry. I am running into this
issue at 
compile time. I just tr


From:

"Chris Hopkins" <chopkins@xxxxxxx>

To:

"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>

Date:

06/30/2009 10:43 AM

Subject:

RE: [equinox-dev] org.osgi.framework.system.packages.extrasystem
variable



Thanks Tom and BJ for quick answers. I should have been clearer...sorry.
I 
am running into this issue at compile time. I just tried this:

1. Defined the 
org.osgi.framework.system.packages.extra=com.sun.java.swing.plaf.windows

as a Windows environment variable
2. Started up Eclipse 3.5 with the -console command
3. Typed 'bundle 0' and I don't see the com.sun.java.swing.plaf.windows 
package exported by the system bundle

I cannot add the package to my Manifest as it's not available when I
click 
the Add button. I tried adding it manually and receive an error in my 
Manifest saying that no bundle exports the package. If I type

packages com.sun.java.swing.plaf.windows

in the console window, I get an enormous list that seems like every 
available package.

- Chris




THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS 
ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL
AND 
EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended

recipient, your use of this message for any purpose is strictly 
prohibited. If you have received this communication in error, please 
delete the message and notify the sender so that we may correct our 
records. 



From: equinox-dev-bounces@xxxxxxxxxxx [
mailto:equinox-dev-bounces@xxxxxxxxxxx] On Behalf Of Thomas Watson
Sent: Tuesday, June 30, 2009 11:03 AM
To: Equinox development mailing list
Subject: Re: [equinox-dev]
org.osgi.framework.system.packages.extrasystem 
variable
This should work in 3.5. When you say you cannot import the 
WindowsComboBoxUI class do you mean you get a class loading error or do 
you get a resolution error when starting your bundle that uses that
class? 
If you start with -console you should be able to run the "packages" 
command on the com.sun.java.swing.plaf.windows package and see that it
is 
exported by the system bundle (id = 0). This will also confirm that you 
are really running with the correct version of the framework. Does your 
bundle specify an Import-Package header for that package in its bundle 
manifest?

Tom



"Chris Hopkins" ---06/30/2009 09:46:13 AM---Hi all - 


From:

"Chris Hopkins" <chopkins@xxxxxxx>

To:

"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>

Date:

06/30/2009 09:46 AM

Subject:

[equinox-dev] org.osgi.framework.system.packages.extra system variable




Hi all -

I'm trying to get access to the 
com.sun.java.swing.plaf.windows.WindowsComboBoxUI class within my
Equinox 
plug-in. I noticed back in April that Tom had referenced a 
org.osgi.framework.system.packages.extra system variable that can be set

to add packages to the list of available packages that the framework 
recognizes. However, I can't seem to get it to work. I set the
following:

org.osgi.framework.system.packages.extra=com.sun.java.swing.plaf.windows

but when I start Eclipse I still cannot import the WindowsComboBoxUI 
class.

Am I setting the property incorrectly?

I am still using Eclipse 3.4 but I have defined a Target Platform for
this 
workspace that includes the jars below. I pulled them from a RC version
of 
Equinox just prior to the official Galileo release.

org.eclipse.equinox.ds_1.1.0.v20090513.jar
org.eclipse.equinox.event_1.1.100.v20090513.jar
org.eclipse.equinox.log_1.2.0.v20090513.jar
org.eclipse.equinox.util_1.0.100.v20090429-1630.jar
org.eclipse.osgi.services_3.2.0.v20090513.jar
org.eclipse.osgi.util_3.2.0.v20090429-1630.jar
org.eclipse.osgi_3.5.0.v20090513.jar

Thanks,
Chris 




THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS 
ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL
AND 
EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended

recipient, your use of this message for any purpose is strictly 
prohibited. If you have received this communication in error, please 
delete the message and notify the sender so that we may correct our 
records. 


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev