Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Easiest way to add a Library to the Java-Classpath ?
Easiest way to add a Library to the Java-Classpath ? [message #73991] Wed, 04 October 2006 18:48 Go to next message
Eclipse UserFriend
Originally posted by: java.jago.gmail.com

Hi,

I would like to make a few classes of a plugin available for the Java-VM.

Explanation:

I have an Eclipse-Plugin. This library I want to make available during
Eclipse startup has to be in that plugin - there is no other way to
deploy it!

The classes in the library should be basically available directly to the
Java VM. It contains a Swing-LookAndFeel and I set a eclipse.ini system
property which tells the Java-VM to set this as the default
Swing-LookAndFeel!!!

But for that this Swing-LookAndFeel has to be available the moment the
JavaVM starts up!

How is this possible ?

Cheers,
ex.
Re: Easiest way to add a Library to the Java-Classpath ? [message #74027 is a reply to message #73991] Thu, 05 October 2006 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

Put it as an option in the eclipse.ini to pass it in as -D argument to set the look and feel, rather than programatically at run-time.

Alex.
Re: Easiest way to add a Library to the Java-Classpath ? [message #74398 is a reply to message #73991] Tue, 10 October 2006 12:21 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer.REMOVE.ca.ibm.com

The OSGi R4 standard defines the notion of bootclasspath extensions.
Basically you can supply a fragment to the system and it will put your
classes on the bootclasspath of the VM as it is started. This part of
the spec is optional and is in fact the only part of the framework spec
that we do NOT implement (no one does as far as I know). The spec is
more to standardize the markup than the mechanism.

Failing that built in support, you can control what happens to the VM by
messing with the -vmargs passed to eclipse.exe (either on the command
line or in eclispe.ini)

Jeff

exquisitus wrote:
> Hi,
>
> I would like to make a few classes of a plugin available for the Java-VM.
>
> Explanation:
>
> I have an Eclipse-Plugin. This library I want to make available during
> Eclipse startup has to be in that plugin - there is no other way to
> deploy it!
>
> The classes in the library should be basically available directly to the
> Java VM. It contains a Swing-LookAndFeel and I set a eclipse.ini system
> property which tells the Java-VM to set this as the default
> Swing-LookAndFeel!!!
>
> But for that this Swing-LookAndFeel has to be available the moment the
> JavaVM starts up!
>
> How is this possible ?
>
> Cheers,
> ex.
Previous Topic:declarative services problem
Next Topic:IPreferencesService for database
Goto Forum:
  


Current Time: Sat Apr 20 02:51:24 GMT 2024

Powered by FUDForum. Page generated in 0.02821 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top