Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I access an Eclipse Plug-in Jar from a normal Java Project

 
Rl Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two applications. One is jdk 1.4 compiled and exported in a jar files. and the other is an eclipse plugin project built in jdk1.5.

I want to build an external in between application in which I want to call classes in jdk1.4 jars from the 1st application and the eclipse plugin jars from the second application.

What is the best way to go abt it?

Thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the jar just like any other jar, as long as all needed dependencies are present. If there are classes in that jar that don't depend on any other Eclipse plugins or OSGI framework classes, then you can just use them without caring where they came from.

But if the classes you want to use depend on the Eclipse framework itself, your only real choice is to make your application an Eclipse Rich Client Platform (RCP) application -- i.e., build the whole app in the Eclipse architecture.
 
Campbell Ritchie
Sheriff
Posts: 48921
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

I think this topic would sit better on the IDEs forum. Moving.
 
Rl Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that was of help!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic